Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.lemondata.cc/llms.txt

Use this file to discover all available pages before exploring further.

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.If the task no longer exists or can no longer be resolved through the public async-task contract, LemonData returns async_task_not_found with the message Task not found or no longer available.

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/ldtask_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
  -H "Authorization: Bearer sk-your-api-key"
{
  "id": "ldtask_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "task_id": "ldtask_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "poll_url": "/v1/tasks/ldtask_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "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..."
}