Skip to main content

Overview

Use this endpoint for unified async polling across task types such as video, image, music, and 3D generation.
If a create response includes poll_url, call that exact path. For newer async workflows, poll_url may point to /v1/tasks/{taskId}.

Path Parameters

taskId
string
required
The task ID returned by the create request.

Response

id
string
Task identifier.
status
string
Task status such as pending, processing, completed, or failed.
video_url
string
Result asset URL when the task completes and produces a video.
error
string
Error message when the task fails.

Examples

cURL
curl "https://api.lemondata.cc/v1/tasks/video_abc123" \
  -H "Authorization: Bearer sk-your-api-key"
Python
import requests

poll_url = "/v1/tasks/video_abc123"
response = requests.get(
    f"https://api.lemondata.cc{poll_url}",
    headers={"Authorization": "Bearer sk-your-api-key"},
)
print(response.json())
JavaScript
const pollUrl = '/v1/tasks/video_abc123';
const response = await fetch(`https://api.lemondata.cc${pollUrl}`, {
  headers: { Authorization: 'Bearer sk-your-api-key' },
});
console.log(await response.json());