v1

latestOpenAPI 3.0.02026-07-26355125.0 KB

Convert to WAV Format

post/api/v1/wav/generate

Request body

taskIdstring required

The task ID of the music generation task.

audioIdstring required

The audio ID of the specific track to convert.

  • Providing the specific audioId ensures the exact track is converted, especially when a task has multiple tracks.
callBackUrlstring uri required

The URL to receive WAV conversion completion notification.

  • Required.
  • The callback includes a single download URL for the converted WAV file.
  • For detailed callback format and implementation guide, see WAV Format Conversion Callbacks
  • Alternatively, you can use the get WAV conversion details endpoint to poll task status

Example request

{
  "taskId": "5c79****be8e",
  "audioId": "e231****-****-****-****-****8cadc7dc",
  "callBackUrl": "https://api.example.com/callback"
}

Response

Request successful

code200 | 400 | 401 | 404 | 405 | 409 | 413 | 429 | 430 | 455 | 500

Status Codes

  • ✅ 200 - Request successful
  • ⚠️ 400 - Invalid parameters
  • ⚠️ 401 - Unauthorized access
  • ⚠️ 404 - Invalid request method or path
  • ⚠️ 405 - Rate limit exceeded
  • ⚠️ 409 - Conflict - WAV record already exists
  • ⚠️ 413 - Theme or prompt too long
  • ⚠️ 429 - Insufficient credits
  • ⚠️ 430 - Your call frequency is too high. Please try again later.
  • ⚠️ 455 - System maintenance
  • ❌ 500 - Server error
msgstring

Error message when code != 200

Example response

{
  "msg": "success",
  "data": {
    "taskId": "5c79****be8e"
  }
}