Audio

/api/v1/audio/complete

Mark an audio generation request as complete and clean up the generated media from storage. Call this after you have successfully downloaded the audio if you did not set delete_media_on_completion in the retrieve request.

Authentication: This endpoint accepts either a Bearer API key or a SIGN-IN-WITH-X header for x402 wallet-based authentication. The legacy X-Sign-In-With-X header is also accepted during migration. When using x402, a 402 Payment Required response indicates insufficient balance and includes top-up instructions.

post/api/v1/audio/complete

Request

  • Base URL: https://api.venice.ai
  • URL: https://api.venice.ai/api/v1/audio/complete
  • Auth: one of:
    • HTTP bearer
    • API key in header SIGN-IN-WITH-X

Request body

modelstring required

The ID of the model used for audio generation. Voice-changer models are not supported on /api/v1/audio/retrieve or /api/v1/audio/complete; use the /api/v1/audio/voice-changer endpoints instead.

queue_idstring required

The ID of the audio generation request. Use this to poll for status and retrieve the result.

Example request

{
  "model": "elevenlabs-music",
  "queue_id": "123e4567-e89b-12d3-a456-426614174000"
}

Response

Media cleanup result. A success value of false indicates cleanup did not complete and can be retried later.

successboolean required

Indicates whether the audio cleanup was successful.

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.