การยืนยันตัวตน
ใช้คีย์ FECINE เป็น Bearer token อ่านเอกสารได้โดยไม่ต้องมีบัญชี
เชื่อมต่อกระบวนการผลิตตั้งแต่บทจนถึงวิดีโอสำเร็จด้วย FECINE API
ใช้คีย์ FECINE เป็น Bearer token อ่านเอกสารได้โดยไม่ต้องมีบัญชี
สร้างผลงาน อัปโหลดบทและสื่อ แล้วเพิ่มตัวละคร ฉากหลัง อุปกรณ์ประกอบฉากและกริด สร้างตอนและฉาก เชื่อมโยงภาพอ้างอิงแล้วสร้างวิดีโอ เลือกเทคสำหรับแต่ละฉากก่อนส่งออกฉบับสุดท้าย รอให้งานสร้างเสร็จและส่ง revision ล่าสุดเมื่อแก้ไข หากต้องการสร้างโครงสร้างจากบทที่อัปโหลด ให้เรียกงานสร้างโครงสร้างแยกต่างหาก
ตรวจสอบสถานะหรือรับ Webhook ใช้ ID ของไฟล์เพื่อรับลิงก์ดาวน์โหลดที่มีลายเซ็น
curl -X GET 'https://YOUR_FECINE_HOST/api/v1/capabilities' \
-H 'Authorization: Bearer YOUR_FECINE_API_KEY'GET /api/v1/capabilitiesไม่พบเอนด์พอยต์
ข้อผิดพลาด FECINE โปรดแจ้ง request_id เมื่อติดต่อฝ่ายสนับสนุน
คัดลอก JSON แล้วแทนที่ ID, URL และเนื้อหาด้วยค่าจริง
/api/v1/capabilitiesดูฟีเจอร์ที่ใช้ได้ตอนนี้ดูฟังก์ชัน โมเดล รูปแบบอัปโหลด และขีดจำกัดการผลิตในสภาพแวดล้อม API ปัจจุบัน
สิทธิ์ที่ต้องใช้: projects:read
ไม่มีพารามิเตอร์
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"items": [
{
"studio_workflow": {
"equivalent": false,
"stages": [
"script"
],
"project_access": "read_only",
"gaps": [
"example"
]
},
"template_id": "example",
"template_version": 1,
"enabled": false,
"stages": [
"example"
],
"output_profiles": [
"example"
],
"unsupported_reasons": [
"example"
],
"max_shots": 1,
"max_episode_seconds": 1,
"upload_mime_types": [
"example"
],
"max_upload_bytes": 1
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/worksดูรายการโปรเจกต์ของคุณดูรายการผลงานที่เข้าถึงได้ กรองด้วย state และแบ่งหน้าด้วย cursor และ limit
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
cursorquery | string | — |
|
limitquery | integer | — |
|
statequery | string | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"items": [
{
"id": "11111111-1111-4111-8111-111111111111",
"name": "example",
"revision": 1,
"state": "active",
"created_at": "2026-09-20T00:00:00Z",
"client_reference": "example"
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/worksสร้างโปรเจกต์ใหม่สร้างผลงานตาม name ใช้ ID ที่ได้รับเพื่อเพิ่มสื่อและเริ่มการผลิต
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
name | string | * |
|
client_reference | string | — |
|
{
"name": "example"
}HTTP 201 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"name": "example",
"revision": 1,
"state": "active",
"created_at": "2026-09-20T00:00:00Z",
"client_reference": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{project_id}ดูข้อมูลโปรเจกต์ดูชื่อ สถานะ และ revision ปัจจุบันของผลงานก่อนแก้ไขหรือส่งคำขอผลิต
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"name": "example",
"revision": 1,
"state": "active",
"created_at": "2026-09-20T00:00:00Z",
"client_reference": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{project_id}แก้ไขข้อมูลโปรเจกต์เปลี่ยนชื่อหรือสถานะ active และ archived ของผลงาน โดยส่ง ETag ล่าสุดใน If-Match
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
If-Matchheader | string | * | ใช้ ETag ล่าสุดรวมเครื่องหมายคำพูด |
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
name | string | — |
|
state | string | — |
|
{}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"name": "example",
"revision": 1,
"state": "active",
"created_at": "2026-09-20T00:00:00Z",
"client_reference": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{project_id}/resourcesดูรายการไฟล์ที่อัปโหลดไว้ดูบท ตัวละคร ฉาก อุปกรณ์ประกอบ ตอน และช็อตของผลงาน เลือกประเภทด้วย kind
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
kindquery | string | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"items": [
{
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"content": {
"kind": "script",
"name": "example",
"data": {
"language": "example"
}
},
"created_at": "2026-09-20T00:00:00Z"
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{project_id}/resourcesเพิ่มบทหรือรูปภาพเพิ่มข้อมูลการผลิต เช่น เนื้อหาบทหรือช็อตด้วย kind และ data ใช้ /uploads สำหรับไฟล์
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
kind | string | * | kind = script
|
name | string | * | kind = script
|
data | object | * | kind = scriptระบุเพียง text หรือ source_asset_id อย่างใดอย่างหนึ่ง |
data.text | string | — | kind = script
|
data.source_asset_id | string | — | kind = script
|
data.language | string | * | kind = script
|
kind | string | * | kind = character
|
name | string | * | kind = character
|
data | object | * | kind = character |
data.description | string | * | kind = character
|
data.reference_asset_ids | array | — | kind = character
|
kind | string | * | kind = scene
|
name | string | * | kind = scene
|
data | object | * | kind = scene |
data.description | string | * | kind = scene
|
data.reference_asset_ids | array | — | kind = scene
|
kind | string | * | kind = prop
|
name | string | * | kind = prop
|
data | object | * | kind = prop |
data.description | string | * | kind = prop
|
data.reference_asset_ids | array | — | kind = prop
|
kind | string | * | kind = episode
|
name | string | * | kind = episode
|
data | object | * | kind = episode |
data.script_resource_id | string | * | kind = episode
|
data.sequence | integer | * | kind = episode
|
data.raw_content | string | — | kind = episode
|
data.description | string | — | kind = episode
|
kind | string | * | kind = shot
|
name | string | * | kind = shot
|
data | object | * | kind = shot |
data.episode_id | string | * | kind = shot
|
data.scene_id | string | — | kind = shot
|
data.character_ids | array | — | kind = shot
|
data.prop_ids | array | — | kind = shot
|
data.description | string | * | kind = shot
|
data.video_prompt | oneOf | — | kind = shot |
data.sequence | integer | — | kind = shot
|
data.duration_seconds | integer | * | kind = shot
|
data.selected_image_asset_id | string | — | kind = shot
|
data.selected_video_asset_id | string | — | kind = shot
|
{
"kind": "script",
"name": "example",
"data": {
"language": "example"
}
}HTTP 201 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"content": {
"kind": "script",
"name": "example",
"data": {
"language": "example"
}
},
"created_at": "2026-09-20T00:00:00Z"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{project_id}/resources/{resource_id}ดูไฟล์ทีละรายการดูประเภท เนื้อหา และ revision ของข้อมูลที่ระบุด้วย resource_id ในผลงาน
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
resource_idpath | string | * |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"content": {
"kind": "script",
"name": "example",
"data": {
"language": "example"
}
},
"created_at": "2026-09-20T00:00:00Z"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{project_id}/resources/{resource_id}แก้ไขไฟล์แก้ไข kind และ data ของข้อมูล ส่ง ETag ล่าสุดใน If-Match เพื่อป้องกันการแก้ไขชนกัน
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
resource_idpath | string | * |
|
If-Matchheader | string | * | ใช้ ETag ล่าสุดรวมเครื่องหมายคำพูด |
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
kind | string | * | kind = script
|
name | string | * | kind = script
|
data | object | * | kind = scriptระบุเพียง text หรือ source_asset_id อย่างใดอย่างหนึ่ง |
data.text | string | — | kind = script
|
data.source_asset_id | string | — | kind = script
|
data.language | string | * | kind = script
|
kind | string | * | kind = character
|
name | string | * | kind = character
|
data | object | * | kind = character |
data.description | string | * | kind = character
|
data.reference_asset_ids | array | — | kind = character
|
kind | string | * | kind = scene
|
name | string | * | kind = scene
|
data | object | * | kind = scene |
data.description | string | * | kind = scene
|
data.reference_asset_ids | array | — | kind = scene
|
kind | string | * | kind = prop
|
name | string | * | kind = prop
|
data | object | * | kind = prop |
data.description | string | * | kind = prop
|
data.reference_asset_ids | array | — | kind = prop
|
kind | string | * | kind = episode
|
name | string | * | kind = episode
|
data | object | * | kind = episode |
data.script_resource_id | string | * | kind = episode
|
data.sequence | integer | * | kind = episode
|
data.raw_content | string | — | kind = episode
|
data.description | string | — | kind = episode
|
kind | string | * | kind = shot
|
name | string | * | kind = shot
|
data | object | * | kind = shot |
data.episode_id | string | * | kind = shot
|
data.scene_id | string | — | kind = shot
|
data.character_ids | array | — | kind = shot
|
data.prop_ids | array | — | kind = shot
|
data.description | string | * | kind = shot
|
data.video_prompt | oneOf | — | kind = shot |
data.sequence | integer | — | kind = shot
|
data.duration_seconds | integer | * | kind = shot
|
data.selected_image_asset_id | string | — | kind = shot
|
data.selected_video_asset_id | string | — | kind = shot
|
{
"kind": "script",
"name": "example",
"data": {
"language": "example"
}
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"content": {
"kind": "script",
"name": "example",
"data": {
"language": "example"
}
},
"created_at": "2026-09-20T00:00:00Z"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{project_id}/workflowดูข้อมูลการผลิตใน Studioดูบท ตอน งานออกแบบ ฉาก สื่อ เทค และการเลือกคัตของผลงานพร้อม revision ล่าสุดในครั้งเดียว
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"api_runs": [
{
"id": "11111111-1111-4111-8111-111111111111",
"state": "example",
"created_at": "example",
"completed_at": "example",
"total_steps": 0,
"completed_steps": 0,
"error_code": "example"
}
],
"work_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example",
"trash": [
{
"id": "11111111-1111-4111-8111-111111111111",
"entity_type": "asset",
"name": "example",
"deleted_at": "example"
}
],
"assets": [
{
"id": "11111111-1111-4111-8111-111111111111",
"name": "example",
"kind": "example",
"media_type": "example",
"status": "example",
"mime": "example",
"lineage_id": "11111111-1111-4111-8111-111111111111",
"version": 1,
"is_current_version": false
}
],
"settings": {
"title": "example",
"tags": [
"example"
],
"cover": "example",
"aspect": "example",
"resolution": "example",
"style": "example",
"style_prompt": "example",
"state": "example"
},
"script": {
"text": "example",
"logline": "example",
"synopsis": "example"
},
"episodes": [
{
"id": "11111111-1111-4111-8111-111111111111",
"number": 1,
"title": "example",
"raw_content": "example",
"description": "example"
}
],
"designs": [
{
"id": "11111111-1111-4111-8111-111111111111",
"kind": "character",
"name": "example",
"description": "example",
"tags": [
"example"
],
"primary_asset_id": "11111111-1111-4111-8111-111111111111"
}
],
"scenes": [
{
"id": "11111111-1111-4111-8111-111111111111",
"episode_id": "11111111-1111-4111-8111-111111111111",
"number": 1,
"heading": "example",
"description": "example",
"video_prompt": "example"
}
],
"scene_designs": [
{
"scene_id": "11111111-1111-4111-8111-111111111111",
"design_id": "11111111-1111-4111-8111-111111111111",
"kind": "example",
"position": 1
}
],
"takes": [
{
"scene_id": "11111111-1111-4111-8111-111111111111",
"asset_id": "11111111-1111-4111-8111-111111111111",
"position": 1
}
],
"cut_selections": [
{
"scene_id": "11111111-1111-4111-8111-111111111111",
"asset_id": "11111111-1111-4111-8111-111111111111"
}
],
"design_assets": [
{
"design_id": "11111111-1111-4111-8111-111111111111",
"asset_id": "11111111-1111-4111-8111-111111111111",
"kind": "example",
"name": "example",
"position": 1
}
]
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{project_id}/script/analysesวิเคราะห์บทใน Studioวิเคราะห์บทเพื่อสร้างโครงสร้างการผลิต ส่ง script_text เพื่อแก้บทก่อนวิเคราะห์ หรือเว้นไว้เพื่อใช้บทที่บันทึก ติดตามด้วย getJob
สิทธิ์ที่ต้องใช้: jobs:create
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
model | string | — |
|
script_text | string | — |
|
{
"revision": 1
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/works/{project_id}/script/buildsสร้างการผลิตทั้งหมดจากบทส่ง script_asset_ids ที่ตรวจสอบแล้วและ revision เพื่อสร้างบท ภาพอ้างอิง และสตอรีบอร์ด full_rebuild แทนโครงสร้างเดิม สร้างภาพและวิดีโอแยกต่างหาก คิดค่าใช้จ่ายตามโทเคนขาเข้าและขาออกจริงที่รายงานในอัตราเดียวกับ Studio ไม่ต้องกำหนดงบเครดิตต่อคำขอ GET /jobs/{job_id} → output_asset_ids.
สิทธิ์ที่ต้องใช้: jobs:create
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
model | string | — |
|
script_asset_ids | array | — |
|
material_scope | string | — |
|
preprocess | object | — | |
preprocess.ignoreAttachments | boolean | — |
|
preprocess.discardKeywords | array | — |
|
preprocess.keepLabels | array | — |
|
rebuild_policy | string | * |
|
{
"revision": 1,
"rebuild_policy": "full_rebuild"
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/works/{project_id}/libraryดูสื่อในคลังที่ใช้ร่วมกันดูสื่อที่นำเข้าผลงานได้ scope=personal คือคลังส่วนตัว ค่าเริ่มต้น scope=studio คือคลังร่วม
สิทธิ์ที่ต้องใช้: assets:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
limit | integer | — |
|
cursor | string | — | |
scope | string | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"items": [
{
"id": "11111111-1111-4111-8111-111111111111",
"name": "example",
"kind": "example",
"media_type": "example",
"mime": "example",
"version": 1,
"is_current_version": false
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{project_id}/importsนำเข้าสื่อในผลงานคัดลอกสื่อส่วนตัวหรือสื่อร่วมตาม asset_id เป็นสำเนาของผลงาน การแก้ไขหรือลบต้นฉบับภายหลังไม่กระทบสำเนา
สิทธิ์ที่ต้องใช้: assets:write, assets:read, projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
asset_id | string | * |
|
{
"revision": 1,
"asset_id": "11111111-1111-4111-8111-111111111111"
}HTTP 201 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"state": "pending",
"mime_type": "example",
"size_bytes": 0,
"download_url": "example",
"expires_at": "2026-09-20T00:00:00Z"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{project_id}/script/draftsสร้างร่างบทส่ง instructions, source_text ถ้ามี, revision และ max_output_tokens บันทึกบทใหม่โดยไม่เขียนทับบทเดิม คิดค่าใช้จ่ายตามโทเคนขาเข้าและขาออกจริงที่รายงานในอัตราเดียวกับ Studio ไม่ต้องกำหนดงบเครดิตต่อคำขอ GET /jobs/{job_id} → output_asset_ids.
สิทธิ์ที่ต้องใช้: jobs:create
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
model | string | — |
|
instructions | string | * |
|
source_text | string | — |
|
max_output_tokens | integer | — |
|
{
"revision": 1,
"instructions": "example"
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/works/{work_id}/charactersตัวละคร · ดู (list)ตัวละคร · ดู (list). GET /api/v1/works/{work_id}/characters. GET
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"items": [
{
"id": "11111111-1111-4111-8111-111111111111",
"kind": "character",
"name": "example",
"description": "example",
"tags": [
"example"
],
"primary_asset_id": "11111111-1111-4111-8111-111111111111"
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/charactersตัวละคร · สร้างตัวละคร · สร้าง. POST /api/v1/works/{work_id}/characters. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
name | string | * |
|
description | string | — |
|
tags | array | — |
|
revision | integer | * |
{
"name": "example",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/characters/{reference_id}ตัวละคร · ดูตัวละคร · ดู. GET /api/v1/works/{work_id}/characters/{reference_id}. GET
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"kind": "character",
"name": "example",
"description": "example",
"tags": [
"example"
],
"primary_asset_id": "11111111-1111-4111-8111-111111111111"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/characters/{reference_id}ตัวละคร · แก้ไขตัวละคร · แก้ไข. PATCH /api/v1/works/{work_id}/characters/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
name | string | * |
|
description | string | — |
|
tags | array | — |
|
revision | integer | * |
{
"name": "example",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/characters/{reference_id}ตัวละคร · ลบตัวละคร · ลบ. DELETE /api/v1/works/{work_id}/characters/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * |
{
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/characters/{reference_id}/primary-imageตัวละคร · ตั้งภาพอ้างอิงตัวละคร · ตั้งภาพอ้างอิง. PUT /api/v1/works/{work_id}/characters/{reference_id}/primary-image. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
asset_id | string | * |
|
current_asset_id | oneOf | * | |
revision | integer | * |
{
"asset_id": "11111111-1111-4111-8111-111111111111",
"current_asset_id": "11111111-1111-4111-8111-111111111111",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/characters/{reference_id}/image-generationsตัวละคร · สร้างภาพอ้างอิงตัวละคร · สร้างภาพอ้างอิง. POST /api/v1/works/{work_id}/characters/{reference_id}/image-generations. revision + Idempotency-Key → GET /api/v1/jobs/{job_id}
สิทธิ์ที่ต้องใช้: jobs:create
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
variants | integer | — |
|
model | string | — |
|
prompt | string | — |
|
aspect_ratio | string | — | |
image_size | string | — |
|
quality | string | — |
|
background | string | — |
|
output_format | string | — |
|
reference_asset_ids | array | — |
|
slot | string | — |
|
variant_name | string | — |
|
current_asset_id | string | — |
|
{
"revision": 1
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/works/{work_id}/scenes/{scene_id}/references/characters/{reference_id}ตัวละคร · เชื่อมกับฉากตัวละคร · เชื่อมกับฉาก. PUT /api/v1/works/{work_id}/scenes/{scene_id}/references/characters/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
scene_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * |
{
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/scenes/{scene_id}/references/characters/{reference_id}ตัวละคร · ยกเลิกการเชื่อมฉากตัวละคร · ยกเลิกการเชื่อมฉาก. DELETE /api/v1/works/{work_id}/scenes/{scene_id}/references/characters/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
scene_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * |
{
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/background-scenesฉากพื้นหลัง · ดู (list)ฉากพื้นหลัง · ดู (list). GET /api/v1/works/{work_id}/background-scenes. GET
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"items": [
{
"id": "11111111-1111-4111-8111-111111111111",
"kind": "character",
"name": "example",
"description": "example",
"tags": [
"example"
],
"primary_asset_id": "11111111-1111-4111-8111-111111111111"
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/background-scenesฉากพื้นหลัง · สร้างฉากพื้นหลัง · สร้าง. POST /api/v1/works/{work_id}/background-scenes. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
name | string | * |
|
description | string | — |
|
tags | array | — |
|
revision | integer | * |
{
"name": "example",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/background-scenes/{reference_id}ฉากพื้นหลัง · ดูฉากพื้นหลัง · ดู. GET /api/v1/works/{work_id}/background-scenes/{reference_id}. GET
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"kind": "character",
"name": "example",
"description": "example",
"tags": [
"example"
],
"primary_asset_id": "11111111-1111-4111-8111-111111111111"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/background-scenes/{reference_id}ฉากพื้นหลัง · แก้ไขฉากพื้นหลัง · แก้ไข. PATCH /api/v1/works/{work_id}/background-scenes/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
name | string | * |
|
description | string | — |
|
tags | array | — |
|
revision | integer | * |
{
"name": "example",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/background-scenes/{reference_id}ฉากพื้นหลัง · ลบฉากพื้นหลัง · ลบ. DELETE /api/v1/works/{work_id}/background-scenes/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * |
{
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/background-scenes/{reference_id}/primary-imageฉากพื้นหลัง · ตั้งภาพอ้างอิงฉากพื้นหลัง · ตั้งภาพอ้างอิง. PUT /api/v1/works/{work_id}/background-scenes/{reference_id}/primary-image. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
asset_id | string | * |
|
current_asset_id | oneOf | * | |
revision | integer | * |
{
"asset_id": "11111111-1111-4111-8111-111111111111",
"current_asset_id": "11111111-1111-4111-8111-111111111111",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/background-scenes/{reference_id}/image-generationsฉากพื้นหลัง · สร้างภาพอ้างอิงฉากพื้นหลัง · สร้างภาพอ้างอิง. POST /api/v1/works/{work_id}/background-scenes/{reference_id}/image-generations. revision + Idempotency-Key → GET /api/v1/jobs/{job_id}
สิทธิ์ที่ต้องใช้: jobs:create
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
variants | integer | — |
|
model | string | — |
|
prompt | string | — |
|
aspect_ratio | string | — | |
image_size | string | — |
|
quality | string | — |
|
background | string | — |
|
output_format | string | — |
|
reference_asset_ids | array | — |
|
slot | string | — |
|
variant_name | string | — |
|
current_asset_id | string | — |
|
{
"revision": 1
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/works/{work_id}/scenes/{scene_id}/references/background-scenes/{reference_id}ฉากพื้นหลัง · เชื่อมกับฉากฉากพื้นหลัง · เชื่อมกับฉาก. PUT /api/v1/works/{work_id}/scenes/{scene_id}/references/background-scenes/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
scene_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * |
{
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/scenes/{scene_id}/references/background-scenes/{reference_id}ฉากพื้นหลัง · ยกเลิกการเชื่อมฉากฉากพื้นหลัง · ยกเลิกการเชื่อมฉาก. DELETE /api/v1/works/{work_id}/scenes/{scene_id}/references/background-scenes/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
scene_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * |
{
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/propsอุปกรณ์ประกอบฉาก · ดู (list)อุปกรณ์ประกอบฉาก · ดู (list). GET /api/v1/works/{work_id}/props. GET
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"items": [
{
"id": "11111111-1111-4111-8111-111111111111",
"kind": "character",
"name": "example",
"description": "example",
"tags": [
"example"
],
"primary_asset_id": "11111111-1111-4111-8111-111111111111"
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/propsอุปกรณ์ประกอบฉาก · สร้างอุปกรณ์ประกอบฉาก · สร้าง. POST /api/v1/works/{work_id}/props. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
name | string | * |
|
description | string | — |
|
tags | array | — |
|
revision | integer | * |
{
"name": "example",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/props/{reference_id}อุปกรณ์ประกอบฉาก · ดูอุปกรณ์ประกอบฉาก · ดู. GET /api/v1/works/{work_id}/props/{reference_id}. GET
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"kind": "character",
"name": "example",
"description": "example",
"tags": [
"example"
],
"primary_asset_id": "11111111-1111-4111-8111-111111111111"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/props/{reference_id}อุปกรณ์ประกอบฉาก · แก้ไขอุปกรณ์ประกอบฉาก · แก้ไข. PATCH /api/v1/works/{work_id}/props/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
name | string | * |
|
description | string | — |
|
tags | array | — |
|
revision | integer | * |
{
"name": "example",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/props/{reference_id}อุปกรณ์ประกอบฉาก · ลบอุปกรณ์ประกอบฉาก · ลบ. DELETE /api/v1/works/{work_id}/props/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * |
{
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/props/{reference_id}/primary-imageอุปกรณ์ประกอบฉาก · ตั้งภาพอ้างอิงอุปกรณ์ประกอบฉาก · ตั้งภาพอ้างอิง. PUT /api/v1/works/{work_id}/props/{reference_id}/primary-image. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
asset_id | string | * |
|
current_asset_id | oneOf | * | |
revision | integer | * |
{
"asset_id": "11111111-1111-4111-8111-111111111111",
"current_asset_id": "11111111-1111-4111-8111-111111111111",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/props/{reference_id}/image-generationsอุปกรณ์ประกอบฉาก · สร้างภาพอ้างอิงอุปกรณ์ประกอบฉาก · สร้างภาพอ้างอิง. POST /api/v1/works/{work_id}/props/{reference_id}/image-generations. revision + Idempotency-Key → GET /api/v1/jobs/{job_id}
สิทธิ์ที่ต้องใช้: jobs:create
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
variants | integer | — |
|
model | string | — |
|
prompt | string | — |
|
aspect_ratio | string | — | |
image_size | string | — |
|
quality | string | — |
|
background | string | — |
|
output_format | string | — |
|
reference_asset_ids | array | — |
|
slot | string | — |
|
variant_name | string | — |
|
current_asset_id | string | — |
|
{
"revision": 1
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/works/{work_id}/scenes/{scene_id}/references/props/{reference_id}อุปกรณ์ประกอบฉาก · เชื่อมกับฉากอุปกรณ์ประกอบฉาก · เชื่อมกับฉาก. PUT /api/v1/works/{work_id}/scenes/{scene_id}/references/props/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
scene_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * |
{
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/scenes/{scene_id}/references/props/{reference_id}อุปกรณ์ประกอบฉาก · ยกเลิกการเชื่อมฉากอุปกรณ์ประกอบฉาก · ยกเลิกการเชื่อมฉาก. DELETE /api/v1/works/{work_id}/scenes/{scene_id}/references/props/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
scene_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * |
{
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/gridsกริด · ดู (list)กริด · ดู (list). GET /api/v1/works/{work_id}/grids. GET
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"items": [
{
"id": "11111111-1111-4111-8111-111111111111",
"kind": "character",
"name": "example",
"description": "example",
"tags": [
"example"
],
"primary_asset_id": "11111111-1111-4111-8111-111111111111"
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/gridsกริด · สร้างกริด · สร้าง. POST /api/v1/works/{work_id}/grids. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
name | string | * |
|
description | string | — |
|
tags | array | — |
|
revision | integer | * |
{
"name": "example",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/grids/{reference_id}กริด · ดูกริด · ดู. GET /api/v1/works/{work_id}/grids/{reference_id}. GET
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"kind": "character",
"name": "example",
"description": "example",
"tags": [
"example"
],
"primary_asset_id": "11111111-1111-4111-8111-111111111111"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/grids/{reference_id}กริด · แก้ไขกริด · แก้ไข. PATCH /api/v1/works/{work_id}/grids/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
name | string | * |
|
description | string | — |
|
tags | array | — |
|
revision | integer | * |
{
"name": "example",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/grids/{reference_id}กริด · ลบกริด · ลบ. DELETE /api/v1/works/{work_id}/grids/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * |
{
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/grids/{reference_id}/primary-imageกริด · ตั้งภาพอ้างอิงกริด · ตั้งภาพอ้างอิง. PUT /api/v1/works/{work_id}/grids/{reference_id}/primary-image. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
asset_id | string | * |
|
current_asset_id | oneOf | * | |
revision | integer | * |
{
"asset_id": "11111111-1111-4111-8111-111111111111",
"current_asset_id": "11111111-1111-4111-8111-111111111111",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/grids/{reference_id}/image-generationsกริด · สร้างภาพอ้างอิงกริด · สร้างภาพอ้างอิง. POST /api/v1/works/{work_id}/grids/{reference_id}/image-generations. revision + Idempotency-Key → GET /api/v1/jobs/{job_id}
สิทธิ์ที่ต้องใช้: jobs:create
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
variants | integer | — |
|
model | string | — |
|
prompt | string | — |
|
aspect_ratio | string | — | |
image_size | string | — |
|
quality | string | — |
|
background | string | — |
|
output_format | string | — |
|
reference_asset_ids | array | — |
|
slot | string | — |
|
variant_name | string | — |
|
current_asset_id | string | — |
|
{
"revision": 1
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/works/{work_id}/scenes/{scene_id}/references/grids/{reference_id}กริด · เชื่อมกับฉากกริด · เชื่อมกับฉาก. PUT /api/v1/works/{work_id}/scenes/{scene_id}/references/grids/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
scene_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * |
{
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/scenes/{scene_id}/references/grids/{reference_id}กริด · ยกเลิกการเชื่อมฉากกริด · ยกเลิกการเชื่อมฉาก. DELETE /api/v1/works/{work_id}/scenes/{scene_id}/references/grids/{reference_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
scene_idpath | string | * |
|
reference_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * |
{
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/episodesตอน · ดู (list)ตอน · ดู (list). GET /api/v1/works/{work_id}/episodes. GET
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"items": [
{
"id": "11111111-1111-4111-8111-111111111111",
"number": 1,
"title": "example",
"raw_content": "example",
"description": "example"
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/episodesสร้างตอนสร้างตอน. POST /api/v1/works/{work_id}/episodes. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
title | string | * |
|
number | integer | — | |
raw_content | string | — |
|
description | string | — |
|
revision | integer | * |
{
"title": "example",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/episodes/{episode_id}ตอน · ดูตอน · ดู. GET /api/v1/works/{work_id}/episodes/{episode_id}. GET
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
episode_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"number": 1,
"title": "example",
"raw_content": "example",
"description": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/episodes/{episode_id}ตอน · แก้ไขตอน · แก้ไข. PATCH /api/v1/works/{work_id}/episodes/{episode_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
episode_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
title | string | * |
|
number | integer | — | |
raw_content | string | — |
|
description | string | — |
|
revision | integer | * |
{
"title": "example",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/episodes/{episode_id}ตอน · ลบตอน · ลบ. DELETE /api/v1/works/{work_id}/episodes/{episode_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
episode_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * |
{
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/episodes/{episode_id}/scenesฉาก · ดู (list)ฉาก · ดู (list). GET /api/v1/works/{work_id}/episodes/{episode_id}/scenes. GET
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
episode_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"items": [
{
"id": "11111111-1111-4111-8111-111111111111",
"episode_id": "11111111-1111-4111-8111-111111111111",
"number": 1,
"heading": "example",
"description": "example",
"video_prompt": "example"
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/episodes/{episode_id}/scenesสร้างฉากสร้างฉาก. POST /api/v1/works/{work_id}/episodes/{episode_id}/scenes. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
episode_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
heading | string | * |
|
number | integer | — | |
description | string | — |
|
video_prompt | oneOf | — | |
revision | integer | * |
{
"heading": "example",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/episodes/{episode_id}/scenes/{scene_id}ฉาก · ดูฉาก · ดู. GET /api/v1/works/{work_id}/episodes/{episode_id}/scenes/{scene_id}. GET
สิทธิ์ที่ต้องใช้: projects:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
episode_idpath | string | * |
|
scene_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"episode_id": "11111111-1111-4111-8111-111111111111",
"number": 1,
"heading": "example",
"description": "example",
"video_prompt": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/episodes/{episode_id}/scenes/{scene_id}ฉาก · แก้ไขฉาก · แก้ไข. PATCH /api/v1/works/{work_id}/episodes/{episode_id}/scenes/{scene_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
episode_idpath | string | * |
|
scene_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
heading | string | * |
|
number | integer | — | |
description | string | — |
|
video_prompt | oneOf | — | |
revision | integer | * |
{
"heading": "example",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/archive-importsนำเข้าไฟล์ ZIPนำเข้าไฟล์ ZIP. POST /api/v1/works/{work_id}/archive-imports. Use a verified ZIP asset_id and current revision. Preserves the archive and uses the same name-based material update rules as Studio. Check imported, failed and asset_ids on completion. Creation requires jobs:create, assets:read, assets:write and projects:write. Idempotency-Key; GET /api/v1/works/{work_id}/archive-imports/{import_id}
สิทธิ์ที่ต้องใช้: jobs:create
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
asset_id | string | * |
|
{
"revision": 1,
"asset_id": "11111111-1111-4111-8111-111111111111"
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"progress": {
"phase": "extracting",
"current": 0,
"total": 0
},
"imported": 0,
"failed": 0,
"asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/works/{work_id}/archive-imports/{import_id}ดูสถานะนำเข้า ZIPดูสถานะนำเข้า ZIP. GET /api/v1/works/{work_id}/archive-imports/{import_id}. Use a verified ZIP asset_id and current revision. Preserves the archive and uses the same name-based material update rules as Studio. Check imported, failed and asset_ids on completion. Creation requires jobs:create, assets:read, assets:write and projects:write. jobs:read
สิทธิ์ที่ต้องใช้: jobs:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
import_idpath | string | * |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"progress": {
"phase": "extracting",
"current": 0,
"total": 0
},
"imported": 0,
"failed": 0,
"asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/uploadsเตรียมอัปโหลดหลายไฟล์เตรียมอัปโหลดหลายไฟล์. POST /api/v1/works/{work_id}/uploads. Idempotency-Key + files (1–20) → PUT upload_url → POST /api/v1/uploads/{upload_id}/complete
สิทธิ์ที่ต้องใช้: assets:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
files | array | * |
|
files[].filename | string | * |
|
files[].mime_type | string | * |
|
files[].size_bytes | integer | * |
|
files[].sha256 | string | * |
{
"files": [
{
"filename": "example",
"mime_type": "text/plain",
"size_bytes": 1,
"sha256": "example"
}
]
}HTTP 201 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"items": [
{
"filename": "example",
"ticket": {
"id": "11111111-1111-4111-8111-111111111111",
"asset_id": "11111111-1111-4111-8111-111111111111",
"upload_url": "example",
"method": "PUT",
"content_type": "example",
"expires_at": "2026-09-20T00:00:00Z"
}
}
]
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/scenes/{scene_id}ฉาก · ลบฉาก · ลบ. DELETE /api/v1/works/{work_id}/scenes/{scene_id}. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
scene_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * |
{
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/episodes/{episode_id}/scene-orderเรียงลำดับฉากเรียงลำดับฉาก. PUT /api/v1/works/{work_id}/episodes/{episode_id}/scene-order. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
episode_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
scene_ids | array | * |
|
revision | integer | * |
{
"scene_ids": [
"11111111-1111-4111-8111-111111111111"
],
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/scriptบันทึกบทบันทึกบท. PUT /api/v1/works/{work_id}/script. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
text | string | * |
|
revision | integer | * |
{
"text": "example",
"revision": 1
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/scenes/{scene_id}/video-generationsสร้างวิดีโอฉากสร้างวิดีโอฉาก. POST /api/v1/works/{work_id}/scenes/{scene_id}/video-generations. revision + Idempotency-Key → GET /api/v1/jobs/{job_id}
สิทธิ์ที่ต้องใช้: jobs:create
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
scene_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
anchor_asset_id | string | — |
|
reference_asset_ids | array | — |
|
model | string | — |
|
prompt | string | — |
|
duration_seconds | integer | * |
|
resolution | string | * |
|
aspect_ratio | string | * |
|
generate_audio | boolean | — |
{
"revision": 1,
"duration_seconds": 1,
"resolution": "example",
"aspect_ratio": "example"
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/works/{work_id}/scenes/{scene_id}/selected-takeเลือกเทคสุดท้ายเลือกเทคสุดท้าย. PUT /api/v1/works/{work_id}/scenes/{scene_id}/selected-take. revision + Idempotency-Key
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
scene_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
take_id | oneOf | * |
{
"revision": 1,
"take_id": "11111111-1111-4111-8111-111111111111"
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{work_id}/exportsส่งออกวิดีโอสุดท้ายส่งออกวิดีโอสุดท้าย. POST /api/v1/works/{work_id}/exports. revision + Idempotency-Key → GET /api/v1/jobs/{job_id}
สิทธิ์ที่ต้องใช้: jobs:create
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
work_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
allow_partial | boolean | — |
|
selections | array | — |
|
selections[].scene_id | string | * |
|
selections[].asset_id | string | * |
|
{
"revision": 1
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/works/{project_id}/plansดูแผนงานและเครดิตที่จะใช้ดูก่อนว่าจะผลิตอะไรและใช้เครดิตเท่าไร โดยยังไม่เริ่มผลิตจริง
สิทธิ์ที่ต้องใช้: runs:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
template_id | string | * |
|
template_version | number | * |
|
project_revision | integer | * | |
episode_ids | array | * | ID ของตอนต้องไม่ซ้ำกัน
|
mode | string | * |
|
output_profile | string | * |
|
{
"template_id": "episode-production",
"template_version": 1,
"project_revision": 1,
"episode_ids": [
"11111111-1111-4111-8111-111111111111"
],
"mode": "reviewed",
"output_profile": "sandbox-episode-v1"
}HTTP 201 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"project_revision": 1,
"template_id": "example",
"template_version": 1,
"executable": false,
"expires_at": "2026-09-20T00:00:00Z",
"budget_ceiling": {
"currency": "example",
"micro_units": "example"
},
"steps": [
{
"stage_key": "example",
"target_ids": [
"11111111-1111-4111-8111-111111111111"
],
"depends_on": [
"example"
],
"requires_review": false,
"max_cost": {
"currency": "example",
"micro_units": "example"
}
}
],
"unsupported_reasons": [
"example"
]
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{project_id}/runsเริ่มการผลิตเริ่มผลิตตาม plan_id ที่เตรียมไว้และคืน ID การทำงาน ใช้ getRun เพื่อติดตามสถานะและผลลัพธ์
สิทธิ์ที่ต้องใช้: runs:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
plan_id | string | * |
|
client_reference | string | — |
|
{
"plan_id": "11111111-1111-4111-8111-111111111111"
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"plan_id": "11111111-1111-4111-8111-111111111111",
"version": 1,
"state": "queued",
"client_reference": "example",
"created_at": "2026-09-20T00:00:00Z",
"completed_at": "2026-09-20T00:00:00Z",
"budget_remaining": {
"currency": "example",
"micro_units": "example"
},
"committed_cost": {
"currency": "example",
"micro_units": "example"
},
"unresolved_cost": {
"currency": "example",
"micro_units": "example"
},
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
]
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/works/{project_id}/workflow/commandsแก้ไขการผลิตใน Studioแก้ไขข้อมูลการผลิต เช่น บท ฉาก งานออกแบบ หรือเทค เลือก operation แล้วส่ง input พร้อม revision ล่าสุด
สิทธิ์ที่ต้องใช้: projects:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | operation = design.asset.set |
operation | string | * | operation = design.asset.set
|
input | object | * | operation = design.asset.set |
input.id | string | * | operation = design.asset.set
|
input.asset_id | string | * | operation = design.asset.set
|
input.kind | string | * | operation = design.asset.set
|
input.current_asset_id | oneOf | * | operation = design.asset.set |
input.name | string | — | operation = design.asset.set
|
revision | integer | * | operation = asset.delete |
operation | string | * | operation = asset.delete
|
input | object | * | operation = asset.delete |
input.id | string | * | operation = asset.delete
|
revision | integer | * | operation = trash.restore |
operation | string | * | operation = trash.restore
|
input | object | * | operation = trash.restore |
input.id | string | * | operation = trash.restore
|
input.entity_type | string | * | operation = trash.restore
|
revision | integer | * | operation = scene.duplicate |
operation | string | * | operation = scene.duplicate
|
input | object | * | operation = scene.duplicate |
input.id | string | * | operation = scene.duplicate
|
revision | integer | * | operation = project.settings.update |
operation | string | * | operation = project.settings.update
|
input | object | * | operation = project.settings.update |
input.title | string | * | operation = project.settings.update
|
input.tags | array | * | operation = project.settings.update
|
input.cover | string | * | operation = project.settings.update
|
input.aspect | string | * | operation = project.settings.update
|
input.resolution | string | * | operation = project.settings.update
|
input.style | string | * | operation = project.settings.update
|
input.style_prompt | string | * | operation = project.settings.update
|
revision | integer | * | operation = project.rename |
operation | string | * | operation = project.rename
|
input | object | * | operation = project.rename |
input.title | string | * | operation = project.rename
|
revision | integer | * | operation = project.state.set |
operation | string | * | operation = project.state.set
|
input | object | * | operation = project.state.set |
input.state | string | * | operation = project.state.set
|
revision | integer | * | operation = script.update |
operation | string | * | operation = script.update
|
input | object | * | operation = script.update |
input.text | string | * | operation = script.update
|
revision | integer | * | operation = script.bible.update |
operation | string | * | operation = script.bible.update
|
input | object | * | operation = script.bible.update |
input.logline | string | * | operation = script.bible.update
|
input.synopsis | string | * | operation = script.bible.update
|
revision | integer | * | operation = episode.save |
operation | string | * | operation = episode.save
|
input | object | * | operation = episode.save |
input.id | string | — | operation = episode.save
|
input.title | string | * | operation = episode.save
|
input.number | integer | — | operation = episode.save |
input.raw_content | string | — | operation = episode.save
|
input.description | string | — | operation = episode.save
|
revision | integer | * | operation = episode.delete |
operation | string | * | operation = episode.delete
|
input | object | * | operation = episode.delete |
input.id | string | * | operation = episode.delete
|
revision | integer | * | operation = scene.save |
operation | string | * | operation = scene.save
|
input | object | * | operation = scene.save |
input.id | string | — | operation = scene.save
|
input.episode_id | string | * | operation = scene.save
|
input.heading | string | * | operation = scene.save
|
input.number | integer | — | operation = scene.save |
input.description | string | — | operation = scene.save
|
input.video_prompt | oneOf | — | operation = scene.save |
revision | integer | * | operation = scene.delete |
operation | string | * | operation = scene.delete
|
input | object | * | operation = scene.delete |
input.id | string | * | operation = scene.delete
|
revision | integer | * | operation = scene.reorder |
operation | string | * | operation = scene.reorder
|
input | object | * | operation = scene.reorder |
input.episode_id | string | * | operation = scene.reorder
|
input.scene_ids | array | * | operation = scene.reorder
|
revision | integer | * | operation = design.save |
operation | string | * | operation = design.save
|
input | object | * | operation = design.save |
input.id | string | — | operation = design.save
|
input.kind | string | * | operation = design.save
|
input.name | string | * | operation = design.save
|
input.description | string | — | operation = design.save
|
input.tags | array | — | operation = design.save
|
revision | integer | * | operation = design.delete |
operation | string | * | operation = design.delete
|
input | object | * | operation = design.delete |
input.id | string | * | operation = design.delete
|
revision | integer | * | operation = design.voice.set |
operation | string | * | operation = design.voice.set
|
input | object | * | operation = design.voice.set |
input.id | string | * | operation = design.voice.set
|
input.asset_id | oneOf | * | operation = design.voice.set |
revision | integer | * | operation = design.asset.detach |
operation | string | * | operation = design.asset.detach
|
input | object | * | operation = design.asset.detach |
input.id | string | * | operation = design.asset.detach
|
input.asset_id | string | * | operation = design.asset.detach
|
input.kind | string | * | operation = design.asset.detach
|
revision | integer | * | operation = design.asset.restore |
operation | string | * | operation = design.asset.restore
|
input | object | * | operation = design.asset.restore |
input.id | string | * | operation = design.asset.restore
|
input.current_asset_id | string | * | operation = design.asset.restore
|
input.restore_asset_id | string | * | operation = design.asset.restore
|
input.kind | string | * | operation = design.asset.restore
|
revision | integer | * | operation = design.variant.rename |
operation | string | * | operation = design.variant.rename
|
input | object | * | operation = design.variant.rename |
input.id | string | * | operation = design.variant.rename
|
input.asset_id | string | * | operation = design.variant.rename
|
input.name | string | * | operation = design.variant.rename
|
revision | integer | * | operation = scene.design.attach |
operation | string | * | operation = scene.design.attach
|
input | object | * | operation = scene.design.attach |
input.scene_id | string | * | operation = scene.design.attach
|
input.design_id | string | * | operation = scene.design.attach
|
revision | integer | * | operation = scene.design.detach |
operation | string | * | operation = scene.design.detach
|
input | object | * | operation = scene.design.detach |
input.scene_id | string | * | operation = scene.design.detach
|
input.design_id | string | * | operation = scene.design.detach
|
revision | integer | * | operation = cut.take.select |
operation | string | * | operation = cut.take.select
|
input | object | * | operation = cut.take.select |
input.scene_id | string | * | operation = cut.take.select
|
input.asset_id | oneOf | * | operation = cut.take.select |
revision | integer | * | operation = take.delete |
operation | string | * | operation = take.delete
|
input | object | * | operation = take.delete |
input.scene_id | string | * | operation = take.delete
|
input.asset_id | string | * | operation = take.delete
|
{
"revision": 1,
"operation": "design.asset.set",
"input": {
"id": "11111111-1111-4111-8111-111111111111",
"asset_id": "11111111-1111-4111-8111-111111111111",
"kind": "primary",
"current_asset_id": "11111111-1111-4111-8111-111111111111"
}
}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"work_id": "11111111-1111-4111-8111-111111111111",
"changed_id": "11111111-1111-4111-8111-111111111111",
"revision": 1,
"studio_url": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/works/{project_id}/cut/exportsส่งออกการตัดต่อ Studioรวมวิดีโอตามลำดับตอนและฉาก ใช้ selections เลือกเทค และ allow_partial อนุญาตให้ข้ามฉากที่ไม่มีวิดีโอ ติดตามด้วย getJob
สิทธิ์ที่ต้องใช้: jobs:create
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
allow_partial | boolean | — |
|
selections | array | — |
|
selections[].scene_id | string | * |
|
selections[].asset_id | string | * |
|
{
"revision": 1
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/works/{project_id}/storyboard/videosสร้างวิดีโอฉากสตอรีบอร์ดสร้างวิดีโอของ scene_id ตามโมเดล ความยาว และความละเอียดที่เลือก ระบุภาพเริ่มต้นด้วย anchor_asset_id ได้ ติดตามด้วย getJob
สิทธิ์ที่ต้องใช้: jobs:create
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
scene_id | string | * |
|
anchor_asset_id | string | — |
|
reference_asset_ids | array | — |
|
model | string | — |
|
prompt | string | — |
|
duration_seconds | integer | * |
|
resolution | string | * |
|
aspect_ratio | string | * |
|
generate_audio | boolean | — |
{
"revision": 1,
"scene_id": "11111111-1111-4111-8111-111111111111",
"duration_seconds": 1,
"resolution": "example",
"aspect_ratio": "example"
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/works/{project_id}/designs/imagesสร้างภาพตัวละคร ฉาก อุปกรณ์ประกอบฉาก หรือกริดสร้างภาพ 1–4 ภาพสำหรับ design_id ระบุพรอมป์ต์และภาพอ้างอิง เลือกภาพหลักหรือภาพแปรผัน แล้วติดตามด้วย getJob
สิทธิ์ที่ต้องใช้: jobs:create
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
revision | integer | * | |
design_id | string | * |
|
variants | integer | — |
|
model | string | — |
|
prompt | string | — |
|
aspect_ratio | string | — | |
image_size | string | — |
|
quality | string | — |
|
background | string | — |
|
output_format | string | — |
|
reference_asset_ids | array | — |
|
slot | string | — |
|
variant_name | string | — |
|
current_asset_id | string | — |
|
{
"revision": 1,
"design_id": "11111111-1111-4111-8111-111111111111"
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/uploadsขอที่อยู่สำหรับอัปโหลดไฟล์ลงทะเบียนข้อมูลไฟล์และรับ upload_url ส่งไฟล์ด้วย PUT แล้วเรียก API ยืนยันการอัปโหลด รองรับ TXT, Markdown, DOCX, PNG, JPEG, WebP, AVIF, WAV และ ZIP ใช้ขีดจำกัดขนาดร่วมกับ Studio ดู upload_limits จาก GET /capabilities บทสูงสุด 5,000,000 ตัวอักษร ชื่อไฟล์ห้ามมีตัวคั่นพาธ WAV ต้องเป็น PCM หรือ IEEE float
สิทธิ์ที่ต้องใช้: assets:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_id | string | * |
|
filename | string | * |
|
mime_type | string | * |
|
size_bytes | integer | * |
|
sha256 | string | * |
{
"project_id": "11111111-1111-4111-8111-111111111111",
"filename": "example",
"mime_type": "text/plain",
"size_bytes": 1,
"sha256": "example"
}HTTP 201 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"asset_id": "11111111-1111-4111-8111-111111111111",
"upload_url": "example",
"method": "PUT",
"content_type": "example",
"expires_at": "2026-09-20T00:00:00Z"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/uploads/{upload_id}/completeแจ้งว่าอัปโหลดไฟล์เสร็จแล้วตรวจสอบไฟล์ที่อัปโหลดกับข้อมูลที่ลงทะเบียน และคืนข้อมูลสื่อสำหรับใช้ในการผลิต
สิทธิ์ที่ต้องใช้: assets:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
upload_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
{}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"state": "pending",
"mime_type": "example",
"size_bytes": 0,
"download_url": "example",
"expires_at": "2026-09-20T00:00:00Z"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/uploads/{upload_id}/contentอัปโหลดเนื้อหาไฟล์ส่งข้อมูลไฟล์แบบ application/octet-stream ไปยังที่อยู่อัปโหลดที่ได้รับ แล้วเรียก completeUpload เมื่อสำเร็จ
สิทธิ์ที่ต้องใช้: assets:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
upload_idpath | string | * |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"uploaded": true
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/assets/{asset_id}ดูข้อมูลผลงานและลิงก์ดาวน์โหลดดูข้อมูลสื่อและ download_url ที่ลงนามเมื่อพร้อมดาวน์โหลด ใช้ลิงก์ก่อนหมดอายุ
สิทธิ์ที่ต้องใช้: assets:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
asset_idpath | string | * |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"state": "pending",
"mime_type": "example",
"size_bytes": 0,
"download_url": "example",
"expires_at": "2026-09-20T00:00:00Z"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/downloads/{asset_id}ดาวน์โหลดไฟล์ที่เสร็จแล้วดาวน์โหลดไฟล์ด้วย download_url ที่ลงนามจาก getAsset โดยใช้ URL เต็ม ลิงก์หมดอายุในห้านาที
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
asset_idpath | string | * |
|
expiresquery | string | * | |
signaturequery | string | * |
HTTP 200 ไบต์ของไฟล์
application/octet-stream · ไบต์ของไฟล์
/api/v1/runsดูรายการงานผลิตดูรายการการผลิต โดยกรองตามผลงาน สถานะ client_reference และช่วงเวลา
สิทธิ์ที่ต้องใช้: runs:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
cursorquery | string | — |
|
limitquery | integer | — |
|
project_idquery | string | — |
|
statequery | string | — |
|
client_referencequery | string | — |
|
fromquery | string | — |
|
toquery | string | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"items": [
{
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"plan_id": "11111111-1111-4111-8111-111111111111",
"version": 1,
"state": "queued",
"client_reference": "example",
"created_at": "2026-09-20T00:00:00Z",
"completed_at": "2026-09-20T00:00:00Z",
"budget_remaining": {
"currency": "example",
"micro_units": "example"
},
"committed_cost": {
"currency": "example",
"micro_units": "example"
},
"unresolved_cost": {
"currency": "example",
"micro_units": "example"
},
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
]
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/runs/{run_id}ดูความคืบหน้าของงานผลิตดูสถานะ เวอร์ชัน และผลลัพธ์ที่พร้อมของการผลิต ใช้เวอร์ชันนี้เมื่อส่งการตัดสินใจ
สิทธิ์ที่ต้องใช้: runs:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
run_idpath | string | * |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"plan_id": "11111111-1111-4111-8111-111111111111",
"version": 1,
"state": "queued",
"client_reference": "example",
"created_at": "2026-09-20T00:00:00Z",
"completed_at": "2026-09-20T00:00:00Z",
"budget_remaining": {
"currency": "example",
"micro_units": "example"
},
"committed_cost": {
"currency": "example",
"micro_units": "example"
},
"unresolved_cost": {
"currency": "example",
"micro_units": "example"
},
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
]
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/runs/{run_id}/stepsดูความคืบหน้าทีละขั้นดูขั้นตอนและสถานะของการผลิต เพื่อดูว่าขั้นตอนใดรอ กำลังทำ หรือเสร็จแล้ว
สิทธิ์ที่ต้องใช้: runs:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
run_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"items": [
{
"id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"stage_key": "example",
"target_id": "11111111-1111-4111-8111-111111111111",
"job_id": "11111111-1111-4111-8111-111111111111",
"state": "blocked",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example",
"ordinal": 1
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/runs/{run_id}/eventsดูบันทึกระหว่างการผลิตดูเหตุการณ์ระหว่างการผลิต เช่น การเปลี่ยนสถานะและคำขอตรวจสอบ เพื่อติดตามสิ่งที่เกิดขึ้น
สิทธิ์ที่ต้องใช้: runs:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
run_idpath | string | * |
|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"items": [
{
"event_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"sequence": 1,
"type": "run.state_changed",
"state": "queued",
"step_id": "11111111-1111-4111-8111-111111111111",
"created_at": "2026-09-20T00:00:00Z"
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/runs/{run_id}/decisionsอนุมัติให้ทำต่อหรือหยุดส่งการตัดสินใจ approve, stop, resume, cancel_remaining หรือ retry_result สำหรับการผลิต โดยส่งเวอร์ชันล่าสุดเป็น expected_version retry_result ตรวจสอบผลของงานวิดีโอที่บันทึกไว้อีกครั้ง ส่ง expected_version ล่าสุดและ step_id โดยคงงานและเครดิตที่จองไว้ ไม่สร้างใหม่ รองรับงานที่กู้คืนได้ภายใน 24 ชั่วโมงหลังรับคำขอ ผลหรือการใช้งานอื่นที่ไม่ชัดเจนต้องให้ผู้ดูแลตรวจสอบ
สิทธิ์ที่ต้องใช้: runs:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
run_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
action | string | * | retry_result resumes result polling for an accepted Studio video on the original reservation; requires step_id and expected_version. It never resubmits generation. Unconfirmed usage without a saved video task requires operator review.
|
expected_version | integer | * | |
step_id | string | — |
|
selected_asset_ids | array | — |
|
{
"action": "approve",
"expected_version": 1
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"plan_id": "11111111-1111-4111-8111-111111111111",
"version": 1,
"state": "queued",
"client_reference": "example",
"created_at": "2026-09-20T00:00:00Z",
"completed_at": "2026-09-20T00:00:00Z",
"budget_remaining": {
"currency": "example",
"micro_units": "example"
},
"committed_cost": {
"currency": "example",
"micro_units": "example"
},
"unresolved_cost": {
"currency": "example",
"micro_units": "example"
},
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
]
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/jobs/{job_id}ดูสถานะและผลของงานดูสถานะปัจจุบันและ ID สื่อผลลัพธ์ของงาน เมื่อเสร็จแล้วใช้ getAsset เพื่อรับไฟล์
สิทธิ์ที่ต้องใช้: jobs:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
job_idpath | string | * |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/jobs/{job_id}/buildดูความคืบหน้าและแหล่งข้อมูลดูขั้นตอน ข้อความความคืบหน้า เอกสารต้นฉบับ และข้อความที่เตรียมประมวลผลของงานสร้างโครงสร้างบท
สิทธิ์ที่ต้องใช้: jobs:read, assets:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
job_idpath | string | * |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"state": "example",
"stage": "example",
"messages": [
{
"id": "11111111-1111-4111-8111-111111111111",
"role": "assistant",
"stage": "example",
"content": "example",
"status": "streaming",
"seq": 1,
"created_at": "example",
"updated_at": "example"
}
],
"sources": [
{
"id": "11111111-1111-4111-8111-111111111111",
"name": "example",
"filterMode": "prompt_index",
"sourceText": "example",
"llmText": "example",
"originalChars": 1,
"preparedChars": 1
}
]
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/jobsสั่งทำทีละฟีเจอร์ทันทีเลือกทำทีละฟีเจอร์ได้ทันที ไม่ต้องรันทั้งกระบวนการ analyze_script อ่านบทแล้วสร้างช็อต generate_image สร้างภาพตัวละคร ฉาก พร็อพ และช็อต generate_video สร้างวิดีโอของช็อตที่เลือกภาพไว้แล้ว ส่วน assemble_video ต่อเป็นตอนเมื่อทุกช็อตมีวิดีโอครบ ให้ส่ง revision ล่าสุดของโปรเจกต์เสมอ คำขอแบบ Live จะกันเครดิตไว้ล่วงหน้า
สิทธิ์ที่ต้องใช้: jobs:create
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
project_id | string | * |
|
project_revision | integer | * | |
target_id | string | * |
|
type | string | * |
|
profile_id | string | * |
|
client_reference | string | — |
|
{
"project_id": "11111111-1111-4111-8111-111111111111",
"project_revision": 1,
"target_id": "11111111-1111-4111-8111-111111111111",
"type": "analyze_script",
"profile_id": "example"
}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"state": "queued",
"output_asset_ids": [
"11111111-1111-4111-8111-111111111111"
],
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/requestsดูประวัติคำขอที่ส่งไปดูประวัติคำขอ API พร้อมสถานะ HTTP และเวลาประมวลผล กรองตามผลงานและช่วงเวลาได้
สิทธิ์ที่ต้องใช้: requests:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
cursorquery | string | — |
|
limitquery | integer | — |
|
fromquery | string | — |
|
toquery | string | — |
|
project_idquery | string | — |
|
run_idquery | string | — |
|
job_idquery | string | — |
|
key_idquery | string | — |
|
status_codequery | integer | — |
|
methodquery | string | — |
|
route_templatequery | string | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"items": [
{
"request_id": "11111111-1111-4111-8111-111111111111",
"created_at": "2026-09-20T00:00:00Z",
"method": "GET",
"route_template": "example",
"status_code": 100,
"duration_ms": 0,
"actor_kind": "api_key",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"job_id": "11111111-1111-4111-8111-111111111111",
"replayed": false,
"error_code": "example"
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/requests/{request_id}ดูประวัติคำขอทีละรายการค้นหาคำขอ API ด้วย request_id เพื่อดูสถานะ HTTP เวลา และงานที่เกี่ยวข้อง
สิทธิ์ที่ต้องใช้: requests:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
request_idpath | string | * |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"request_id": "11111111-1111-4111-8111-111111111111",
"created_at": "2026-09-20T00:00:00Z",
"method": "GET",
"route_template": "example",
"status_code": 100,
"duration_ms": 0,
"actor_kind": "api_key",
"work_id": "11111111-1111-4111-8111-111111111111",
"run_id": "11111111-1111-4111-8111-111111111111",
"job_id": "11111111-1111-4111-8111-111111111111",
"replayed": false,
"error_code": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/usageดูปริมาณการใช้เครดิตดูยอดการใช้งานในช่วงเวลาที่ระบุ รวมจำนวนที่สำรองและชำระแล้ว
สิทธิ์ที่ต้องใช้: usage:read
ไม่มีพารามิเตอร์
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"period_start": "2026-09-20T00:00:00Z",
"period_end": "2026-09-20T00:00:00Z",
"as_of": "2026-09-20T00:00:00Z",
"http_requests": 0,
"runs": 0,
"jobs": 0,
"reserved": {
"currency": "example",
"micro_units": "example"
},
"committed": {
"currency": "example",
"micro_units": "example"
},
"unresolved": {
"currency": "example",
"micro_units": "example"
},
"remaining": {
"currency": "example",
"micro_units": "example"
},
"amount_basis": "partner_limit",
"billing_mode": "pilot"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/webhook-endpointsดูรายการที่อยู่แจ้งเตือน Webhookดู URL ของ Webhook ที่ลงทะเบียน เหตุการณ์ที่ติดตาม และสถานะเปิดใช้งาน
สิทธิ์ที่ต้องใช้: webhooks:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"items": [
{
"id": "11111111-1111-4111-8111-111111111111",
"url": "example",
"work_ids": [
"11111111-1111-4111-8111-111111111111"
],
"events": [
"run.state_changed"
],
"enabled": false,
"verified": false,
"secret_version": 1,
"created_at": "2026-09-20T00:00:00Z"
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/webhook-endpointsเพิ่มที่อยู่แจ้งเตือน Webhookลงทะเบียน URL ของ Webhook เพื่อรับเหตุการณ์การผลิตที่เลือกจากผลงานที่ระบุ
สิทธิ์ที่ต้องใช้: webhooks:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
url | string | * |
|
project_ids | array | * |
|
events | array | * |
|
{
"url": "example",
"project_ids": [
"11111111-1111-4111-8111-111111111111"
],
"events": [
"run.state_changed"
]
}HTTP 201 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"endpoint": {
"id": "11111111-1111-4111-8111-111111111111",
"url": "example",
"work_ids": [
"11111111-1111-4111-8111-111111111111"
],
"events": [
"run.state_changed"
],
"enabled": false,
"verified": false,
"secret_version": 1,
"created_at": "2026-09-20T00:00:00Z"
}
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/webhook-endpoints/{endpoint_id}แก้ไขที่อยู่แจ้งเตือน Webhookเปิดหรือปิด Webhook หรือเปลี่ยนประเภทเหตุการณ์ที่รับ
สิทธิ์ที่ต้องใช้: webhooks:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
endpoint_idpath | string | * |
|
If-Matchheader | string | * | ใช้ ETag ล่าสุดรวมเครื่องหมายคำพูด |
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
enabled | boolean | — | |
events | array | — |
|
{}HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"url": "example",
"work_ids": [
"11111111-1111-4111-8111-111111111111"
],
"events": [
"run.state_changed"
],
"enabled": false,
"verified": false,
"secret_version": 1,
"created_at": "2026-09-20T00:00:00Z"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/webhook-deliveriesดูประวัติการส่ง Webhookดูประวัติและสถานะการส่ง Webhook เพื่อตรวจสอบว่าการแจ้งเตือนส่งถึงหรือไม่
สิทธิ์ที่ต้องใช้: webhooks:read
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
cursorquery | string | — |
|
limitquery | integer | — |
|
HTTP 200 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"items": [
{
"id": "11111111-1111-4111-8111-111111111111",
"endpoint_id": "11111111-1111-4111-8111-111111111111",
"event_id": "11111111-1111-4111-8111-111111111111",
"state": "pending",
"attempt": 0,
"http_status": 1,
"next_attempt_at": "2026-09-20T00:00:00Z",
"created_at": "2026-09-20T00:00:00Z"
}
],
"next_cursor": "example"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag
/api/v1/webhook-deliveries/{delivery_id}/redeliverส่ง Webhook อีกครั้งขอส่งการแจ้งเตือน Webhook เดิมที่ระบุด้วย delivery_id อีกครั้ง
สิทธิ์ที่ต้องใช้: webhooks:write
| ชื่อ | Type | จำเป็น | คำอธิบาย |
|---|---|---|---|
delivery_idpath | string | * |
|
Idempotency-Keyheader | string | * | ส่งซ้ำด้วย Idempotency-Key และเนื้อหาคำขอเดิม
|
{}HTTP 202 สำเร็จ
{
"request_id": "11111111-1111-4111-8111-111111111111",
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"endpoint_id": "11111111-1111-4111-8111-111111111111",
"event_id": "11111111-1111-4111-8111-111111111111",
"state": "pending",
"attempt": 0,
"http_status": 1,
"next_attempt_at": "2026-09-20T00:00:00Z",
"created_at": "2026-09-20T00:00:00Z"
}
}เฮดเดอร์การตอบกลับ: X-Request-Id · ETag · Retry-After
/api/v1/openapi.jsonดาวน์โหลดข้อกำหนด APIดาวน์โหลดข้อกำหนด OpenAPI ที่มีเส้นทาง API ฟิลด์คำขอ และโครงสร้างการตอบกลับ
ไม่มีพารามิเตอร์
HTTP 200 ข้อกำหนด OpenAPI
{}error.code 71สถานะ 2xx แปลว่าคำขอผ่านแล้ว 201 คือสร้างใหม่เรียบร้อย ส่วน 202 คือรับคำขอไว้และกำลังทำอยู่ จึงยังไม่มีผลลัพธ์ ให้ตรวจสอบสถานะงานว่าเสร็จหรือยัง คำตอบที่สำเร็จจะมี request_id และ data เสมอ ยกเว้นการดาวน์โหลดไฟล์และเอกสารข้อกำหนด API เมื่อเกิดข้อผิดพลาด ทุกปลายทางจะคืนค่า error รูปแบบเดียวกัน ให้เขียนเงื่อนไขในโปรแกรมด้วย error.code ส่วน message คือคำอธิบายสาเหตุและวิธีแก้สำหรับคนอ่าน จะส่งใหม่ได้หรือไม่ ให้ดูที่ retryable ลองใหม่อัตโนมัติเฉพาะเมื่อเป็น true และรอตามเวลาใน retry_after_seconds หรือ Retry-After ก่อนส่ง เมื่อส่ง POST ซ้ำ ให้ใช้ Idempotency-Key และเนื้อหาเดิม เพื่อไม่ให้ถูกคิดเงินหรือสร้างงานซ้ำ หากพบ error.code ที่ไม่รู้จัก ให้จัดการจากสถานะ HTTP และ retryable และแจ้ง request_id เมื่อติดต่อฝ่ายสนับสนุน ความผิดพลาดที่เกิดหลังรับงานแล้วจะแสดงในสถานะและผลลัพธ์ของงาน ไม่ใช่ในคำตอบนี้
{
"request_id": "11111111-1111-4111-8111-111111111111",
"error": {
"code": "INVALID_REQUEST",
"message": "Invalid input. Check the required fields, types and values.",
"retryable": false
}
}| error.code | HTTP | คำอธิบาย |
|---|---|---|
INVALID_REFERENCE | 422 | A selected reference is unavailable or does not belong to this project. Select a ready image from this project. |
MODEL_UNAVAILABLE | 422 | The selected model is unavailable. Refresh the model list and select another model. |
MODEL_POLICY_REQUIRED | 503 | No default model policy is configured. Specify a model or ask the administrator to configure the task policy. |
BUILD_REPLAY_CONFLICT | 409 | The build inputs changed. Review the saved build before continuing. |
INVALID_REQUEST | 400,422 | Invalid input. Check the required fields, types and values. |
INVALID_API_KEY | 401 | Invalid credentials or download signature. Check the API key or obtain a new download URL. |
INSUFFICIENT_SCOPE | 403 | Permission denied. Check the key scopes and project access. |
PARTNER_BLOCKED | 403 | Account blocked. Contact support. |
PARTNER_PAUSED | 403 | Account paused. Ask the administrator to resume access. |
RESOURCE_NOT_FOUND | 404 | Resource unavailable. Check its ID and access permissions. |
METHOD_NOT_ALLOWED | 405 | Unsupported HTTP method. Use the documented method. |
REQUEST_TIMEOUT | 408 | Request body timed out. Check the connection and upload size. |
IDEMPOTENCY_KEY_REQUIRED | 400 | Provide a valid Idempotency-Key header. |
IDEMPOTENCY_CONFLICT | 409 | This Idempotency-Key belongs to a different request. Reuse it only with the original request. |
IDEMPOTENCY_KEY_EXPIRED | 409 | Idempotency record expired. Check the original result before starting a new operation. |
PRECONDITION_FAILED | 412 | Provide the latest quoted ETag in If-Match. |
REVISION_CONFLICT | 409 | Resource changed. Read the latest revision before updating. |
RESOURCE_CONFLICT | 409 | Resource conflicts with existing data. Review the current resource. |
INVALID_TRANSITION | 409 | Action is unavailable in the current state. Read the latest state. |
RUN_IN_PROGRESS | 409 | A run is in progress. Check its status before starting another. |
JOB_RUNNING | 409 | A job is running. Wait for completion before editing. |
PLAN_EXPIRED | 409 | Plan expired. Create a new plan and review its quote. |
INSUFFICIENT_CREDITS | 402 | Insufficient credits. Check the balance and required credits. |
BUDGET_EXCEEDED | 409,429 | Budget limit exceeded. Review usage and the configured budget. |
RATE_LIMITED | 429 | Request rate exceeded. Follow retryable and Retry-After before retrying. |
CAPACITY_EXCEEDED | 429 | Capacity limit exceeded. Reduce the workload or wait for active work to finish. |
PAYLOAD_TOO_LARGE | 413 | Request body too large. Reduce it to the documented limit. |
UNSUPPORTED_MEDIA_TYPE | 415 | Unsupported content type or encoding. Use the documented Content-Type without Content-Encoding. |
UPLOAD_TOO_LARGE | 422 | Uploaded content exceeds its processing limit. Reduce the file size. |
UPLOAD_NOT_VERIFIED | 422 | Upload is incomplete, expired or invalid. Check the upload and verification steps. |
ASSET_KIND_MISMATCH | 422 | Asset type does not match the operation. Select a compatible asset. |
SELECTED_IMAGE_REQUIRED | 422 | Select a valid image before generating video. |
SELECTED_VIDEO_REQUIRED | 422 | Select valid videos for the requested shots before assembly. |
REFERENCE_LIMIT_EXCEEDED | 422 | Too many reference assets. Reduce them to the model limit. |
REFERENCE_IMAGE_REQUIRED | 422 | This model requires a reference image. Add an image or select a text-to-image model. |
INVALID_GENERATION_OPTIONS | 422 | Generation options are invalid. Check the model capabilities. |
PROMPT_REQUIRED | 422 | Provide a generation prompt. |
SCRIPT_TEXT_REQUIRED | 422 | Provide script text before starting this operation. |
SCENES_REQUIRED | 422 | Create scenes before starting this operation. |
VARIANT_NAME_REQUIRED | 422 | Provide a variant name. |
EPISODE_ALREADY_STRUCTURED | 409 | Episode already has shots. Review its existing structure. |
ONE_SCRIPT_PER_PROJECT | 409 | This project supports one script. Use the existing script. |
MULTIPLE_SCRIPTS_REQUIRE_REVIEW | 409 | Multiple scripts need review before continuing. |
NATIVE_CONTENT_ALREADY_EXISTS | 409 | Studio content already exists. Review it before continuing. |
LIVE_PROJECT_REQUIRED | 409 | This operation requires a live project. |
STUDIO_MIGRATION_REQUIRED | 409 | Project needs Studio migration. Contact support. |
UNSUPPORTED_CAPABILITY | 422 | Unsupported operation or profile. Check GET /capabilities. |
CAPABILITY_UNAVAILABLE | 503 | Capability currently unavailable. Check GET /capabilities. |
API_NOT_ACCEPTING | 503 | New requests are paused. Check service availability. |
DEPENDENCY_UNAVAILABLE | 503 | A required service is unavailable. Follow the retry guidance or contact support. |
PRICING_UNAVAILABLE | 503 | Pricing unavailable. A valid quote is required to proceed. |
MEDIA_TOOLS_UNAVAILABLE | 503 | Media processing unavailable. Contact support. |
STORAGE_READ_FAILED | 503 | Could not read the stored asset. Contact support with request_id. |
STORAGE_WRITE_FAILED | 503 | Could not save the asset. Check the result before retrying. |
INTERNAL_ERROR | 500 | Internal error. Follow retry guidance; include request_id when contacting support. |
RESPONSE_CONTRACT_VIOLATION | 500 | Server response validation failed. Contact support with request_id. |
INVALID_EXECUTION_CONTEXT | 500 | Execution context is invalid. Contact support. |
RETRY_TRANSACTION | 503 | Transaction could not complete. Follow the response retry guidance. |
CLAIM_LOST | 409 | Execution ownership changed. Check the current job state. |
PROVIDER_TIMEOUT | 504 | Generation service timed out. Check the existing job before submitting again. |
PROVIDER_TERMINAL_FAILURE | 422 | Generation failed. Review the job result and inputs. |
PROVIDER_RESULT_UNAVAILABLE | 502 | Generation result unavailable. Check the existing job and recovery options. |
INVALID_RESULT | 422,503 | Result failed validation. Review the job or contact support. |
RESULT_TOO_LARGE | 422 | Result exceeds the processing limit. Reduce the requested output. |
EXPORT_TOO_LARGE | 422 | Export exceeds the size limit. Reduce the export selection. |
RECOVERY_BACKOFF | 409 | Existing result recovery is delayed. Check again later; do not resubmit generation. |
VIDEO_RECOVERY_REVIEW_REQUIRED | 503 | The original video task needs scheduled recovery or operator review. Do not resubmit generation. |
RESULT_RECOVERY_REQUIRED | 409,503 | Existing result needs recovery. Check the run recovery options before resubmitting. |
RESULT_NOT_RECOVERABLE | 409 | Result cannot be recovered through this action. Review the run or contact support. |
RECOVERY_CAPACITY_EXCEEDED | 409 | Recovery limit reached. Contact support before further recovery attempts. |
USAGE_RECOVERY_REQUIRED | 503 | Usage needs reconciliation. Contact support; do not resubmit generation blindly. |