Skip to main content
Poll this endpoint to check the status of your music generation task.
If the create response included poll_url, prefer calling that exact URL for polling. /v1/tasks/{id} is the canonical fixed status endpoint for music jobs, and id / task_id should be treated as the same async task identity.

Path Parameters

id
string
required
The music generation task ID.

Response

id
string
Task ID.
task_id
string
Async task identifier alias when provided.
poll_url
string
Preferred polling URL when the create response supplies one.
status
string
Task status: pending, processing, completed, or failed.
progress
integer
Progress percentage (0-100).
audio_url
string
URL to download the audio file (when completed).
video_url
string
URL to the video version with visualizer (when completed).
title
string
Generated song title.
lyrics
string
Generated or provided lyrics.
error
string
Error message (when failed).
curl "https://api.lemondata.cc/v1/tasks/music_abc123" \
  -H "Authorization: Bearer sk-your-api-key"
{
  "id": "music_abc123def456",
  "status": "completed",
  "audio_url": "https://cdn.example.com/music/abc123.mp3",
  "video_url": "https://cdn.example.com/music/abc123.mp4",
  "title": "Night Drive",
  "lyrics": "[Verse 1]\nDriving through the night..."
}