---
title: Seedance · 작업 조회와 관리
description: "작업 조회와 관리 — Tokenlio Seedance API"
outline: [2, 3]
pageClass: video-api-reference seedance-v2-reference
---

# 작업 조회와 관리

::: info Seedance API（v3）
https://api.tokenlio.ai와 플랫폼 Bearer Key, 현재 목록의 정확한 model ID를 사용하세요. 상세 필드는 공식 자료를 참고할 수 있으며 호출 주소·인증·예시는 본문을 따르세요.
:::

생성 응답의 작업UUID를5~10초 간격으로 조회하고 succeeded/failed/cancelled/expired까지 기다리세요. HTTP조회 오류로 대체 작업을 만들지 마세요.

```bash
curl -sS --fail-with-body "https://api.tokenlio.ai/api/v3/contents/generations/tasks/$TASK_ID" \
  -H "Authorization: Bearer $TOKENLIO_API_KEY"
```

## 목록·취소·삭제

목록은 **현재 Workspace와 현재 플랫폼 API Key**로 필터링하고 현재 멤버 권한도 확인합니다. 같은 Workspace의 다른 Key로 이 Key의 작업을 나열할 수 없습니다. `total`과 `items`는 같은 권한 범위로 계산하며 items는 개별 작업 형식입니다. 빈 목록은 `{"total":0,"items":[]}`입니다. [Workspace 공유 에셋 라이브러리](./conventions#management-scope)와 격리 단위가 다릅니다.

`filter.task_ids`는 플랫폼 UUID 최대 500개를 같은 쿼리 키를 반복해 전달합니다. 쉼표나 JSON 배열을 사용하지 않으며 다른 매개변수는 중복할 수 없습니다. `filter.service_tier`를 생략하면 default로 필터링하므로 flex 작업은 명시적으로 flex를 지정하세요.

| 쿼리 | 설명 |
| --- | --- |
| `page_num` | 1–500, 기본1. |
| `page_size` | 1–500, 기본20. |
| `filter.status` | queued / running / succeeded / failed / cancelled / expired. |
| `filter.model` | 정확한 공개 모델 ID. |
| `filter.service_tier` | default / flex, 기본 default. |
| `filter.task_ids` | 플랫폼 작업 ID. 여러 ID는 쿼리 키를 반복합니다. |

일반 작업은 최근7일, 2026-10-28 10:00 UTC+8 이후 생성한 Draft는14일 동안 목록에 표시됩니다. 이 기간은 결과 URL 유효 기간이나 소비 기록 보존과 별개입니다.

```bash
curl -sS --fail-with-body 'https://api.tokenlio.ai/api/v3/contents/generations/tasks?page_size=20&filter.status=succeeded' \
  -H "Authorization: Bearer $TOKENLIO_API_KEY"

curl -sS --fail-with-body -X DELETE 'https://api.tokenlio.ai/api/v3/contents/generations/tasks/TASK_ID' \
  -H "Authorization: Bearer $TOKENLIO_API_KEY"
```

DELETE 성공은 HTTP200 `{}`입니다. queued 취소 후 cancelled 상태로 조회할 수 있습니다. running / cancelled에는 새 DELETE를 허용하지 않습니다. succeeded / failed / expired 기록을 삭제하면 GET은404이며 목록에서도 제외됩니다. 성공한 생성 요금은 환불하지 않으며 기존 URL의 지속적인 접근도 보장하지 않습니다. 삭제한 Draft를 새 작업에서 참조할 수 없습니다.

DELETE에는 **JSON 본문이 없습니다**. 별도의 `/cancel` 경로나 status/action/force 필드도 없습니다. 먼저 GET으로 대상과 상태를 확인하세요. HTTP200 `{}`는 작업 ACK이며 취소는 GET으로 cancelled를 확인해야 합니다. 환불 증거가 아닙니다. 종료 기록은 원래 정산이 완료된 뒤 삭제하며 이미 확정된 요금은 환불하지 않습니다.

| 상태·응답 | 처리 |
| --- | --- |
| queued | 수동 DELETE로 취소하며 생성 시작과 경쟁할 수 있음. |
| running / cancelled | 새 DELETE 불가. 다른 버튼으로 강제할 수 없음. |
| succeeded / failed / expired | 정산 후 삭제 가능. 성공하면 GET404, 목록에서 제외. |
| 409 | 실제 `TaskSubmissionPending`, `TaskSettlementPending`, `TaskInUse` 등의 code/message에 따름. |
| 503 / `TaskOperationPending`, 타임아웃·결과 불명 | Retry-After에 따라 원래 작업 조회.404나 응답 유실로 취소·환불을 추정하지 않음. |

선택적 `Idempotency-Key`는 하나의 취소/삭제 의도를 식별합니다. 재시도 시 원래 플랫폼 Key, 대상, 멱등 키를 유지하고 새 대상이나 새 의도에만 새 키를 사용하세요. 저장된 결과는 원래 HTTP/본문을 재현하며404 같은 명확한 거절도 유지됩니다. 모든 반복 요청이200으로 바뀌는 것은 아닙니다.

```bash
curl -sS --fail-with-body --get 'https://api.tokenlio.ai/api/v3/contents/generations/tasks' \
  -H "Authorization: Bearer $TOKENLIO_API_KEY" \
  --data-urlencode 'filter.task_ids=TASK_ID_1' \
  --data-urlencode 'filter.task_ids=TASK_ID_2'

# TASK_ID를 바꾸고 동일 의도 재시도에는 원래 작업 키를 유지하세요.
curl -sS --fail-with-body -X DELETE 'https://api.tokenlio.ai/api/v3/contents/generations/tasks/TASK_ID' \
  -H "Authorization: Bearer $TOKENLIO_API_KEY" \
  -H "Idempotency-Key: ${TOKENLIO_OPERATION_KEY:?Set a stable operation key}"
```

## 작업 응답

```json
{
  "id": "dfc68868-d388-4d83-a173-d44e47a8bec7",
  "model": "seedance-2.0",
  "status": "succeeded",
  "content": {
    "video_url": "https://example.com/result.mp4"
  },
  "resolution": "1080p",
  "duration": 5,
  "usage": {
    "completion_tokens": 108900,
    "total_tokens": 108900
  }
}
```

| 필드 | 의미 |
| --- | --- |
| `id / model / status` | 작업 ID, 모델, 현재 상태. |
| `content.video_url / content.last_frame_url` | 동영상과 사용 가능한 마지막 프레임 URL. |
| `usage.completion_tokens / usage.total_tokens` | 실제 생성 Token 사용량. |
| `usage.tool_usage.web_search` | 반환 시 실제 검색 횟수. |
| `error.code / error.message` | 실패 상세. |
| `draft_task_id` | 참조한 드래프트 ID. |
| `resolution / ratio / duration / output_format` | 반환된 실제 출력 설정. |
| `created_at / updated_at` | Unix 타임스탬프. |
| `seed / frames / framespersecond` | 반환된 생성 메타데이터. |
| `execution_expires_after / priority / service_tier / generate_audio / draft / safety_identifier / tools` | 기타 작업 메타데이터. |

| status | 처리 |
| --- | --- |
| `queued / running` | 원래 작업을 계속 조회하고 재생성하지 않음. |
| `succeeded` | 결과를 빨리 저장. 재조회로 임시 URL 기한이 연장되지 않음. |
| `failed / expired / cancelled` | 조회를 멈추고 error 확인. |

failed/expired 조회도 HTTP200입니다. 조회 타임아웃이나 429/5xx는 생성 실패를 뜻하지 않습니다. 간격을 늘려 같은 ID를 조회하세요. 생성 요청 자체가 타임아웃이면 결과를 확인한 뒤 재생성 여부를 판단하세요.


## 다음 단계

- [동영상 작업 생성](./generation)
- [오류·재시도·복구](./errors)
- [생성 결과 콜백](./callbacks)


## 공식 참고

- [작업 조회와 관리 · GET](https://docs.volcengine.com/docs/ark/get-video-generation-task-api?lang=zh)
- [작업 조회와 관리 · LIST](https://docs.volcengine.com/docs/ark/list-video-generation-tasks-api?lang=zh)
- [작업 조회와 관리 · DELETE](https://docs.volcengine.com/docs/ark/cancel-or-delete-video-generation-tasks-api?lang=zh)
