Video & materi
Daftar tugas (kompatibel Volc)
Cantumkan tugas kompatibel Seedance terbaru di organisasi saat ini.
Ringkasan
Daftar tugas kompatibel terbaru di Workspace yang diautentikasi dengan TokenLab Bearer API key. Tanpa filter.task_ids, kueri mencakup tujuh hari terakhir; ID yang tepat mengkueri tugas tersebut secara langsung.
Lihat juga Model Video Seedance 2.0 dan Pembuatan Video.
Bentuk respons
page_num: default1, bilangan bulat dari1hingga500.page_size: default20, bilangan bulat dari1hingga500.filter.status:queued,running,succeeded,failed,cancelled,expired.filter.task_ids: Ulangi parameter ini untuk beberapa ID tugas yang tepat. Jangan gabungkan dengan koma.filter.model: Pengenal model.filter.service_tier:default,flex.
Respons berisi items dan total untuk hasil yang difilter. Setiap item memakai bentuk respons pengambilan tugas. Gunakan endpoint pengambilan untuk memperbarui status tugas yang diketahui.
Contoh
curl "https://api.tokenlab.sh/api/v3/contents/generations/tasks?page_num=1&page_size=20&filter.status=succeeded" \
-H "Authorization: Bearer $TOKENLAB_API_KEY"curl "https://api.tokenlab.sh/api/v3/contents/generations/tasks?filter.task_ids=cgt-20260102030405-a1b2c" \
-H "Authorization: Bearer $TOKENLAB_API_KEY"curl -X GET "https://example.com/api/v3/contents/generations/tasks"{ "items": [ { "id": "string", "model": "string", "status": "queued", "content": { "video_url": "http://example.com", "last_frame_url": "http://example.com" }, "seed": 0, "resolution": "string", "ratio": "string", "duration": "string", "frames": 0, "framespersecond": 0, "generate_audio": true, "tools": { "type": "web_search" }, "safety_identifier": "string", "draft": true, "draft_task_id": "string", "service_tier": "string", "execution_expires_after": 0, "usage": { "completion_tokens": 0, "total_tokens": 0, "tool_usage": { "web_search": 0 } }, "error": { "code": "string", "message": "string" }, "created_at": 0, "updated_at": 0 } ], "total": 0}Otorisasi
BearerAuth Autentikasi API Key. Buat atau kelola API key di Dashboard > API > API Keys.
Lokasi: header
Parameter query
Nomor halaman.
1 <= value <= 5001Ukuran halaman.
1 <= value <= 50020Filter berdasarkan status tugas.
Nilai yang tersedia
- "queued"
- "running"
- "succeeded"
- "failed"
- "cancelled"
- "expired"
ID tugas yang tepat. Ulangi filter.task_ids untuk beberapa ID.
Filter berdasarkan pengenal model.
Filter berdasarkan tingkat layanan.
Respons
application/json
application/json
application/json
application/json