Video & materi

Daftar tugas (kompatibel Volc)

Cantumkan tugas kompatibel Seedance terbaru di organisasi saat ini.

GET
/api/v3/contents/generations/tasks

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: default 1, bilangan bulat dari 1 hingga 500.
  • page_size: default 20, bilangan bulat dari 1 hingga 500.
  • 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
AuthorizationBearer <token>

Autentikasi API Key. Buat atau kelola API key di Dashboard > API > API Keys.

Lokasi: header

Parameter query

page_num?integer

Nomor halaman.

Rentang1 <= value <= 500
bawaan1
page_size?integer

Ukuran halaman.

Rentang1 <= value <= 500
bawaan20
filter.status?string

Filter berdasarkan status tugas.

Nilai yang tersedia

  • "queued"
  • "running"
  • "succeeded"
  • "failed"
  • "cancelled"
  • "expired"
filter.task_ids?array<string>

ID tugas yang tepat. Ulangi filter.task_ids untuk beberapa ID.

filter.model?string

Filter berdasarkan pengenal model.

filter.service_tier?string

Filter berdasarkan tingkat layanan.

Respons

application/json

application/json

application/json

application/json