/v1/generate/ endpoints for video are now deprecated in favor of the new /v1/jobs/ endpoints.
What Changed
| Aspect | Before (Generate API) | After (Queue API) |
|---|---|---|
| Endpoint | /v1/generate/lucy-pro-t2v | /v1/jobs/lucy-pro-t2v |
| Request type | Synchronous (blocking) | Asynchronous (non-blocking) |
| Response | Direct video binary | Job ID for polling |
| Timeout handling | HTTP timeout on long requests | Poll until completion (10 min max) |
| Progress visibility | None | Status updates (pending, processing, completed, failed) |
JavaScript SDK
The JavaScript SDK now usesclient.queue instead of client.generate for video generation.
Before
After
Manual polling (advanced)
Manual polling (advanced)
For custom polling logic, you can manually control the submit/poll/result flow:
JavaScript Queue API Reference
Full documentation for the JavaScript Queue API
Python SDK
The Python SDK now usesclient.queue instead of client.generate for video generation.
Before
After
Manual polling (advanced)
Manual polling (advanced)
For custom polling logic, you can manually control the submit/poll/result flow:
Python Queue API Reference
Full documentation for the Python Queue API
HTTP / REST API
The REST API now uses a three-step flow: submit, poll, and retrieve.Before
After
Endpoint mapping
| Old Endpoint | New Endpoint |
|---|---|
POST /v1/generate/lucy-pro-t2v | POST /v1/jobs/lucy-pro-t2v |
POST /v1/generate/lucy-pro-i2v | POST /v1/jobs/lucy-pro-i2v |
POST /v1/generate/lucy-pro-v2v | POST /v1/jobs/lucy-pro-v2v |
POST /v1/generate/lucy-dev-i2v | POST /v1/jobs/lucy-dev-i2v |
POST /v1/generate/lucy-fast-v2v | POST /v1/jobs/lucy-fast-v2v |
New endpoints for job management
| Endpoint | Description |
|---|---|
GET /v1/jobs/{job_id} | Get job status |
GET /v1/jobs/{job_id}/content | Download completed video |
Key Differences
Error handling
The Queue API provides more granular error information through job status:Progress tracking
Monitor job progress with status callbacks:FAQ
Are the old /v1/generate/ endpoints still available?
Are the old /v1/generate/ endpoints still available?
The old synchronous endpoints for video generation are deprecated.
Image generation still uses
/v1/generate/.Do I need to update my SDK version?
Do I need to update my SDK version?
Yes, make sure you’re using the latest version of the SDK:
- JavaScript:
npm install @decartai/sdk@latest - Python:
pip install decart --upgrade
What about image generation?
What about image generation?
Image generation continues to use the synchronous Process API (
client.process in SDKs, /v1/generate/ for REST). Only video generation has moved to the Queue API.