ビデオと素材

タスク一覧(Volc 互換)

現在の組織の最近の Seedance 互換タスクを一覧します。

GET
/api/v3/contents/generations/tasks

概要

TokenLab Bearer API キーを使用し、認証されたワークスペースの最近の互換タスクを一覧します。filter.task_ids がなければ直近7日間を対象とし、正確な ID を指定した場合は該当タスクを直接照会します。

関連項目 Seedance 2.0 動画モデル および 動画生成.

応答形式

  • page_num: 既定値は 1。1–500 の整数。
  • page_size: 既定値は 20。1–500 の整数。
  • filter.status: queued, running, succeeded, failed, cancelled, expired.
  • filter.task_ids: 複数の正確なタスク ID はパラメーターを繰り返して指定します。カンマで連結しないでください。
  • filter.model: モデル識別子。
  • filter.service_tier: default, flex.

レスポンスは絞り込み結果の items と total を含みます。各項目は取得エンドポイントと同じ形式です。既知の ID の最新状態は取得エンドポイントで確認してください。

例

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}

認証

BearerAuth
AuthorizationBearer <token>

APIキー認証。Dashboard > API > API KeysでAPIキーを作成または管理します。

場所: header

クエリパラメータ

page_num?integer

ページ番号。

範囲1 <= value <= 500
デフォルト1
page_size?integer

ページサイズ。

範囲1 <= value <= 500
デフォルト20
filter.status?string

タスクステータスでフィルタリングします。

指定できる値

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

タスクIDの完全一致。複数のIDを指定する場合はfilter.task_idsを繰り返してください。

filter.model?string

モデル識別子でフィルタリングします。

filter.service_tier?string

サービスティアでフィルタリングします。

レスポンス

application/json

application/json

application/json

application/json