Skip to main content

Endpoint

GET /api/v1/music/wav?clip_id={clip_id}
Synchronous. Returns the WAV download URL immediately. Returns a lossless WAV format download URL for a clip. Use this when you need uncompressed audio for professional production workflows.

Query parameters

ParameterTypeRequiredDescription
clip_idstringYesClip ID to download as WAV. Obtain from Upload Audio (data.clipId) or a completed generation task (results[].id).

Response

{
  "code": 0,
  "message": "ok",
  "request_id": "req-1710000000000",
  "data": "https://cdn.example.com/tob/gen/abc123.wav"
}
The data field is a string containing the direct download URL for the WAV file.

Example

curl "https://api.example.com/api/v1/music/wav?clip_id=abc123def456" \
  -H "Authorization: Bearer sk-mm-your-key"
Then download the file:
WAV_URL=$(curl -s "https://api.example.com/api/v1/music/wav?clip_id=abc123" \
  -H "Authorization: Bearer sk-mm-your-key" | jq -r '.data')

curl -o track.wav "$WAV_URL"
WAV files are larger than MP3. The URL is subject to the same expiration policy as the clip — check expire_at from Get Music before downloading.