TokenではSeeDance2グループが有効になっている必要があります。有効になっていない場合、「no available channel for this model」というエラーが発生します。2.5と2.0ファミリーはどちらもSeeDance2を使用するため、1つのTokenで4つのモデルすべてに対応できます
curl -X POST "https://api.apiyi.com/seedance/api/v3/contents/generations/tasks" \ -H "Authorization: Bearer sk-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "doubao-seedance-2-0-fast-260128", "content": [ {"type": "text", "text": "Drone shot flying over an autumn valley, golden forests and a winding river, cinematic"} ], "resolution": "720p", "ratio": "16:9", "duration": 5, "generate_audio": false }'# Returns {"id":"cgt-2026xxxx-xxxxx"} — poll the query endpoint with this id
import timeimport requestsBASE = "https://api.apiyi.com/seedance/api/v3/contents/generations/tasks"HEADERS = { "Authorization": "Bearer sk-your-api-key", "Content-Type": "application/json", # Required: the gateway's gzip header does not match the actual encoding. # Without this you may get gzip decode errors, a truncated non-JSON body # (e.g. id":"cgt-xxx"} with the leading {" lost), or intermittent 400s "Accept-Encoding": "identity",}# 1. Create the taskbody = { "model": "doubao-seedance-2-0-fast-260128", "content": [ {"type": "text", "text": "Waves crashing on rocks at sunset, slow motion, serene mood"} ], "resolution": "720p", "ratio": "16:9", "duration": 5, # "generate_audio": False, # defaults to True; uncomment for silent video # "seed": 12345, # fix the seed for similar, reproducible results}task_id = requests.post(BASE, json=body, headers=HEADERS, timeout=60).json()["id"]print("task_id:", task_id)# 2. Poll until a terminal state (succeeded / failed / expired)while True: time.sleep(20) task = requests.get(f"{BASE}/{task_id}", headers=HEADERS, timeout=30).json() status = task.get("status") print("status:", status) if status in ("succeeded", "failed", "expired"): break# 3. Download the video (the URL expires in 24 h — copy it out immediately)if status == "succeeded": video_url = task["content"]["video_url"] # note: under content, not top-level print("tokens:", task["usage"]["completion_tokens"]) with requests.get(video_url, stream=True, timeout=300) as r: r.raise_for_status() with open(f"{task_id}.mp4", "wb") as f: for chunk in r.iter_content(chunk_size=1 << 20): f.write(chunk) print(f"saved {task_id}.mp4")else: print("task did not succeed:", task.get("error"))
# First + last frame: 2 images, roles required; mutually exclusive with reference modebody_first_last = { "model": "doubao-seedance-2-0-260128", "content": [ {"type": "text", "text": "Smooth transition from the first frame to the last, slow camera move"}, {"type": "image_url", "image_url": {"url": "https://example.com/first.jpg"}, "role": "first_frame"}, {"type": "image_url", "image_url": {"url": "https://example.com/last.jpg"}, "role": "last_frame"}, ], "resolution": "720p", "ratio": "adaptive", # match the first frame's ratio to avoid cropping "duration": 5,}# Multi-modal reference: 0-9 reference images + 0-3 reference videos + 0-3 reference audios# (at least 1 image or 1 video); can create / edit / extend videosbody_reference = { "model": "doubao-seedance-2-0-260128", "content": [ {"type": "text", "text": "Using the reference character and style, the character walks down a rainy street at night"}, {"type": "image_url", "image_url": {"url": "https://example.com/character.png"}, "role": "reference_image"}, # {"type": "video_url", "video_url": {"url": "..."}, "role": "reference_video"}, # {"type": "audio_url", "audio_url": {"url": "..."}, "role": "reference_audio"}, ], "resolution": "720p", "ratio": "16:9", "duration": 5,}# Images also accept Base64 (data:image/png;base64,xxx) and platform asset IDs (asset://xxx)
# 2.5 shares the endpoint and request shape with 2.0 — only `model` changes.# The four bodies below are capabilities unique to 2.5.# 1. 30-second clip: 2.5 caps at 30 s (the 2.0 family caps at 15)body_30s = { "model": "doubao-seedance-2-5-260628", "content": [{"type": "text", "text": "Drone shot flying over an autumn valley, morning mist drifting through the trees, one continuous take"}], "resolution": "720p", "ratio": "16:9", "duration": 30, # Do not omit: on 2.5 the default is -1 and the model picks its own length}# 2. Video editing: ratio must be adaptive, duration must be -1, source video 4-30 sbody_edit = { "model": "doubao-seedance-2-5-260628", "content": [ # The prompt needs an editing verb: add / remove / delete / change / replace {"type": "text", "text": "Add a few birds flying across @video1"}, {"type": "video_url", "video_url": {"url": "https://example.com/source.mp4"}, "role": "reference_video"}, ], "resolution": "720p", "ratio": "adaptive", # Required; a concrete ratio returns a synchronous 400 "duration": -1, # Required; a concrete duration returns a synchronous 400 "omni_reference_task_type": "edit", # Declare it to validate at submission time "output_format": "mov", # Optional: mov is recommended for post (some players cannot open it)}# 3. Video extension: ratio must be adaptivebody_extend = { "model": "doubao-seedance-2-5-260628", "content": [ # The prompt needs an extension verb: extend / continue {"type": "text", "text": "Extend @video1 forward, camera keeps pushing in as the light fades"}, {"type": "video_url", "video_url": {"url": "https://example.com/source.mp4"}, "role": "reference_video"}, ], "resolution": "720p", "ratio": "adaptive", "omni_reference_task_type": "extend",}# 4. Audio-only reference: unique to 2.5; the 2.0 family requires an image or video alongside audiobody_audio_only = { "model": "doubao-seedance-2-5-260628", "content": [ {"type": "text", "text": "Abstract light and shadow pulsing to the rhythm of @audio1"}, {"type": "audio_url", "audio_url": {"url": "https://example.com/track.mp3"}, "role": "reference_audio"}, ], "resolution": "720p", "ratio": "16:9", "duration": 5,}# Submission and polling are identical to the flow above.
const BASE = "https://api.apiyi.com/seedance/api/v3/contents/generations/tasks";const HEADERS = { "Authorization": "Bearer sk-your-api-key", "Content-Type": "application/json",};// 1. Create the taskconst { id } = await fetch(BASE, { method: "POST", headers: HEADERS, body: JSON.stringify({ model: "doubao-seedance-2-0-fast-260128", content: [{ type: "text", text: "A mountain lake reflecting the starry sky, time-lapse" }], resolution: "720p", ratio: "9:16", // portrait costs the same as landscape duration: 5, }),}).then(r => r.json());console.log("task_id:", id);// 2. Poll until a terminal statelet task;do { await new Promise(r => setTimeout(r, 20000)); task = await fetch(`${BASE}/${id}`, { headers: HEADERS }).then(r => r.json()); console.log("status:", task.status);} while (!["succeeded", "failed", "expired"].includes(task.status));// 3. The video link (expires in 24 h — re-host immediately)if (task.status === "succeeded") console.log(task.content.video_url);
API key from the APIYI console (SeeDance2 group for both 2.5 and the 2.0 family)
ボディ
application/json
Shared schema for standard generation, 480p Drafts and 1080p final generation from Drafts. For a final video, use the finalFromDraft example with the same model, Draft task ID and optional resolution=1080p; do not resend inherited parameters.
Model ID (plain ID, no ep- prefix). 2.5 supports 1080p, 4-30 s, and up to 30 images + 10 videos + 10 audio clips as references; 2.0 standard supports 1080p; fast and mini cap at 720p, with mini at about half the standard price. No model supports 4k
Input array. Text-to-video: a single text item. Image-to-video: add image_url items (role: first_frame / last_frame). Multi-modal reference-to-video: image_url items (role: reference_image) plus optional video_url / audio_url. Reference limits: 2.5 allows 30 images + 10 videos + 10 audio clips and audio may stand alone; the 2.0 family allows 9 images + 3 videos + 3 audio clips and needs at least 1 image or 1 video. The three image modes are mutually exclusive. For final generation from a Draft, send only one draft_task item with no text or media
Resolution tier (defines pixel area; every ratio in a tier costs the same). Standard generation defaults to 720p; 1080p is available on 2.5 and 2.0 standard only, while fast and mini cap at 720p. With draft=true, explicitly set 480p. Final generation from draft_task defaults to and only supports 1080p
Generate a Draft, supported on Seedance 2.5 only. true requires resolution=480p. Omit or set false for final generation from draft_task. Draft and final tasks are billed separately by actual tokens at their respective resolution rates
Aspect ratio. Standard generation defaults to adaptive to auto-fit the input (recommended for image-to-video to avoid cropping); the actual ratio is returned in the task's ratio field. Do not send for final generation from draft_task; the Draft value is reused
Video length in whole seconds: 4-30 on 2.5, 4-15 on the 2.0 family; or -1 to let the model choose (billed by actual output). Cost scales linearly with duration. The default is -1 on 2.5 and 5 on the 2.0 family. Do not send for final generation from draft_task; the Draft value is reused
Generate synchronized audio (voice, SFX, background music; mono). Standard generation defaults to true; pass false explicitly for silent video. Do not send for final generation from draft_task; the Draft value is reused
Random seed, [-1, 2^32-1], defaulting to -1 for standard generation. The same seed produces similar (not identical) results; -1 means random. Do not send for final generation from draft_task; the Draft value is reused
Return the last frame as a watermark-free png (same dimensions as the video) — chain it as the first frame of the next task to produce continuous multi-clip videos
Output container, supported on doubao-seedance-2-5-260628 only. mov is a QuickTime container (H.264 + yuv444p + PCM) with better colour fidelity for post-production, but some players cannot open it
Task type for omni-reference generation, supported on doubao-seedance-2-5-260628 only, defaulting to auto for standard generation. Declaring edit or extend validates constraints up front: video editing requires ratio=adaptive and duration=-1, video extension requires ratio=adaptive; violations return InvalidParameter.TaskTypeConstraint at submission. Do not send for final generation from draft_task; the Draft value is reused
利用可能なオプション:
auto,
edit,
extend
レスポンス
Task created. Returns the task ID for polling
Creation response. Poll GET /seedance/api/v3/contents/generations/tasks/{id}; on success the video URL is at content.video_url (expires in ~24 h) and billed tokens at usage.completion_tokens. Once a Draft succeeds, reference its ID in content[].draft_task.id within 7 days of creation to generate a final video
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"API易文档中心","description":"企业级专业稳定的AI大模型API中转站,一个令牌、无限模型。支持OpenAI、Claude、Gemini、DeepSeek、Qwen等400+热门AI模型。","colors":{"primary":"#2563eb","light":"#3b82f6","dark":"#1d4ed8"},"logo":{"light":"https://mintcdn.com/apiyillc/LjCT1O0GrSur6F2v/logo/light.svg?fit=max\u0026auto=format\u0026n=LjCT1O0GrSur6F2v\u0026q=85\u0026s=4119ef17a74cc54be127f34578d8b5fa","dark":"https://mintcdn.com/apiyillc/LjCT1O0GrSur6F2v/logo/dark.svg?fit=max\u0026auto=format\u0026n=LjCT1O0GrSur6F2v\u0026q=85\u0026s=1f046ae9580247d96549ade642b5ecc4"},"favicon":"https://mintcdn.com/apiyillc/OMY6ItCc2mC1yzgA/logo/logo.webp?fit=max\u0026auto=format\u0026n=OMY6ItCc2mC1yzgA\u0026q=85\u0026s=62a7977ef801070e689df2d0291b9d13","api":{"openapi":["api-reference/nano-banana-2-generate-openapi.yaml","api-reference/nano-banana-2-edit-openapi.yaml","api-reference/nano-banana-2-generate-openapi-en.yaml","api-reference/nano-banana-2-edit-openapi-en.yaml","api-reference/nano-banana-pro-generate-openapi.yaml","api-reference/nano-banana-pro-edit-openapi.yaml","api-reference/nano-banana-pro-generate-openapi-en.yaml","api-reference/nano-banana-pro-edit-openapi-en.yaml","api-reference/gpt-image-2-all-generate-openapi.yaml","api-reference/gpt-image-2-all-edit-openapi.yaml","api-reference/gpt-image-2-all-generate-openapi-en.yaml","api-reference/gpt-image-2-all-edit-openapi-en.yaml","api-reference/gpt-image-2-all-chat-openapi.yaml","api-reference/gpt-image-2-all-chat-openapi-en.yaml","api-reference/gpt-image-2-vip-generate-openapi.yaml","api-reference/gpt-image-2-vip-edit-openapi.yaml","api-reference/gpt-image-2-vip-chat-openapi.yaml","api-reference/gpt-image-2-vip-generate-openapi-en.yaml","api-reference/gpt-image-2-vip-edit-openapi-en.yaml","api-reference/gpt-image-2-vip-chat-openapi-en.yaml"],"playground":{"display":"interactive","proxy":true},"examples":{"defaults":"required"}},"navbar":{"links":[{"href":"https://api.apiyi.com","label":"首页"},{"href":"https://imagen.apiyi.com","label":"AI出图"},{"href":"https://icover.ai","label":"AI视频"}],"primary":{"type":"button","label":"控制台","href":"https://api.apiyi.com/account/profile"}},"footer":{"socials":{"website":"https://api.apiyi.com"},"links":[{"header":"AI 集成","items":[{"label":"skill.md","href":"https://docs.apiyi.com/skill.md"},{"label":"llms.txt","href":"https://docs.apiyi.com/llms.txt"},{"label":"llms-full.txt","href":"https://docs.apiyi.com/llms-full.txt"},{"label":"model-registry.json","href":"https://docs.apiyi.com/model-registry.json"},{"label":"AI 开发者套件(中文)","href":"/developer-kit"},{"label":"AI Developer Kit (EN)","href":"/en/developer-kit"}]},{"header":"用户口碑 / Wall of Love","items":[{"label":"用户口碑(中文)","href":"/wall-of-love"},{"label":"Wall of Love (EN)","href":"/en/wall-of-love"}]}]},"seo":{"indexing":"all"},"icons":{"library":"lucide"},"banner":{"content":"🚀 **gemini-4-argon 和 Nano Banana 2.1 均已上线 | Now Live**:[详情 Details](https://docs.apiyi.com/changelog)","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","aistudio"],"display":"header"},"metadata":{"timestamp":false},"styling":{"latex":true},"navigation":{"global":{"anchors":[]},"languages":[{"language":"zh","href":""},{"language":"en","navbar":{"links":[{"href":"https://api.apiyi.com","label":"Home"},{"href":"https://imagen.apiyi.com","label":"AI Image"},{"href":"https://icover.ai","label":"AI Video"}],"primary":{"type":"button","label":"Console","href":"https://api.apiyi.com/account/profile"}},"href":"en"},{"language":"zh-Hant","banner":{"content":"本頁由程式自動轉換為繁體中文,用詞以台灣正體為準;如有歧義請以[簡體中文版](/)為準。","dismissible":true},"footer":{"socials":{"website":"https://api.apiyi.com"},"links":[{"header":"AI 整合","items":[{"label":"skill.md","href":"https://docs.apiyi.com/skill.md"},{"label":"llms.txt","href":"https://docs.apiyi.com/llms.txt"},{"label":"llms-full.txt","href":"https://docs.apiyi.com/llms-full.txt"},{"label":"model-registry.json","href":"https://docs.apiyi.com/model-registry.json"},{"label":"AI 開發者套件(中文)","href":"/developer-kit"},{"label":"AI Developer Kit (EN)","href":"/en/developer-kit"}]},{"header":"使用者口碑 / Wall of Love","items":[{"label":"使用者口碑(中文)","href":"/wall-of-love"},{"label":"Wall of Love (EN)","href":"/en/wall-of-love"}]}]},"navbar":{"links":[{"href":"https://api.apiyi.com","label":"首頁"},{"href":"https://imagen.apiyi.com","label":"AI出圖"},{"href":"https://icover.ai","label":"AI影片"}],"primary":{"type":"button","label":"控制台","href":"https://api.apiyi.com/account/profile"}},"href":"zh-Hant"},{"language":"ja","banner":{"content":"このページは AI により翻訳されています。内容に相違がある場合は[English 版](/en)を正としてください。","dismissible":true},"footer":{"socials":{"website":"https://api.apiyi.com"},"links":[{"header":"AI統合","items":[{"label":"skill.md","href":"https://docs.apiyi.com/skill.md"},{"label":"llms.txt","href":"https://docs.apiyi.com/llms.txt"},{"label":"llms-full.txt","href":"https://docs.apiyi.com/llms-full.txt"},{"label":"model-registry.json","href":"https://docs.apiyi.com/model-registry.json"},{"label":"AI開発者キット(中国語)","href":"/developer-kit"},{"label":"AI Developer Kit (EN)","href":"/en/developer-kit"}]},{"header":"ユーザーの声 / Wall of Love","items":[{"label":"ユーザーの声(中国語)","href":"/wall-of-love"},{"label":"Wall of Love(英語)","href":"/en/wall-of-love"}]}]},"navbar":{"links":[{"href":"https://api.apiyi.com","label":"ホーム"},{"href":"https://imagen.apiyi.com","label":"AI画像生成"},{"href":"https://icover.ai","label":"AI動画生成"}],"primary":{"type":"button","label":"コンソール","href":"https://api.apiyi.com/account/profile"}},"href":"ja"},{"language":"ko","banner":{"content":"이 페이지는 AI로 번역되었습니다. 내용이 다를 경우 [English 버전](/en)을 기준으로 하십시오.","dismissible":true},"footer":{"socials":{"website":"https://api.apiyi.com"},"links":[{"header":"AI 통합","items":[{"label":"skill.md","href":"https://docs.apiyi.com/skill.md"},{"label":"llms.txt","href":"https://docs.apiyi.com/llms.txt"},{"label":"llms-full.txt","href":"https://docs.apiyi.com/llms-full.txt"},{"label":"model-registry.json","href":"https://docs.apiyi.com/model-registry.json"},{"label":"AI 개발자 키트(중국어)","href":"/developer-kit"},{"label":"AI Developer Kit (EN)","href":"/en/developer-kit"}]},{"header":"사용자 후기 / Wall of Love","items":[{"label":"사용자 후기(중국어)","href":"/wall-of-love"},{"label":"Wall of Love (영문)","href":"/en/wall-of-love"}]}]},"navbar":{"links":[{"href":"https://api.apiyi.com","label":"홈"},{"href":"https://imagen.apiyi.com","label":"AI 이미지 생성"},{"href":"https://icover.ai","label":"AI 동영상 생성"}],"primary":{"type":"button","label":"콘솔","href":"https://api.apiyi.com/account/profile"}},"href":"ko"},{"language":"ru","banner":{"content":"Эта страница переведена с помощью ИИ. При расхождениях ориентируйтесь на [английскую версию](/en).","dismissible":true},"footer":{"socials":{"website":"https://api.apiyi.com"},"links":[{"header":"AI-интеграция","items":[{"label":"skill.md","href":"https://docs.apiyi.com/skill.md"},{"label":"llms.txt","href":"https://docs.apiyi.com/llms.txt"},{"label":"llms-full.txt","href":"https://docs.apiyi.com/llms-full.txt"},{"label":"model-registry.json","href":"https://docs.apiyi.com/model-registry.json"},{"label":"Набор AI-разработчика (кит.)","href":"/developer-kit"},{"label":"AI Developer Kit (EN)","href":"/en/developer-kit"}]},{"header":"Отзывы пользователей / Wall of Love","items":[{"label":"Отзывы пользователей (на китайском)","href":"/wall-of-love"},{"label":"Wall of Love (EN)","href":"/en/wall-of-love"}]}]},"navbar":{"links":[{"href":"https://api.apiyi.com","label":"Главная"},{"href":"https://imagen.apiyi.com","label":"Генерация изображений"},{"href":"https://icover.ai","label":"Генерация видео"}],"primary":{"type":"button","label":"Консоль","href":"https://api.apiyi.com/account/profile"}},"href":"ru"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"apiyillc","hasAudioNarration":false,"actualSubdomain":"apiyillc","customDomains":["docs.apiyi.com"],"gitSource":{"type":"github","owner":"pdmaker","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6add97229e1712172edccbf5","collectionId":"2342a635-4ad9-4a7e-a518-07278f9e55d3","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6add97229e1712172edccbf5"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6add97229e1712172edccbf5","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"zh","tag":"首页","count":213},{"language":"en","tag":"Home","count":213},{"language":"ja","tag":"ホーム","count":213},{"language":"ko","tag":"홈","count":213},{"language":"ru","tag":"Главная","count":213},{"language":"zh-Hant","tag":"首頁","count":213},{"language":"zh","tag":"图片 API(官转)","count":80},{"language":"en","tag":"Image API (Official)","count":80},{"language":"ja","tag":"画像API(公式)","count":80},{"language":"ko","tag":"이미지 API (공식)","count":80},{"language":"ru","tag":"Image API (официальный)","count":80},{"language":"zh-Hant","tag":"圖片 API(官轉)","count":80},{"language":"zh","tag":"公告","count":75},{"language":"en","tag":"Announcements","count":75},{"language":"zh","tag":"AI风向标","count":72},{"language":"en","tag":"AI Radar","count":72},{"language":"zh","tag":"常见问题","count":63},{"language":"en","tag":"FAQ","count":63},{"language":"ja","tag":"FAQ","count":63},{"language":"ko","tag":"FAQ","count":63},{"language":"ru","tag":"FAQ","count":63},{"language":"zh-Hant","tag":"常見問題","count":63},{"language":"zh","tag":"使用场景","count":49},{"language":"en","tag":"Use Cases","count":49},{"language":"ja","tag":"活用例","count":49},{"language":"ko","tag":"활용 사례","count":49},{"language":"ru","tag":"Сценарии использования","count":49},{"language":"zh-Hant","tag":"使用場景","count":49},{"language":"zh","tag":"基础 API","count":47},{"language":"en","tag":"Basic API","count":47},{"language":"ja","tag":"基本API","count":47},{"language":"ko","tag":"기본 API","count":47},{"language":"ru","tag":"Базовый API","count":47},{"language":"zh-Hant","tag":"基礎 API","count":47},{"language":"zh","tag":"视频 API(官转)","count":38},{"language":"en","tag":"Video API (Official)","count":38},{"language":"ja","tag":"動画API(公式)","count":38},{"language":"ko","tag":"동영상 API (공식)","count":38},{"language":"ru","tag":"Video API (официальный)","count":38},{"language":"zh-Hant","tag":"影片 API(官轉)","count":38},{"language":"zh","tag":"模型价格","count":35},{"language":"en","tag":"Model Pricing","count":35},{"language":"ja","tag":"モデル料金","count":35},{"language":"ko","tag":"모델 요금","count":35},{"language":"ru","tag":"Цены на модели","count":35},{"language":"zh-Hant","tag":"模型價格","count":35},{"language":"zh","tag":"文本生成","count":27},{"language":"en","tag":"Text Generation","count":27},{"language":"ja","tag":"テキスト生成","count":27},{"language":"ko","tag":"텍스트 생성","count":27},{"language":"ru","tag":"Генерация текста","count":27},{"language":"zh-Hant","tag":"文本生成","count":27},{"language":"ja","tag":"課金とセキュリティ","count":17},{"language":"ko","tag":"결제 및 보안","count":17},{"language":"ru","tag":"Оплата и безопасность","count":17},{"language":"zh-Hant","tag":"充值與安全","count":17},{"language":"ja","tag":"NanoBananaベストプラクティス","count":15},{"language":"ko","tag":"NanoBanana 모범 사례","count":15},{"language":"ru","tag":"Лучшие практики NanoBanana","count":15},{"language":"zh-Hant","tag":"NanoBanana最佳實踐","count":15}]},"assistantConfig":{},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"models/models.css","content":".mp-layout{display:flex;gap:2.5rem;max-width:1400px;margin:0 auto;padding:2.5rem 1.5rem 4rem;font-size:15px;line-height:1.7;color:rgb(var(--gray-500, 113 115 119))}html.dark .mp-layout{color:rgb(var(--gray-400, 159 161 165))}.mp-rail{display:none}@media (min-width:1024px){.mp-rail{display:block;width:13rem;flex-shrink:0}}.mp-rail-nav{position:sticky;top:9.25rem;font-size:.875rem}.mp-rail-head{font-weight:600;margin:0 0 .375rem;color:rgb(var(--gray-900, 23 25 29))}html.dark .mp-rail-head{color:rgb(var(--gray-200, 223 225 229))}.mp-rail-link{display:block;padding:.22rem 0;color:rgb(var(--gray-500, 113 115 119));text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mp-content a,.mp-content code.mp-ep-rec,.mp-rail-link:hover{color:rgb(var(--primary, 37 99 235))}html.dark .mp-rail-link{color:rgb(var(--gray-400, 159 161 165))}html.dark .mp-content a,html.dark .mp-content code.mp-ep-rec,html.dark .mp-rail-link:hover{color:rgb(var(--primary-light, 59 130 246))}.mp-rail-vendors{max-height:45vh;overflow-y:auto}.mp-mt{margin-top:1rem}.mp-content{min-width:0;flex:1}.mp-content h2,.mp-title{color:rgb(var(--gray-900, 23 25 29))}.mp-title{font-size:2rem;font-weight:700;letter-spacing:-.02em;margin:0 0 .5rem}html.dark .mp-content strong,html.dark .mp-title{color:#fff}.mp-desc{color:rgb(var(--gray-500, 113 115 119));margin:0 0 1.5rem}html.dark .mp-content th,html.dark .mp-desc{color:rgb(var(--gray-400, 159 161 165))}.mp-content h2{font-size:1.375rem;font-weight:600;margin:2.75rem 0 1rem;padding-bottom:.45rem;border-bottom:1px solid rgb(var(--gray-200, 223 225 229)/.7);scroll-margin-top:12rem}@media (min-width:1024px){.mp-content h2{scroll-margin-top:16.5rem}}html.dark .mp-content h2{border-color:rgb(255 255 255/.1);color:#fff}.mp-content p,.mp-content ul{margin:.75rem 0}.mp-content ul{padding-left:1.4rem}.mp-content li{margin:.4rem 0}.mp-content strong{color:rgb(var(--gray-900, 23 25 29))}.mp-content a{text-decoration:none}.mp-content a:hover{text-decoration:underline}.mp-content code{font-size:.85em;background:rgb(var(--gray-100, 239 241 245)/.8);border:1px solid rgb(var(--gray-200, 223 225 229)/.7);padding:.1em .35em;border-radius:.375rem}html.dark .mp-content code{background:rgb(255 255 255/.06);border-color:rgb(255 255 255/.1)}.mp-content code.mp-ep-rec{background:rgb(var(--primary, 37 99 235)/.08);border-color:rgb(var(--primary, 37 99 235)/.45);font-weight:600}html.dark .mp-content code.mp-ep-rec{background:rgb(var(--primary-light, 59 130 246)/.14);border-color:rgb(var(--primary-light, 59 130 246)/.5)}.mp-content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:.875rem;margin:1rem 0 1.5rem}.mp-content td,.mp-content th{padding:.55rem 1.25rem .55rem 0;white-space:nowrap}.mp-content th{text-align:left;font-weight:500;color:rgb(var(--gray-500, 113 115 119));border-bottom:1px solid rgb(var(--gray-200, 223 225 229)/.7)}.mp-content td{border-bottom:1px solid rgb(var(--gray-200, 223 225 229)/.45)}html.dark .mp-content th{border-color:rgb(255 255 255/.1)}html.dark .mp-content td{border-color:rgb(255 255 255/.07)}.mp-search{display:contents}.mp-search-bar{position:sticky;top:5rem;z-index:20;margin:0 0 1.75rem;background:rgb(var(--background-light, 255 255 255));padding:.75rem 0 .85rem;box-shadow:0 10px 14px -10px rgb(var(--gray-950, 11 13 17)/.28)}@media (min-width:1024px){.mp-search-bar{top:9.25rem}}html.dark .mp-search-bar{background:rgb(var(--background-dark, 10 11 16));box-shadow:0 8px 12px -10px rgb(0 0 0/.7)}.mp-search-label{margin:0 0 .5rem;padding-left:.6rem;border-left:3px solid rgb(var(--primary, 37 99 235));font-size:.9rem;font-weight:600;line-height:1.4;color:rgb(var(--primary, 37 99 235))}html.dark .mp-search-label{border-left-color:rgb(var(--primary-light, 59 130 246));color:rgb(var(--primary-light, 59 130 246))}.mp-search-input{width:100%;box-sizing:border-box;border:1px solid rgb(var(--gray-400, 159 161 165)/.3);border-radius:.75rem;padding:.7rem 1rem .7rem 2.65rem;font-size:.9rem;background-color:rgb(var(--background-light, 255 255 255));background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23717377' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:.9rem center;color:rgb(var(--gray-900, 23 25 29));outline:0;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.mp-search-input::placeholder{color:rgb(var(--gray-500, 113 115 119))}.mp-search-input:hover{border-color:rgb(var(--gray-600, 81 83 87)/.3)}.mp-search-input:focus{border-color:rgb(var(--primary, 37 99 235));box-shadow:0 0 0 3px rgb(var(--primary, 37 99 235)/.16)}html.dark .mp-search-input{background-color:rgb(var(--background-dark, 10 11 16));background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239fa1a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E\");border-color:rgb(var(--gray-600, 81 83 87)/.3);color:rgb(var(--gray-100, 239 241 245))}html.dark .mp-search-input::placeholder{color:rgb(255 255 255/.5)}html.dark .mp-search-input:hover{border-color:rgb(var(--gray-500, 113 115 119)/.35)}html.dark .mp-search-input:focus{border-color:rgb(var(--primary-light, 59 130 246));box-shadow:0 0 0 3px rgb(var(--primary-light, 59 130 246)/.22)}.mp-search-empty,.mp-search-meta{color:rgb(var(--gray-500, 113 115 119))}.mp-search-meta{font-size:.75rem;margin:.75rem 0 .25rem}.mp-search-empty{font-size:.875rem;margin-top:.75rem}html.dark .mp-search-empty,html.dark .mp-search-meta{color:rgb(var(--gray-400, 159 161 165))}.mp-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8125rem}@media (min-width:1024px){.mp-jump{display:none}}"},{"filePath":"styles/agent-prompt.css","content":"div.prompt{border:1.5px solid rgb(var(--primary, 37 99 235)/.35);background:rgb(var(--primary, 37 99 235)/.035);padding:1.25rem 1.25rem 1rem;row-gap:.75rem}html.dark div.prompt{border-color:rgb(var(--primary-light, 59 130 246)/.4);background:rgb(var(--primary-light, 59 130 246)/.06)}div.prompt [data-component-part=prompt-content-wrapper]{width:100%}div.prompt [data-component-part=prompt-actions-wrapper]{width:100%;justify-content:flex-end}div.prompt [data-component-part=prompt-description]{flex:1;font-size:14px;line-height:1.65}div.prompt [data-component-part=prompt-description]>div>*{margin:0}div.prompt [data-component-part=prompt-description]>div>*+*{margin-top:.6rem}div.prompt [data-component-part=prompt-description] strong{font-size:15px;font-weight:650;color:rgb(var(--gray-900, 23 25 29))}html.dark div.prompt [data-component-part=prompt-description] strong{color:#fff}div.prompt [data-component-part=prompt-description]>div>*+p{color:rgb(var(--gray-600, 80 82 86))}html.dark div.prompt [data-component-part=prompt-description]>div>*+p{color:rgb(var(--gray-400, 159 161 165))}div.prompt [data-component-part=prompt-description] code{font-size:.85em;background:rgb(var(--gray-100, 239 241 245)/.9);border:1px solid rgb(var(--gray-200, 223 225 229)/.7);padding:.05em .35em;border-radius:.375rem}html.dark div.prompt [data-component-part=prompt-description] code{background:rgb(255 255 255/.06);border-color:rgb(255 255 255/.1)}div.prompt [data-component-part=prompt-description] blockquote{margin:0;padding:.75rem .9rem;font-style:normal;border:1px dashed rgb(var(--gray-300, 191 193 197));border-radius:.6rem;background:rgb(var(--background-light, 255 255 255));font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;line-height:1.6;color:rgb(var(--gray-600, 80 82 86));overflow-wrap:anywhere;-webkit-mask-image:linear-gradient(to bottom,#000 70%,transparent 100%);mask-image:linear-gradient(to bottom,#000 70%,transparent 100%)}div.prompt [data-component-part=prompt-description] blockquote ol,div.prompt [data-component-part=prompt-description] blockquote p{margin:0}div.prompt [data-component-part=prompt-description] blockquote li{padding:0}div.prompt [data-component-part=prompt-description] blockquote>*+*{margin-top:.5rem}div.prompt [data-component-part=prompt-description] blockquote code{background:0 0;border:0;padding:0;font-size:1em}div.prompt [data-component-part=prompt-description] blockquote a{color:inherit;text-decoration:none;pointer-events:none}html.dark div.prompt [data-component-part=prompt-description] blockquote{border-color:rgb(255 255 255/.15);background:rgb(var(--background-dark, 13 13 13));color:rgb(var(--gray-400, 159 161 165))}div.prompt [data-component-part=prompt-action-copy-button]{padding:.6rem 1.25rem;font-size:14px;line-height:20px;font-weight:600;border-radius:.65rem;gap:.45rem;box-shadow:0 1px 2px rgb(0 0 0/.08),0 4px 12px rgb(var(--primary, 37 99 235)/.25)}div.prompt [data-component-part=prompt-action-copy-button]::before{content:\"\";width:16px;height:16px;flex-shrink:0;background:currentColor;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2' ry='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E\") center/contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2' ry='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E\") center/contain no-repeat}div.prompt [data-component-part=prompt-action-copy-button] svg{width:12px;height:12px}@media (max-width:640px){div.prompt [data-component-part=prompt-actions-wrapper]>*{flex:1}}"}],"page":{"pagePath":"ja/api-capabilities/seedance2/video-generation","slug":"/ja/api-capabilities/seedance2/video-generation","pageMetadata":{"title":"Seedance 2.0 / 2.5 動画生成 API リファレンス","sidebarTitle":"動画生成","description":"インタラクティブなプレイグラウンドを備えた Seedance 2.0 および 2.5 の動画生成 API リファレンス:テキストから動画、最初と最後/最初のフレーム、マルチモーダル参照、動画編集、動画拡張を1つの非同期エンドポイントで実行でき、完全なポーリングおよびダウンロードコードを提供します。","openapi":"api-reference/seedance2-video-openapi-en.yaml POST /seedance/api/v3/contents/generations/tasks","icon":"video","href":"/ja/api-capabilities/seedance2/video-generation"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"インタラクティブなプレイグラウンドを備えた Seedance 2.0 および 2.5 の動画生成 API リファレンス:テキストから動画、最初と最後/最初のフレーム、マルチモーダル参照、動画編集、動画拡張を1つの非同期エンドポイントで実行でき、完全なポーリングおよびダウンロードコードを提供します。\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Info,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[`右側のPlaygroundをご利用ください。`,_jsx(_components.strong,{children:`Authorization`}),`に`,_jsx(_components.code,{children:`Bearer sk-your-api-key`}),`を設定し(Tokenには`,_jsx(_components.code,{children:`SeeDance2`}),`グループが必要です。2.5と2.0ファミリーで共有されています)、`,_jsx(_components.code,{children:`model`}),` / `,_jsx(_components.code,{children:`content`}),`を入力して送信します。送信が成功するとタスク`,_jsx(_components.code,{children:`id`}),`が返されます。ポーリングおよびダウンロードのフローについては、後述のコードサンプルで説明しています。`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Playgroundの「no response received」エラーについて`}),`:これは非同期タスクエンドポイントであり、ブラウザでSendをクリックするとそのメッセージが表示されることがあります。ブラウザのクロスオリジン安全性チェックによってレスポンスがブロックされましたが、`,_jsx(_components.strong,{children:`タスクは実際には正常に送信されています`}),`(後述のクエリエンドポイントまたはコンソールログで確認してください)。また、Playgroundではタスクの作成のみが可能で、ポーリングや動画のダウンロードは行えません。作成 → ポーリング → ダウンロードの一連のフローを実行するには、以下の`,_jsx(_components.strong,{children:`コードサンプル`}),`(cURL / Python / Node.js)をコピーして実行してください。`]})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`これはSeedance 2.0のタスク作成エンドポイントです。テキストからの動画生成、最初+最後のフレーム/最初のフレーム指定、マルチモーダルリファレンスからの動画生成はすべてこれを共有しており、`,_jsx(_components.code,{children:`content`}),`配列によってモードを選択します。モデルの選択、価格設定、解像度/ピクセル表、FAQについては、`,_jsx(_components.a,{href:`/ja/api-capabilities/seedance2/overview`,children:`Seedance 2.0の概要`}),`をご覧ください。`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`パスのプレフィックスは`,_jsx(_components.code,{children:`/seedance/api/v3`}),`です。`,_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`/api`}),`セグメントを省略しないでください`]}),`。また、`,_jsx(_components.code,{children:`/v1/videos`}),`は使用しないでください`]}),`\n`,_jsxs(_components.li,{children:[`Tokenでは`,_jsx(_components.code,{children:`SeeDance2`}),`グループが有効になっている必要があります。有効になっていない場合、「no available channel for this model」というエラーが発生します。`,_jsxs(_components.strong,{children:[`2.5と2.0ファミリーはどちらも`,_jsx(_components.code,{children:`SeeDance2`}),`を使用するため`]}),`、1つのTokenで4つのモデルすべてに対応できます`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`generate_audio`}),`は`,_jsx(_components.strong,{children:`デフォルトでtrue`}),`(音声付きで出力)です。音声なしの動画にする場合は、明示的に`,_jsx(_components.code,{children:`false`}),`を渡してください`]}),`\n`,_jsxs(_components.li,{children:[`Pythonのrequestsには`,_jsx(_components.code,{children:`\"Accept-Encoding\": \"identity\"`}),`ヘッダーが必要です。これがない場合、gzipデコードエラー、切り詰められた非JSON本文(例:先頭の`,_jsx(_components.code,{children:`{\"`}),`が欠落して`,_jsx(_components.code,{children:`id\":\"cgt-xxx\"}`}),`のみが取得される)、または断続的な400エラーが発生する可能性があります`]}),`\n`,_jsxs(_components.li,{children:[`成功ステータスは`,_jsx(_components.code,{children:`succeeded`}),`です(`,_jsx(_components.code,{children:`completed`}),`ではありません)。動画URLは`,_jsx(_components.code,{children:`content.video_url`}),`に格納され、`,_jsx(_components.strong,{children:`24時間で期限切れになります`})]}),`\n`]})}),`\n`,_jsx(Heading,{level:`2`,id:`コード例`,children:`コード例`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL (テキストから動画)`,numberOfLines:`14`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.apiyi.com/seedance/api/v3/contents/generations/tasks\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sk-your-api-key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"doubao-seedance-2-0-fast-260128\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {\"type\": \"text\", \"text\": \"Drone shot flying over an autumn valley, golden forests and a winding river, cinematic\"}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\": \"720p\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ratio\": \"16:9\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"generate_audio\": false`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Returns {\"id\":\"cgt-2026xxxx-xxxxx\"} — poll the query endpoint with this id`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python(完全なフロー:作成 → ポーリング → ダウンロード)`,numberOfLines:`49`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`49`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` time`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`BASE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.apiyi.com/seedance/api/v3/contents/generations/tasks\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`HEADERS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer sk-your-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Required: the gateway's gzip header does not match the actual encoding.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Without this you may get gzip decode errors, a truncated non-JSON body`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # (e.g. id\":\"cgt-xxx\"} with the leading {\" lost), or intermittent 400s`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Accept-Encoding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"identity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 1. Create the task`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`body `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"doubao-seedance-2-0-fast-260128\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Waves crashing on rocks at sunset, slow motion, serene mood\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # \"generate_audio\": False, # defaults to True; uncomment for silent video`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # \"seed\": 12345, # fix the seed for similar, reproducible results`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`task_id `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`BASE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`body, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`HEADERS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`60`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).json()[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_id:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, task_id)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 2. Poll until a terminal state (succeeded / failed / expired)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`while`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` time.sleep(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` task `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`BASE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`task_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`HEADERS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).json()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` status `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` task.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"status:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, status)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` status `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"succeeded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"expired\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` break`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 3. Download the video (the URL expires in 24 h — copy it out immediately)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` status `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"succeeded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` video_url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` task[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"video_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# note: under content, not top-level`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tokens:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, task[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completion_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(video_url, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`stream`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`300`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r.raise_for_status()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` with`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`task_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`.mp4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` chunk `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r.iter_content(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`chunk_size`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c\u003c`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 20`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f.write(chunk)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"saved `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`task_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`.mp4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task did not succeed:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, task.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python(最初+最後のフレーム / 参照モード)`,numberOfLines:`31`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`31`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# First + last frame: 2 images, roles required; mutually exclusive with reference mode`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`body_first_last `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"doubao-seedance-2-0-260128\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Smooth transition from the first frame to the last, slow camera move\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/first.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"first_frame\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/last.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"last_frame\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"adaptive\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# match the first frame's ratio to avoid cropping`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Multi-modal reference: 0-9 reference images + 0-3 reference videos + 0-3 reference audios`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# (at least 1 image or 1 video); can create / edit / extend videos`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`body_reference `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"doubao-seedance-2-0-260128\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Using the reference character and style, the character walks down a rainy street at night\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/character.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # {\"type\": \"video_url\", \"video_url\": {\"url\": \"...\"}, \"role\": \"reference_video\"},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # {\"type\": \"audio_url\", \"audio_url\": {\"url\": \"...\"}, \"role\": \"reference_audio\"},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Images also accept Base64 (data:image/png;base64,xxx) and platform asset IDs (asset://xxx)`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python(Seedance 2.5:30秒クリップ 動画拡張)`,numberOfLines:`55`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`55`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"# 2.5 shares the endpoint and request shape with 2.0 — only `model` changes.\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# The four bodies below are capabilities unique to 2.5.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 1. 30-second clip: 2.5 caps at 30 s (the 2.0 family caps at 15)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`body_30s `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"doubao-seedance-2-5-260628\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Drone shot flying over an autumn valley, morning mist drifting through the trees, one continuous take\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Do not omit: on 2.5 the default is -1 and the model picks its own length`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 2. Video editing: ratio must be adaptive, duration must be -1, source video 4-30 s`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`body_edit `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"doubao-seedance-2-5-260628\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # The prompt needs an editing verb: add / remove / delete / change / replace`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Add a few birds flying across @video1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"video_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"video_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/source.mp4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"adaptive\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Required; a concrete ratio returns a synchronous 400`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Required; a concrete duration returns a synchronous 400`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"omni_reference_task_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"edit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Declare it to validate at submission time`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"output_format\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mov\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Optional: mov is recommended for post (some players cannot open it)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 3. Video extension: ratio must be adaptive`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`body_extend `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"doubao-seedance-2-5-260628\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # The prompt needs an extension verb: extend / continue`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Extend @video1 forward, camera keeps pushing in as the light fades\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"video_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"video_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/source.mp4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"adaptive\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"omni_reference_task_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"extend\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 4. Audio-only reference: unique to 2.5; the 2.0 family requires an image or video alongside audio`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`body_audio_only `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"doubao-seedance-2-5-260628\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Abstract light and shadow pulsing to the rhythm of @audio1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"audio_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"audio_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/track.mp3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference_audio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Submission and polling are identical to the flow above.`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js(fetch)`,numberOfLines:`30`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`30`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` BASE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.apiyi.com/seedance/api/v3/contents/generations/tasks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` HEADERS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bearer sk-your-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 1. Create the task`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`BASE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` HEADERS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"doubao-seedance-2-0-fast-260128\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` content:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`text:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"A mountain lake reflecting the starry sky, time-lapse\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resolution:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"720p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ratio:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"9:16\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// portrait costs the same as landscape`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` duration:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_id:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 2. Poll until a terminal state`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` task`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`do`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Promise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` =>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setTimeout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` task`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headers:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` HEADERS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"status:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`task`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`while`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"succeeded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"expired\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`includes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`task`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 3. The video link (expires in 24 h — re-host immediately)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`task`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"succeeded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`task`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`video_url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL(タスクをポーリング)`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.apiyi.com/seedance/api/v3/contents/generations/tasks/cgt-2026xxxx-xxxxx\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sk-your-api-key\"`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`パラメータリファレンス`,children:`パラメータリファレンス`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`パラメータ`}),_jsx(_components.th,{children:`型`}),_jsx(_components.th,{children:`必須`}),_jsx(_components.th,{children:`デフォルト`}),_jsx(_components.th,{children:`備考`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:`文字列`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`—`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`doubao-seedance-2-5-260628`}),` (`,_jsx(_components.strong,{children:`2.5、推奨`}),` — 1080p、最大30秒) / `,_jsx(_components.code,{children:`doubao-seedance-2-0-260128`}),` (標準、1080p) / `,_jsx(_components.code,{children:`doubao-seedance-2-0-fast-260128`}),` (高速、最大720p) / `,_jsx(_components.code,{children:`doubao-seedance-2-0-mini-260615`}),` (mini/lite、最大720p、標準価格の約半額)。プレーンIDで指定し、`,_jsx(_components.code,{children:`ep-`}),`プレフィックスは付けません`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`content`})}),_jsx(_components.td,{children:`配列`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`入力配列 — 下記の「生成モード」を参照してください`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`resolution`})}),_jsx(_components.td,{children:`文字列`}),_jsx(_components.td,{}),_jsx(_components.td,{children:_jsx(_components.code,{children:`720p`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`480p`}),` / `,_jsx(_components.code,{children:`720p`}),` / `,_jsx(_components.code,{children:`1080p`}),` (2.5および標準のみ1080p、fastとminiは720pが上限)。`,_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`4k`}),`をサポートするモデルはありません`]})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ratio`})}),_jsx(_components.td,{children:`文字列`}),_jsx(_components.td,{}),_jsx(_components.td,{children:_jsx(_components.code,{children:`adaptive`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`16:9`}),` / `,_jsx(_components.code,{children:`4:3`}),` / `,_jsx(_components.code,{children:`1:1`}),` / `,_jsx(_components.code,{children:`3:4`}),` / `,_jsx(_components.code,{children:`9:16`}),` / `,_jsx(_components.code,{children:`21:9`}),` / `,_jsx(_components.code,{children:`adaptive`}),`。各ティア内のすべてのアスペクト比で料金は同じです`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`duration`})}),_jsx(_components.td,{children:`整数`}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`2.5では`,_jsx(_components.code,{children:`-1`}),`、2.0ファミリーでは`,_jsx(_components.code,{children:`5`})]}),_jsxs(_components.td,{children:[`2.5では整数秒で`,_jsx(_components.strong,{children:`4~30`}),`、2.0ファミリーでは4~15。`,_jsx(_components.code,{children:`-1`}),`ではモデルが選択します (実際の出力に基づいて課金)。`,_jsxs(_components.strong,{children:[`2.5のデフォルトは`,_jsx(_components.code,{children:`-1`}),`です`]}),` — 省略するとモデルが長さを選択するため、支払額が変わります`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`generate_audio`})}),_jsx(_components.td,{children:`ブール値`}),_jsx(_components.td,{}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsx(_components.td,{children:`同期音声 (音声/SFX/音楽、モノラル)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`watermark`})}),_jsx(_components.td,{children:`ブール値`}),_jsx(_components.td,{}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`AI生成ウォーターマークを追加します`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`seed`})}),_jsx(_components.td,{children:`整数`}),_jsx(_components.td,{}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`-1`})}),_jsx(_components.td,{children:`[-1, 2^32-1]。同じシードでは、同一ではないものの類似した結果になります`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`return_last_frame`})}),_jsx(_components.td,{children:`ブール値`}),_jsx(_components.td,{}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`クリップ連結用に、ウォーターマークのない最終フレームのpngを返します`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`execution_expires_after`})}),_jsx(_components.td,{children:`整数`}),_jsx(_components.td,{}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`172800`})}),_jsx(_components.td,{children:`タスクの有効期限しきい値 (秒)、範囲 [3600, 259200]`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`output_format`})}),_jsx(_components.td,{children:`文字列`}),_jsx(_components.td,{}),_jsx(_components.td,{children:_jsx(_components.code,{children:`mp4`})}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`2.5のみ`}),`: `,_jsx(_components.code,{children:`mp4`}),` (汎用) または `,_jsx(_components.code,{children:`mov`}),` (QuickTime、H.264 + yuv444p + PCM — ポストプロダクションでより高い色再現性を実現しますが、一部のプレーヤーでは開けません)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`omni_reference_task_type`})}),_jsx(_components.td,{children:`文字列`}),_jsx(_components.td,{}),_jsx(_components.td,{children:_jsx(_components.code,{children:`auto`})}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`2.5のみ`}),`: `,_jsx(_components.code,{children:`auto`}),` / `,_jsx(_components.code,{children:`edit`}),` (動画編集) / `,_jsx(_components.code,{children:`extend`}),` (動画拡張)。明示的に指定すると制約チェックが`,_jsx(_components.strong,{children:`送信時`}),`に行われるため、数分後に失敗するタスクではなく、即座に400が返されます`]})]})]})]}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[`Seedance 2.5も2.0ファミリーも`,_jsx(_components.code,{children:`frames`}),`または`,_jsx(_components.code,{children:`camera_fixed`}),`をサポートしていません — これらはSeedance 1.xのパラメータであり、無視または拒否されます。`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`2.5固有のタスクタイプ制約`}),` (違反すると課金されず、送信時に`,_jsx(_components.code,{children:`InvalidParameter.TaskTypeConstraint`}),`が返されます):`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`タスクタイプ`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`ratio`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`duration`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`テキストから動画 / 参照から動画`}),_jsx(_components.td,{children:`制限なし`}),_jsx(_components.td,{children:`制限なし`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`最初のフレーム / 最初+最後のフレーム`}),_jsx(_components.td,{children:_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`adaptive`}),`である必要があります`]})}),_jsx(_components.td,{children:`制限なし`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`動画編集`}),_jsx(_components.td,{children:_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`adaptive`}),`である必要があります`]})}),_jsxs(_components.td,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`-1`}),`である必要があり`]}),`、ソース動画は4~30秒でなければなりません`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`動画拡張`}),_jsx(_components.td,{children:_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`adaptive`}),`である必要があります`]})}),_jsx(_components.td,{children:`制限なし`})]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`生成モード-コンテンツの組み合わせ`,children:`生成モード (コンテンツの組み合わせ)`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`モード`}),_jsx(_components.th,{children:`コンテンツ項目`}),_jsx(_components.th,{children:`roleの値`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`テキストから動画`}),_jsxs(_components.td,{children:[`1 `,_jsx(_components.code,{children:`text`})]}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`最初 + 最後のフレーム`}),_jsxs(_components.td,{children:[`任意のテキスト + 2 `,_jsx(_components.code,{children:`image_url`})]}),_jsxs(_components.td,{children:[`必須: `,_jsx(_components.code,{children:`first_frame`}),` / `,_jsx(_components.code,{children:`last_frame`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`最初のフレーム`}),_jsxs(_components.td,{children:[`任意のテキスト + 1 `,_jsx(_components.code,{children:`image_url`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`first_frame`}),`または省略`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`マルチモーダル参照から動画`}),_jsxs(_components.td,{children:[`テキスト + 参照アセット (2.5: 最大30 `,_jsx(_components.code,{children:`image_url`}),` + 10 `,_jsx(_components.code,{children:`video_url`}),` + 10 `,_jsx(_components.code,{children:`audio_url`}),`。2.0ファミリー: 画像0~9個 + 動画0~3本 + 音声0~3個、画像1個以上または動画1本以上が必須)`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`reference_image`}),` / `,_jsx(_components.code,{children:`reference_video`}),` / `,_jsx(_components.code,{children:`reference_audio`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`動画編集 (`,_jsx(_components.strong,{children:`2.5のみ`}),`)`]}),_jsxs(_components.td,{children:[`編集動詞を含むテキスト + 1 `,_jsx(_components.code,{children:`video_url`}),`以上`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`reference_video`}),`、`,_jsx(_components.code,{children:`omni_reference_task_type: \"edit\"`}),`付き`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`動画拡張 (`,_jsx(_components.strong,{children:`2.5のみ`}),`)`]}),_jsxs(_components.td,{children:[`拡張動詞を含むテキスト + 1 `,_jsx(_components.code,{children:`video_url`}),`以上`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`reference_video`}),`、`,_jsx(_components.code,{children:`omni_reference_task_type: \"extend\"`}),`付き`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`3つの画像モードは`,_jsx(_components.strong,{children:`相互排他的`}),`です。画像には公開URL、Base64 (`,_jsx(_components.code,{children:`data:image/png;base64,...`}),`)、アセットID (`,_jsx(_components.code,{children:`asset://...`}),`)を使用できます。実在する人間の顔を含む入力は拒否されます。アセット参照のエンドツーエンドコード (取り込み → `,_jsx(_components.code,{children:`asset://`}),` → 生成 → ダウンロード) については、`,_jsx(_components.a,{href:`/ja/api-capabilities/seedance2/asset-reference`,children:`アセット参照ガイド`}),`を参照してください。`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`大きなメディアをインライン化するとタスク作成が遅くなります。`}),` Base64ペイロードのアップロードや大きな画像URLの取得にかかる時間はすべて送信フェーズに含まれるため、create-task呼び出しが約1秒から数十秒に延びたり、クライアントの読み取りタイムアウトに達したりする可能性があります。リクエストに画像または動画を含める場合は、先にメディアを取り込み、`,_jsx(_components.code,{children:`asset://`}),`アセットIDとして参照してください。`,_jsx(_components.a,{href:`/ja/api-capabilities/seedance2/asset-first-workflow`,children:`アセット先行ワークフロー`}),`を参照してください。`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`参照上限は生成方式によって異なります`}),`: 2.5では画像30個 + 動画10本 + 音声クリップ10個を使用でき、`,_jsx(_components.strong,{children:`音声のみを参照として指定することもできます`}),`。2.0ファミリーでは画像9個 + 動画3本 + 音声クリップ3個を使用でき、音声は少なくとも1個の画像または1本の動画と一緒に送信する必要があります。`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`編集と拡張はpromptの意図によってトリガーされます`}),` — `,_jsx(_components.code,{children:`omni_reference_task_type`}),`は検証を前倒しするだけです。prompt内では、渡した順序に従って位置でアセットを参照してください (`,_jsx(_components.code,{children:`@video1`}),`、`,_jsx(_components.code,{children:`@image1`}),`)。編集にはadd / remove / change / replaceのような動詞が必要で、拡張にはextend / continueが必要です。モデルがpromptから推測したタスクタイプが、宣言した内容と矛盾する場合、タスクは非同期で`,_jsx(_components.code,{children:`InvalidParameter.TaskTypeMismatch`}),`により失敗します。`]}),`\n`,_jsx(Heading,{level:`2`,id:`レスポンス形式`,children:`レスポンス形式`}),`\n`,_jsxs(_components.p,{children:[`作成時に返されるのはタスク ID のみです(`,_jsx(_components.strong,{children:`動画ではありません`}),`)。`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cgt-20260606160057-6bbjd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`id`}),` を取得したら、タスクのステータスを確認するために `,_jsx(_components.code,{children:`GET /seedance/api/v3/contents/generations/tasks/{id}`}),` をポーリングします。`]}),`\n`,_jsx(Heading,{level:`3`,id:`推奨ポーリング間隔`,children:`推奨ポーリング間隔`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`項目`}),_jsx(_components.th,{children:`推奨値`}),_jsx(_components.th,{children:`理由`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`初回確認`}),_jsxs(_components.td,{children:[`送信後 `,_jsx(_components.strong,{children:`20~30 秒`})]}),_jsxs(_components.td,{children:[`これより早いと、`,_jsx(_components.code,{children:`queued`}),` が返されることが保証されており、リクエストが無駄になります`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`ポーリング間隔`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`10~20 秒`}),`ごと`]}),_jsx(_components.td,{children:`生成には数分かかるジョブです。1 秒未満の間隔でポーリングしてもメリットはなく、レート制限に達する可能性があります`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`タイムアウト`}),_jsxs(_components.td,{children:[`終端状態にならないまま `,_jsx(_components.strong,{children:`10 分`}),`経過した場合は異常として扱う`]}),_jsxs(_components.td,{children:[`キューが混雑するピーク時は 15 分まで緩和するか、`,_jsx(_components.code,{children:`execution_expires_after`}),` を最後の保険として使用します`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`キュー待ち時間を含むエンドツーエンドの実測レイテンシーです。720p の 2.0 ファミリーでは、5 秒のクリップで約 `,_jsx(_components.strong,{children:`90~140 秒`}),`、15 秒で `,_jsx(_components.strong,{children:`170 秒`}),`です。2.5 では、720p/5 秒で約 `,_jsx(_components.strong,{children:`150 秒`}),`、720p/30 秒で `,_jsx(_components.strong,{children:`330 秒`}),`、1080p/5 秒で `,_jsx(_components.strong,{children:`150 秒`}),`です。解像度が高いほど、また動画の長さが長いほど時間がかかり、ピーク時間帯のキュー待ちによってさらに長くなります。以下のコードサンプルでは固定の 20 秒間隔を使用しています。これは十分な間隔であり、リクエスト数も予測しやすくなります。`]}),`\n`,_jsx(_components.p,{children:`成功したタスクは次のようになります(テストで使用した実際のサンプルです)。`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cgt-20260606160057-6bbjd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"doubao-seedance-2-0-fast-260128\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"succeeded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"video_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/....mp4?X-Tos-Expires=86400\u0026...\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"completion_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`108900`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"total_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`108900`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1780732857`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1780732991`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"seed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`97151`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"framespersecond\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`24`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"generate_audio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"draft\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`動画 URL はトップレベルではなく `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`content.video_url`})}),` にあります。これは `,_jsx(_components.strong,{children:`24 時間で期限切れになる`}),`署名付きリンクなので、すぐにダウンロードしてください`]}),`\n`,_jsxs(_components.li,{children:[`ステートマシン:`,_jsx(_components.code,{children:`queued → running → succeeded / failed / expired`}),`。成功状態は `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`succeeded`})}),` です`]}),`\n`,_jsxs(_components.li,{children:[`リンクのダウンロードには通常の GET を使用してください。署名付き URL に `,_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`Authorization`}),` ヘッダーを送信しないでください`]})]}),`\n`]})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`usage.completion_tokens`}),` は課金対象の token 数であり、`,_jsx(_components.code,{children:`tokens ≈ duration × width × height × 24 / 1024`}),` に従います(テストでは誤差 0.1% 以内でした)。`,_jsx(_components.code,{children:`duration: -1`}),` または `,_jsx(_components.code,{children:`ratio: adaptive`}),` を使用した場合、実際の長さと比率はレスポンスの `,_jsx(_components.code,{children:`duration`}),` / `,_jsx(_components.code,{children:`ratio`}),` フィールドで報告されます。`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Seedance 2.0 / 2.5 動画生成 API リファレンス","sidebarTitle":"動画生成","description":"インタラクティブなプレイグラウンドを備えた Seedance 2.0 および 2.5 の動画生成 API リファレンス:テキストから動画、最初と最後/最初のフレーム、マルチモーダル参照、動画編集、動画拡張を1つの非同期エンドポイントで実行でき、完全なポーリングおよびダウンロードコードを提供します。","openapi":"api-reference/seedance2-video-openapi-en.yaml POST /seedance/api/v3/contents/generations/tasks","icon":"video","href":"/ja/api-capabilities/seedance2/video-generation"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"コード例","slug":"コード例","depth":2,"children":[]},{"title":"パラメータリファレンス","slug":"パラメータリファレンス","depth":2,"children":[{"title":"生成モード (コンテンツの組み合わせ)","slug":"生成モード-コンテンツの組み合わせ","depth":3,"children":[]}]},{"title":"レスポンス形式","slug":"レスポンス形式","depth":2,"children":[{"title":"推奨ポーリング間隔","slug":"推奨ポーリング間隔","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createSeedance2VideoTaskEn","summary":"Create a Seedance 2.0 / 2.5 video generation task","description":"インタラクティブなプレイグラウンドを備えた Seedance 2.0 および 2.5 の動画生成 API リファレンス:テキストから動画、最初と最後/最初のフレーム、マルチモーダル参照、動画編集、動画拡張を1つの非同期エンドポイントで実行でき、完全なポーリングおよびダウンロードコードを提供します。","tags":["Video Generation"],"security":["71658be0-42df-46d9-8e58-ef16cfaacd56"],"requestBody":"decb6b84-6831-4e68-860e-5f126182de14","responses":{"200":"76f81425-17b8-4af0-be35-ed14ec1c5492","400":"5f5e7b1e-f173-4270-863d-8e02a1a1f1a1","401":"6ca1ee87-a64a-4c6f-a97e-dd42d22782c4","403":"b5ef0b0a-1be5-4d9d-af13-b2897c0ca43f","429":"83c610b6-e9ed-4aac-8e2b-dc4ccc88c1d1","500":"db3107c2-1b88-4c43-a33e-402c01b7e643"},"method":"post","type":"path","servers":["4ec4255d-9b95-43a7-9683-b53aeae20471"],"path":"/seedance/api/v3/contents/generations/tasks","baseUrlOptions":["https://api.apiyi.com"],"title":"Create a Seedance 2.0 / 2.5 video generation task","codeSamples":[],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Shared schema for standard generation, 480p Drafts and 1080p final generation from Drafts. For a final video, use the finalFromDraft example with the same model, Draft task ID and optional resolution=1080p; do not resend inherited parameters.","required":["model","content"],"properties":{"model":{"type":"string","description":"Model ID (plain ID, no ep- prefix). 2.5 supports 1080p, 4-30 s, and up to 30 images + 10 videos + 10 audio clips as references; 2.0 standard supports 1080p; fast and mini cap at 720p, with mini at about half the standard price. No model supports 4k","examples":["doubao-seedance-2-5-260628","doubao-seedance-2-0-260128","doubao-seedance-2-0-fast-260128","doubao-seedance-2-0-mini-260615"],"example":"doubao-seedance-2-5-260628","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"content":{"type":"array","description":"Input array. Text-to-video: a single text item. Image-to-video: add image_url items (role: first_frame / last_frame). Multi-modal reference-to-video: image_url items (role: reference_image) plus optional video_url / audio_url. Reference limits: 2.5 allows 30 images + 10 videos + 10 audio clips and audio may stand alone; the 2.0 family allows 9 images + 3 videos + 3 audio clips and needs at least 1 image or 1 video. The three image modes are mutually exclusive. For final generation from a Draft, send only one draft_task item with no text or media","minItems":1,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Content type","enum":["text","image_url","video_url","audio_url","draft_task"],"example":"text","isRequired":true,"uniqueKey":"content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Prompt (required when type=text). Up to ~1000 English words; put spoken lines in double quotes to improve generated voice-over","example":"Waves crashing on rocks at sunset, slow motion, serene mood","uniqueKey":"content.items.[INDEX].text","typeLabel":"string"},"image_url":{"type":"object","description":"Image object (required when type=image_url). Accepts public URL, Base64 (data:image/png;base64,...), or asset ID (asset://...). Formats jpeg/png/webp/bmp/tiff/gif/heic/heif; aspect ratio (0.4, 2.5); sides (300, 6000) px; under 30 MB each. Real human faces are not allowed","properties":{"url":{"type":"string","description":"Image URL / Base64 / asset:// ID","example":"https://example.com/first.jpg","uniqueKey":"content.items.[INDEX].image_url.url","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX].image_url","typeLabel":"object"},"video_url":{"type":"object","description":"Reference video object (required when type=video_url); multi-modal reference mode only","properties":{"url":{"type":"string","description":"Video URL","uniqueKey":"content.items.[INDEX].video_url.url","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX].video_url","typeLabel":"object"},"audio_url":{"type":"object","description":"Reference audio object (required when type=audio_url), supporting wav/mp3. 2.5 accepts up to 10 clips and audio-only references; the 2.0 family accepts 2-15 s per clip, up to 3 clips and 15 s total, alongside at least one image or video","properties":{"url":{"type":"string","description":"Audio URL","uniqueKey":"content.items.[INDEX].audio_url.url","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX].audio_url","typeLabel":"object"},"draft_task":{"type":"object","description":"Draft reference (required when type=draft_task; Seedance 2.5 only). The task must be succeeded and no more than 7 days old from created_at. The final task must use the same model as the Draft","required":["id"],"properties":{"id":{"type":"string","minLength":1,"description":"Succeeded 480p Draft task ID; replace the placeholder before submitting the final task","example":"cgt-your-draft-task-id","isRequired":true,"uniqueKey":"content.items.[INDEX].draft_task.id","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX].draft_task","typeLabel":"object"},"role":{"type":"string","description":"Media role. Required for first+last frame (first_frame/last_frame); optional for a single first frame; reference media use reference_*","enum":["first_frame","last_frame","reference_image","reference_video","reference_audio"],"uniqueKey":"content.items.[INDEX].role","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"content","typeLabel":"object[]"},"resolution":{"type":"string","description":"Resolution tier (defines pixel area; every ratio in a tier costs the same). Standard generation defaults to 720p; 1080p is available on 2.5 and 2.0 standard only, while fast and mini cap at 720p. With draft=true, explicitly set 480p. Final generation from draft_task defaults to and only supports 1080p","enum":["480p","720p","1080p"],"example":"720p","uniqueKey":"resolution","typeLabel":"enum\u003cstring>"},"draft":{"type":"boolean","description":"Generate a Draft, supported on Seedance 2.5 only. true requires resolution=480p. Omit or set false for final generation from draft_task. Draft and final tasks are billed separately by actual tokens at their respective resolution rates","default":false,"example":true,"uniqueKey":"draft","typeLabel":"boolean"},"ratio":{"type":"string","description":"Aspect ratio. Standard generation defaults to adaptive to auto-fit the input (recommended for image-to-video to avoid cropping); the actual ratio is returned in the task's ratio field. Do not send for final generation from draft_task; the Draft value is reused","enum":["16:9","4:3","1:1","3:4","9:16","21:9","adaptive"],"uniqueKey":"ratio","typeLabel":"enum\u003cstring>"},"duration":{"type":"integer","description":"Video length in whole seconds: 4-30 on 2.5, 4-15 on the 2.0 family; or -1 to let the model choose (billed by actual output). Cost scales linearly with duration. The default is -1 on 2.5 and 5 on the 2.0 family. Do not send for final generation from draft_task; the Draft value is reused","example":5,"uniqueKey":"duration","typeLabel":"integer"},"generate_audio":{"type":"boolean","description":"Generate synchronized audio (voice, SFX, background music; mono). Standard generation defaults to true; pass false explicitly for silent video. Do not send for final generation from draft_task; the Draft value is reused","uniqueKey":"generate_audio","typeLabel":"boolean"},"watermark":{"type":"boolean","description":"Add an AI-generated watermark in the bottom-right corner","default":false,"uniqueKey":"watermark","typeLabel":"boolean"},"seed":{"type":"integer","description":"Random seed, [-1, 2^32-1], defaulting to -1 for standard generation. The same seed produces similar (not identical) results; -1 means random. Do not send for final generation from draft_task; the Draft value is reused","uniqueKey":"seed","typeLabel":"integer"},"return_last_frame":{"type":"boolean","description":"Return the last frame as a watermark-free png (same dimensions as the video) — chain it as the first frame of the next task to produce continuous multi-clip videos","default":false,"uniqueKey":"return_last_frame","typeLabel":"boolean"},"execution_expires_after":{"type":"integer","description":"Task expiry threshold in seconds; tasks exceeding it are marked expired. Range [3600, 259200]","default":172800,"uniqueKey":"execution_expires_after","typeLabel":"integer"},"output_format":{"type":"string","description":"Output container, supported on doubao-seedance-2-5-260628 only. mov is a QuickTime container (H.264 + yuv444p + PCM) with better colour fidelity for post-production, but some players cannot open it","enum":["mp4","mov"],"default":"mp4","uniqueKey":"output_format","typeLabel":"enum\u003cstring>"},"omni_reference_task_type":{"type":"string","description":"Task type for omni-reference generation, supported on doubao-seedance-2-5-260628 only, defaulting to auto for standard generation. Declaring edit or extend validates constraints up front: video editing requires ratio=adaptive and duration=-1, video extension requires ratio=adaptive; violations return InvalidParameter.TaskTypeConstraint at submission. Do not send for final generation from draft_task; the Draft value is reused","enum":["auto","edit","extend"],"uniqueKey":"omni_reference_task_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"standardVideo":{"title":"standardVideo","value":{"model":"doubao-seedance-2-5-260628","content":[{"type":"text","text":"Drone shot flying over an autumn valley, golden forests and a winding river, cinematic"}],"resolution":"720p","ratio":"16:9","duration":5,"generate_audio":false}},"draftPreview":{"title":"draftPreview","value":{"model":"doubao-seedance-2-5-260628","content":[{"type":"text","text":"A small fox slowly turns around on a grassy field, steady camera, cinematic"}],"resolution":"480p","ratio":"16:9","duration":4,"generate_audio":false,"draft":true}},"finalFromDraft":{"title":"finalFromDraft","description":"Replace the placeholder ID with a succeeded Draft task ID. Do not append a prompt, media or parameters inherited from the Draft.","value":{"model":"doubao-seedance-2-5-260628","content":[{"type":"draft_task","draft_task":{"id":"cgt-your-draft-task-id"}}],"resolution":"1080p"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"76f81425-17b8-4af0-be35-ed14ec1c5492":{"description":"Task created. Returns the task ID for polling","content":{"application/json":{"schema":{"type":"object","description":"Creation response. Poll GET /seedance/api/v3/contents/generations/tasks/{id}; on success the video URL is at content.video_url (expires in ~24 h) and billed tokens at usage.completion_tokens. Once a Draft succeeds, reference its ID in content[].draft_task.id within 7 days of creation to generate a final video","properties":{"id":{"type":"string","description":"Video generation task ID (kept for 7 days)","example":"cgt-20260606160057-6bbjd","uniqueKey":"id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"id":"cgt-20260606160057-6bbjd"},"examples":{"Example":{"title":"Example","value":{"id":"cgt-20260606160057-6bbjd"}}},"exampleType":"examples"}},"exampleType":"examples"},"5f5e7b1e-f173-4270-863d-8e02a1a1f1a1":{"description":"InvalidParameter — e.g. 1080p with fast/mini, duration outside the model range, a Draft resolution other than 480p, or sending inherited parameters again for final generation. The error names the offending parameter; rejected requests are not billed","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"6ca1ee87-a64a-4c6f-a97e-dd42d22782c4":{"description":"Unauthorized - invalid API key","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"b5ef0b0a-1be5-4d9d-af13-b2897c0ca43f":{"description":"Content moderation rejection (real human faces, policy violations)","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"83c610b6-e9ed-4aac-8e2b-dc4ccc88c1d1":{"description":"Rate limited or insufficient quota","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"db3107c2-1b88-4c43-a33e-402c01b7e643":{"description":"Internal server error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"71658be0-42df-46d9-8e58-ef16cfaacd56":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API key from the APIYI console (SeeDance2 group for both 2.5 and the 2.0 family)","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"4ec4255d-9b95-43a7-9683-b53aeae20471":{"url":"https://api.apiyi.com","description":"Primary endpoint"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API key from the APIYI console (SeeDance2 group for both 2.5 and the 2.0 family)","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key from the APIYI console (SeeDance2 group for both 2.5 and the 2.0 family)","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/seedance2-video-openapi-en.yaml"},"subdomain":"apiyillc","siteName":"API易文档中心","title":"Seedance 2.0 / 2.5 動画生成 API リファレンス - API易文档中心","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"zh":{"href":"/api-capabilities/seedance2/video-generation","matchLevel":1},"en":{"href":"/en/api-capabilities/seedance2/video-generation","matchLevel":1},"zh-Hant":{"href":"/zh-Hant/api-capabilities/seedance2/video-generation","matchLevel":1},"ja":{"href":"/ja/api-capabilities/seedance2/video-generation","matchLevel":0},"ko":{"href":"/ko/api-capabilities/seedance2/video-generation","matchLevel":1},"ru":{"href":"/ru/api-capabilities/seedance2/video-generation","matchLevel":1}}},"lastModified":"2026-10-08T09:44:37.401Z","originalFileLocation":"ja/api-capabilities/seedance2/video-generation.mdx","locale":"ja"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"インタラクティブなプレイグラウンドを備えた Seedance 2.0 および 2.5 の動画生成 API リファレンス:テキストから動画、最初と最後/最初のフレーム、マルチモーダル参照、動画編集、動画拡張を1つの非同期エンドポイントで実行でき、完全なポーリングおよびダウンロードコードを提供します。\">\u003cmeta data-mint-head name=\"application-name\" content=\"API易文档中心\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/apiyillc/sQlsuRwD6o27XLvg/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/apiyillc/sQlsuRwD6o27XLvg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/apiyillc/sQlsuRwD6o27XLvg/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/apiyillc/sQlsuRwD6o27XLvg/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/apiyillc/sQlsuRwD6o27XLvg/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/apiyillc/sQlsuRwD6o27XLvg/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/apiyillc/sQlsuRwD6o27XLvg/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/apiyillc/sQlsuRwD6o27XLvg/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/apiyillc/sQlsuRwD6o27XLvg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Seedance 2.0 / 2.5 動画生成 API リファレンス - API易文档中心\">\u003cmeta data-mint-head property=\"og:description\" content=\"インタラクティブなプレイグラウンドを備えた Seedance 2.0 および 2.5 の動画生成 API リファレンス:テキストから動画、最初と最後/最初のフレーム、マルチモーダル参照、動画編集、動画拡張を1つの非同期エンドポイントで実行でき、完全なポーリングおよびダウンロードコードを提供します。\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"API易文档中心\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.apiyi.com/ja/api-capabilities/seedance2/video-generation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://apiyillc.mintlify.app/_mintlify/api/og/v2?division=Seedance+2.0+%2F+2.5%EF%BC%88Volcano+Engine%EF%BC%89\u0026amp;title=Seedance+2.0+%2F+2.5+%E5%8B%95%E7%94%BB%E7%94%9F%E6%88%90+API+%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9\u0026amp;description=%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%A9%E3%82%AF%E3%83%86%E3%82%A3%E3%83%96%E3%81%AA%E3%83%97%E3%83%AC%E3%82%A4%E3%82%B0%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89%E3%82%92%E5%82%99%E3%81%88%E3%81%9F+Seedance+2.0+%E3%81%8A%E3%82%88%E3%81%B3+2.5+%E3%81%AE%E5%8B%95%E7%94%BB%E7%94%9F%E6%88%90+API+%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9%EF%BC%9A%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%81%8B%E3%82%89%E5%8B%95%E7%94%BB%E3%80%81%E6%9C%80%E5%88%9D%E3%81%A8%E6%9C%80%E5%BE%8C%EF%BC%8F%E6%9C%80%E5%88%9D%E3%81%AE%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0%E3%80%81%E3%83%9E%E3%83%AB%E3%83%81%E3%83%A2%E3%83%BC%E3%83%80%E3%83%AB%E5%8F%82%E7%85%A7%E3%80%81%E5%8B%95%E7%94%BB%E7%B7%A8%E9%9B%86%E3%80%81%E5%8B%95%E7%94%BB%E6%8B%A1%E5%BC%B5%E3%82%921%E3%81%A4%E3%81%AE%E9%9D%9E%E5%90%8C%E6%9C%9F%E3%82%A8%E3%83%B3%E3%83%89%E3%83%9D%E3%82%A4%E3%83%B3%E3%83%88%E3%81%A7%E5%AE%9F%E8%A1%8C%E3%81%A7%E3%81%8D%E3%80%81%E5%AE%8C%E5%85%A8%E3%81%AA%E3%83%9D%E3%83%BC%E3%83%AA%E3%83%B3%E3%82%B0%E3%81%8A%E3%82%88%E3%81%B3%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89%E3%82%B3%E3%83%BC%E3%83%89%E3%82%92%E6%8F%90%E4%BE%9B%E3%81%97%E3%81%BE%E3%81%99%E3%80%82\u0026amp;theme=421dcf1ed22dd4b5d53fa3cb\u0026amp;signature=420c55023c894bdf224fb67a7a0fe07908401deb10d3697387419de6d857054f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Seedance 2.0 / 2.5 動画生成 API リファレンス - API易文档中心\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"インタラクティブなプレイグラウンドを備えた Seedance 2.0 および 2.5 の動画生成 API リファレンス:テキストから動画、最初と最後/最初のフレーム、マルチモーダル参照、動画編集、動画拡張を1つの非同期エンドポイントで実行でき、完全なポーリングおよびダウンロードコードを提供します。\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://apiyillc.mintlify.app/_mintlify/api/og/v2?division=Seedance+2.0+%2F+2.5%EF%BC%88Volcano+Engine%EF%BC%89\u0026amp;title=Seedance+2.0+%2F+2.5+%E5%8B%95%E7%94%BB%E7%94%9F%E6%88%90+API+%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9\u0026amp;description=%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%A9%E3%82%AF%E3%83%86%E3%82%A3%E3%83%96%E3%81%AA%E3%83%97%E3%83%AC%E3%82%A4%E3%82%B0%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89%E3%82%92%E5%82%99%E3%81%88%E3%81%9F+Seedance+2.0+%E3%81%8A%E3%82%88%E3%81%B3+2.5+%E3%81%AE%E5%8B%95%E7%94%BB%E7%94%9F%E6%88%90+API+%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9%EF%BC%9A%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%81%8B%E3%82%89%E5%8B%95%E7%94%BB%E3%80%81%E6%9C%80%E5%88%9D%E3%81%A8%E6%9C%80%E5%BE%8C%EF%BC%8F%E6%9C%80%E5%88%9D%E3%81%AE%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0%E3%80%81%E3%83%9E%E3%83%AB%E3%83%81%E3%83%A2%E3%83%BC%E3%83%80%E3%83%AB%E5%8F%82%E7%85%A7%E3%80%81%E5%8B%95%E7%94%BB%E7%B7%A8%E9%9B%86%E3%80%81%E5%8B%95%E7%94%BB%E6%8B%A1%E5%BC%B5%E3%82%921%E3%81%A4%E3%81%AE%E9%9D%9E%E5%90%8C%E6%9C%9F%E3%82%A8%E3%83%B3%E3%83%89%E3%83%9D%E3%82%A4%E3%83%B3%E3%83%88%E3%81%A7%E5%AE%9F%E8%A1%8C%E3%81%A7%E3%81%8D%E3%80%81%E5%AE%8C%E5%85%A8%E3%81%AA%E3%83%9D%E3%83%BC%E3%83%AA%E3%83%B3%E3%82%B0%E3%81%8A%E3%82%88%E3%81%B3%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89%E3%82%B3%E3%83%BC%E3%83%89%E3%82%92%E6%8F%90%E4%BE%9B%E3%81%97%E3%81%BE%E3%81%99%E3%80%82\u0026amp;theme=421dcf1ed22dd4b5d53fa3cb\u0026amp;signature=420c55023c894bdf224fb67a7a0fe07908401deb10d3697387419de6d857054f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/apiyillc/sQlsuRwD6o27XLvg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"API易文档中心\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563eb\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.apiyi.com/ja/api-capabilities/seedance2/video-generation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ja/api-capabilities/seedance2/video-generation.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.apiyi.com/ja/api-capabilities/seedance2/video-generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.apiyi.com/api-capabilities/seedance2/video-generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.apiyi.com/en/api-capabilities/seedance2/video-generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://docs.apiyi.com/zh-Hant/api-capabilities/seedance2/video-generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.apiyi.com/ko/api-capabilities/seedance2/video-generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://docs.apiyi.com/ru/api-capabilities/seedance2/video-generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.apiyi.com/api-capabilities/seedance2/video-generation\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.apiyi.com/#organization\",\"name\":\"API易文档中心\",\"url\":\"https://docs.apiyi.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/apiyillc/LjCT1O0GrSur6F2v/logo/light.svg?fit=max\u0026auto=format\u0026n=LjCT1O0GrSur6F2v\u0026q=85\u0026s=4119ef17a74cc54be127f34578d8b5fa\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.apiyi.com#website\",\"name\":\"API易文档中心\",\"url\":\"https://docs.apiyi.com\",\"publisher\":{\"@id\":\"https://docs.apiyi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.apiyi.com/ja/api-capabilities/seedance2/video-generation#webpage\",\"url\":\"https://docs.apiyi.com/ja/api-capabilities/seedance2/video-generation\",\"name\":\"Seedance 2.0 / 2.5 動画生成 API リファレンス\",\"description\":\"インタラクティブなプレイグラウンドを備えた Seedance 2.0 および 2.5 の動画生成 API リファレンス:テキストから動画、最初と最後/最初のフレーム、マルチモーダル参照、動画編集、動画拡張を1つの非同期エンドポイントで実行でき、完全なポーリングおよびダウンロードコードを提供します。\",\"dateModified\":\"2026-10-08T09:44:37.401Z\",\"isPartOf\":{\"@id\":\"https://docs.apiyi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.apiyi.com/ja/api-capabilities/seedance2/video-generation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.apiyi.com/ja/api-capabilities/seedance2/video-generation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"動画API(公式)\",\"item\":\"https://docs.apiyi.com/ja/api-capabilities/seedance2/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Seedance 2.0 / 2.5(Volcano Engine)\",\"item\":\"https://docs.apiyi.com/ja/api-capabilities/seedance2/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Seedance 2.0 / 2.5 動画生成 API リファレンス\",\"item\":\"https://docs.apiyi.com/ja/api-capabilities/seedance2/video-generation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.apiyi.com/ja/api-capabilities/seedance2/video-generation#apireference\",\"headline\":\"Seedance 2.0 / 2.5 動画生成 API リファレンス\",\"name\":\"Seedance 2.0 / 2.5 動画生成 API リファレンス\",\"description\":\"インタラクティブなプレイグラウンドを備えた Seedance 2.0 および 2.5 の動画生成 API リファレンス:テキストから動画、最初と最後/最初のフレーム、マルチモーダル参照、動画編集、動画拡張を1つの非同期エンドポイントで実行でき、完全なポーリングおよびダウンロードコードを提供します。\",\"url\":\"https://docs.apiyi.com/ja/api-capabilities/seedance2/video-generation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.apiyi.com/ja/api-capabilities/seedance2/video-generation#webpage\"},\"dateModified\":\"2026-10-08T09:44:37.401Z\",\"publisher\":{\"@id\":\"https://docs.apiyi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.apiyi.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"API易文档中心\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"API易文档中心","nav":{"global":{"anchors":[]},"languages":[{"language":"zh","pages":[{"title":"zh","href":"/api-capabilities/seedance2/video-generation"}]},{"language":"en","navbar":{"links":[{"href":"https://api.apiyi.com","label":"Home"},{"href":"https://imagen.apiyi.com","label":"AI Image"},{"href":"https://icover.ai","label":"AI Video"}],"primary":{"type":"button","label":"Console","href":"https://api.apiyi.com/account/profile"}},"pages":[{"title":"en","href":"/en/api-capabilities/seedance2/video-generation"}]},{"language":"zh-Hant","banner":{"content":"本頁由程式自動轉換為繁體中文,用詞以台灣正體為準;如有歧義請以[簡體中文版](/)為準。","dismissible":true},"footer":{"socials":{"website":"https://api.apiyi.com"},"links":[{"header":"AI 整合","items":[{"label":"skill.md","href":"https://docs.apiyi.com/skill.md"},{"label":"llms.txt","href":"https://docs.apiyi.com/llms.txt"},{"label":"llms-full.txt","href":"https://docs.apiyi.com/llms-full.txt"},{"label":"model-registry.json","href":"https://docs.apiyi.com/model-registry.json"},{"label":"AI 開發者套件(中文)","href":"/developer-kit"},{"label":"AI Developer Kit (EN)","href":"/en/developer-kit"}]},{"header":"使用者口碑 / Wall of Love","items":[{"label":"使用者口碑(中文)","href":"/wall-of-love"},{"label":"Wall of Love (EN)","href":"/en/wall-of-love"}]}]},"navbar":{"links":[{"href":"https://api.apiyi.com","label":"首頁"},{"href":"https://imagen.apiyi.com","label":"AI出圖"},{"href":"https://icover.ai","label":"AI影片"}],"primary":{"type":"button","label":"控制台","href":"https://api.apiyi.com/account/profile"}},"pages":[{"title":"zh-Hant","href":"/zh-Hant/api-capabilities/seedance2/video-generation"}]},{"language":"ja","banner":{"content":"このページは AI により翻訳されています。内容に相違がある場合は[English 版](/en)を正としてください。","dismissible":true},"footer":{"socials":{"website":"https://api.apiyi.com"},"links":[{"header":"AI統合","items":[{"label":"skill.md","href":"https://docs.apiyi.com/skill.md"},{"label":"llms.txt","href":"https://docs.apiyi.com/llms.txt"},{"label":"llms-full.txt","href":"https://docs.apiyi.com/llms-full.txt"},{"label":"model-registry.json","href":"https://docs.apiyi.com/model-registry.json"},{"label":"AI開発者キット(中国語)","href":"/developer-kit"},{"label":"AI Developer Kit (EN)","href":"/en/developer-kit"}]},{"header":"ユーザーの声 / Wall of Love","items":[{"label":"ユーザーの声(中国語)","href":"/wall-of-love"},{"label":"Wall of Love(英語)","href":"/en/wall-of-love"}]}]},"navbar":{"links":[{"href":"https://api.apiyi.com","label":"ホーム"},{"href":"https://imagen.apiyi.com","label":"AI画像生成"},{"href":"https://icover.ai","label":"AI動画生成"}],"primary":{"type":"button","label":"コンソール","href":"https://api.apiyi.com/account/profile"}},"tabs":[{"tab":"ホーム","icon":"house","groups":[{"group":"基本","pages":[{"title":"APIYI - AIモデルAPIハブ","sidebarTitle":"はじめに","icon":"house","href":"/ja"},{"title":"クイックスタート","icon":"rocket","href":"/ja/getting-started"},{"group":"AI開発者キット","icon":"terminal","pages":[{"title":"AI開発キット","sidebarTitle":"AI開発キット","icon":"bot","href":"/ja/developer-kit"},{"title":"ターミナルで apiyi コマンドが見つからないと表示されるのはなぜですか?","icon":"terminal","href":"/ja/faq/apiyi-cli-command-not-found"}]},{"group":"APIマニュアル","icon":"book","pages":[{"title":"APIマニュアル","sidebarTitle":"マニュアル概要","icon":"book","href":"/ja/api-manual"},{"title":"API エラー詳細の取得","sidebarTitle":"エラー取得","icon":"clipboard-list","href":"/ja/api-manual/error-reporting"},{"group":"API接続 よくある質問","icon":"circle-question-mark","expanded":false,"pages":[{"title":"APIYIはFiles APIに対応していますか?","icon":"file-up","href":"/ja/faq/files-api-not-supported"},{"title":"Base URLの設定方法は? /v1、ルートドメイン、/v1beta の違い","icon":"link","href":"/ja/faq/base-url-config"},{"title":"モデル API エラーをトラブルシューティングするには?","icon":"alert-triangle","href":"/ja/faq/model-error-troubleshooting"},{"title":"APIの同時実行数制限とは?","icon":"gauge","href":"/ja/faq/api-concurrency"}]}]},{"title":"料金","icon":"badge-dollar-sign","href":"/ja/pricing"}]},{"group":"基本API","icon":"box","pages":[{"group":"モデル情報","icon":"cpu","pages":[{"title":"人気モデル","icon":"database","href":"/ja/api-capabilities/model-info"},{"group":"モデル よくある質問","icon":"circle-question-mark","expanded":false,"pages":[{"title":"適切なAIモデルの選び方","icon":"compass","href":"/ja/faq/model-selection-guide"},{"title":"公式WebアプリとAPIで結果が異なるのはなぜですか?","icon":"layers","href":"/ja/faq/webapp-vs-api-difference"},{"title":"なぜ AI モデルは自分自身のバージョンを把握できないのか?","icon":"circle-question-mark","href":"/ja/faq/model-version-identity"}]}]},{"title":"画像・動画生成モデル","icon":"palette","href":"/ja/api-capabilities/image-video-models"},{"group":"OpenAI API呼び出し","icon":"sparkles","pages":[{"title":"OpenAI Responses API ネイティブガイド","sidebarTitle":"ネイティブ呼び出し","icon":"zap","href":"/ja/api-capabilities/openai/native"},{"title":"OpenAI Chat Completions 互換モード","sidebarTitle":"互換モード","icon":"plug","href":"/ja/api-capabilities/openai/compatible"},{"title":"エンドポイントの選択:GPT-5.4以降をResponsesへ移行","sidebarTitle":"エンドポイントと移行","icon":"route","href":"/ja/api-capabilities/openai/responses-migration"},{"title":"OpenAI Compatible モード: レスポンスの処理","sidebarTitle":"レスポンスの処理","icon":"braces","href":"/ja/api-capabilities/openai/response-handling"},{"title":"OpenAI Compatible Mode: Reasoning Model Output","sidebarTitle":"Reasoning Model Output","icon":"brain","href":"/ja/api-capabilities/openai/reasoning-models"},{"title":"OpenAI プロンプトキャッシュ課金ガイド","sidebarTitle":"キャッシュ課金","icon":"database","href":"/ja/api-capabilities/openai/prompt-caching"},{"title":"OpenAI Function Calling ガイド","sidebarTitle":"ファンクション・コーリング","icon":"wrench","href":"/ja/api-capabilities/openai/function-calling"},{"title":"OpenAI API Web Search ガイド","sidebarTitle":"Web検索","icon":"globe","href":"/ja/api-capabilities/openai/web-search"},{"group":"OpenAI よくある質問","icon":"circle-question-mark","pages":[{"title":"APIYIはOpenAIのFast / Ultrafastモードに対応していますか?","icon":"gauge","href":"/ja/faq/openai-service-tier-fast-mode"},{"title":"コンテンツがフィルタリングされた際、ストリーミングと非ストリーミングリクエストはどう異なりますか?","sidebarTitle":"ストリーミングとコンテンツフィルタリング","icon":"shield-half","href":"/ja/faq/streaming-content-filter"},{"title":"OpenAI モデルの拒否応答はどのようなものですか?","icon":"message-square-x","href":"/ja/faq/openai-content-safety-refusal"}]}]},{"group":"Claude 公式","icon":"sparkles","pages":[{"title":"Claude API 呼び出しの基本","sidebarTitle":"Claude API の基本","icon":"sparkles","href":"/ja/api-capabilities/claude"},{"title":"Claude ネイティブ形式: ストリーミングと非ストリーミングのレスポンス","sidebarTitle":"ストリーミングとレスポンス","icon":"braces","href":"/ja/api-capabilities/claude-response-handling"},{"title":"Claude Prompt Caching ガイド","sidebarTitle":"Prompt Caching","icon":"database","href":"/ja/api-capabilities/claude-prompt-caching"},{"title":"Claude Effort \u0026 Thinking ガイド","sidebarTitle":"Effort \u0026 Thinking","icon":"gauge","href":"/ja/api-capabilities/claude-effort-thinking"},{"title":"Claude API Web検索ガイド","sidebarTitle":"Claude Web検索","icon":"globe","href":"/ja/api-capabilities/claude-web-search"},{"group":"Claude よくある質問","icon":"circle-question-mark","pages":[{"title":"Claude はなぜ Qwen や DeepSeek を名乗るのか?","icon":"venetian-mask","href":"/ja/faq/claude-identity-confusion"},{"title":"ClaudeのInvalid Thinking Signatureエラーを修正するにはどうすればよいですか?","icon":"file-signature","href":"/ja/faq/claude-thinking-signature-invalid"},{"title":"なぜClaudeの拒否応答は空のコンテンツを返すのですか?","icon":"message-square-x","href":"/ja/faq/claude-content-safety-refusal"}]}]},{"group":"Gemini ネイティブ呼び出し","icon":"sparkles","pages":[{"title":"Gemini ネイティブ形式ガイド","sidebarTitle":"ネイティブ呼び出し","icon":"zap","href":"/ja/api-capabilities/gemini/native"},{"title":"Interactions API 対 generateContent","sidebarTitle":"Interactions API の比較","icon":"git-compare","href":"/ja/api-capabilities/gemini/interactions-api"},{"title":"Gemini ネイティブ形式: ストリーミングと非ストリーミング応答","sidebarTitle":"ストリーミングと応答","icon":"braces","href":"/ja/api-capabilities/gemini/response-handling"},{"title":"Gemini マルチモーダル入力とコード実行","sidebarTitle":"マルチモーダルとコード実行","icon":"images","href":"/ja/api-capabilities/gemini/multimodal"},{"title":"Gemini 暗黙的キャッシュ 課金ガイド","sidebarTitle":"キャッシュ課金","icon":"database","href":"/ja/api-capabilities/gemini/prompt-caching"},{"title":"Gemini 関数呼び出しガイド","sidebarTitle":"関数呼び出し","icon":"wrench","href":"/ja/api-capabilities/gemini/function-calling"},{"title":"Gemini API Web Search ガイド","sidebarTitle":"Web Search","icon":"globe","href":"/ja/api-capabilities/gemini/web-search"},{"title":"ツール呼び出しにおける Gemini Thought Signature 400 エラーを解決する方法","icon":"file-signature","href":"/ja/faq/gemini-thought-signature-missing"}]},{"group":"Grok API呼び出し","icon":"sparkles","pages":[{"title":"Grok モデルシリーズガイド","sidebarTitle":"Grok 概要","icon":"rocket","href":"/ja/api-capabilities/grok/overview"},{"title":"Grok Chat \u0026 推論ガイド","sidebarTitle":"チャットと推論","icon":"message-square","href":"/ja/api-capabilities/grok/chat"},{"title":"Grok Web Search \u0026 X Search ガイド","sidebarTitle":"Web \u0026 X Search","icon":"globe","href":"/ja/api-capabilities/grok/web-search"},{"title":"Grok Code Execution \u0026 Remote MCP ガイド","sidebarTitle":"Code Execution \u0026 MCP","icon":"terminal","href":"/ja/api-capabilities/grok/code-execution-mcp"},{"title":"Grok マルチエージェントモデルガイド","sidebarTitle":"マルチエージェントモデル","icon":"users","href":"/ja/api-capabilities/grok/multi-agent"},{"title":"Grok プロンプトキャッシュ課金ガイド","sidebarTitle":"キャッシュ課金","icon":"database","href":"/ja/api-capabilities/grok/prompt-caching"}]},{"group":"テキストAPIベストプラクティス","icon":"book-check","pages":[{"title":"長文出力の実践ガイド","sidebarTitle":"長文出力","icon":"book-check","href":"/ja/api-capabilities/long-form-output-practices"},{"title":"マルチターン会話ガイド","sidebarTitle":"マルチターン会話","icon":"messages-square","href":"/ja/api-capabilities/multi-turn-conversation"},{"group":"テキスト よくある質問","icon":"circle-question-mark","expanded":false,"pages":[{"title":"ストリーミング呼び出しと非ストリーミング呼び出しの違いは何ですか?","sidebarTitle":"ストリーミング vs 非ストリーミング","icon":"audio-lines","href":"/ja/faq/streaming-vs-non-streaming"},{"title":"max_tokens とは? 未設定の場合はどうなりますか?","icon":"sliders-horizontal","href":"/ja/faq/max-tokens"},{"title":"APIにはChatGPTのようなメモリがありますか?","icon":"brain","href":"/ja/faq/api-memory"}]}]},{"title":"残高照会 API","icon":"wallet","href":"/ja/api-capabilities/balance-query"},{"title":"ログクエリ API","icon":"file-text","href":"/ja/api-capabilities/log-query"},{"title":"Token 管理 API","icon":"key","href":"/ja/api-capabilities/token-management"},{"title":"廃止予定のモデル","icon":"triangle-alert","href":"/ja/api-capabilities/deprecated-models"}]},{"group":"画像API(公式)","icon":"image","pages":[{"group":"画像APIの基礎","icon":"book-check","pages":[{"title":"画像APIの必須事項とベストプラクティス","sidebarTitle":"必読 \u0026 ベストプラクティス","icon":"book-check","href":"/ja/api-capabilities/image-api-best-practices"},{"title":"画像API接続切断のトラブルシューティング","sidebarTitle":"接続切断","icon":"unplug","href":"/ja/api-capabilities/image-connection-drops"},{"title":"データ到着後も終了しない画像リクエスト","sidebarTitle":"末尾で停止するリクエスト","icon":"hourglass","href":"/ja/api-capabilities/image-tail-stall"},{"title":"画像圧縮と出力解像度","sidebarTitle":"圧縮と解像度","icon":"scaling","href":"/ja/api-capabilities/image-compression-resolution"},{"title":"納得できる画像を得る方法","sidebarTitle":"納得できる画像の取得","icon":"target","href":"/ja/api-capabilities/image-generation-success-tips"},{"title":"安全性による拒否のトラブルシューティング:アブレーションでトリガーワードを特定する","sidebarTitle":"安全性による拒否","icon":"shield-alert","href":"/ja/api-capabilities/image-safety-troubleshooting"},{"title":"長文promptと2段階生成:32K制限はどこから来るのか","sidebarTitle":"長文prompt","icon":"text-quote","href":"/ja/api-capabilities/image-long-prompt"},{"title":"高度な画像生成: ワークフローとリアリズム","sidebarTitle":"高度なワークフロー","icon":"workflow","href":"/ja/api-capabilities/image-advanced-workflow"},{"title":"Image Prompt Doctor Skill","sidebarTitle":"Prompt Doctor Skill","icon":"stethoscope","href":"/ja/api-capabilities/image-prompt-doctor"},{"group":"画像 よくある質問","icon":"circle-question-mark","pages":[{"title":"テキストと生成画像の両方を出力する会話型 API はありますか?","sidebarTitle":"1つのAPIでテキスト + 画像","icon":"images","href":"/ja/faq/text-and-image-in-one-api"},{"title":"画像リクエストが応答なしでハングするのに、ログには書き込み失敗と表示されるのはなぜですか?","icon":"hourglass","href":"/ja/faq/image-direct-large-response-stall"},{"title":"プロキシ経由で約90秒後に画像呼び出しが切断されますか?","icon":"unplug","href":"/ja/faq/proxy-idle-timeout-disconnect"},{"title":"生成された画像が参照画像と大きく異なるのはなぜですか?","icon":"image","href":"/ja/faq/image-result-differs-from-reference"},{"title":"画像コンテンツが MIME タイプと一致しないエラーを修正する方法","icon":"image","href":"/ja/faq/image-mime-type-mismatch-with-query"},{"title":"非同期の画像APIはありますか?タスクIDで結果を照会できますか?","icon":"image","href":"/ja/faq/image-async-api"}]}]},{"group":"GPT-Image-2.5 / 2画像生成","icon":"sparkles","pages":[{"title":"GPT-Image-2.5 / 2 画像生成/編集","sidebarTitle":"GPT-Image-2.5 / 2 概要","icon":"sparkles","href":"/ja/api-capabilities/gpt-image-2/overview"},{"title":"テキストから画像への API リファレンス","openapi":"api-reference/gpt-image-2-generate-openapi-en.yaml POST /v1/images/generations","icon":"wand-sparkles","href":"/ja/api-capabilities/gpt-image-2/text-to-image"},{"title":"画像編集 API リファレンス","openapi":"api-reference/gpt-image-2-edit-openapi-en.yaml POST /v1/images/edits","icon":"image","href":"/ja/api-capabilities/gpt-image-2/image-edit"},{"title":"GPT-Image-2.5 / 2 シリーズのエージェントスキル","icon":"blocks","href":"/ja/api-capabilities/gpt-image-2/skills"},{"title":"マスクインペインティングガイド","sidebarTitle":"マスクインペインティング","icon":"brush","href":"/ja/api-capabilities/gpt-image-2/mask-editing"},{"title":"GPT-Image レガシーバージョン","sidebarTitle":"GPT-Image レガシー","icon":"rotate-ccw-clock","href":"/ja/api-capabilities/gpt-image-2/historical-versions"},{"group":"GPT-Image よくある質問","icon":"circle-question-mark","pages":[{"title":"背景が透明な画像(PNG切り抜き)を生成するにはどうすればよいですか?","icon":"layers","href":"/ja/faq/image-transparent-background"},{"title":"GPT Image の出力 token がなぜこんなに多いのですか?","icon":"calculator","href":"/ja/faq/gpt-image-output-token-calculation"},{"title":"GPT-Image の Codex 統合が誤った API キーで失敗する","sidebarTitle":"画像キーが OpenAI に拒否される","icon":"key-round","href":"/ja/faq/gpt-image-incorrect-api-key-openai"}]}]},{"title":"GPT-image-2.5 / 2 公式版とリバース版","sidebarTitle":"GPT-image-2.5 / 2 公式版とリバース版","icon":"scale","href":"/ja/api-capabilities/gpt-image-2/vs-gpt-image-2-all"},{"group":"GPT-Image-2.5-All画像生成","icon":"sparkles","pages":[{"title":"GPT-Image-2.5-All 画像生成/編集","sidebarTitle":"GPT-Image-2.5-All 概要","icon":"sparkles","href":"/ja/api-capabilities/gpt-image-2-all/overview"},{"title":"Text-to-Image API リファレンス","openapi":"api-reference/gpt-image-2-all-generate-openapi-en.yaml POST /v1/images/generations","icon":"wand-sparkles","href":"/ja/api-capabilities/gpt-image-2-all/text-to-image"},{"title":"画像編集 API リファレンス","openapi":"api-reference/gpt-image-2-all-edit-openapi-en.yaml POST /v1/images/edits","icon":"image","href":"/ja/api-capabilities/gpt-image-2-all/image-edit"},{"title":"GPT-Image-2.5-All エージェントスキル","icon":"blocks","href":"/ja/api-capabilities/gpt-image-2-all/skills"}]},{"group":"GPT-Image-2.5-VIP画像生成","icon":"expand","pages":[{"title":"GPT-Image-2.5-VIP 画像生成/編集","sidebarTitle":"GPT-Image-2.5-VIP 概要","icon":"expand","href":"/ja/api-capabilities/gpt-image-2-vip/overview"},{"title":"テキストから画像生成 API リファレンス","openapi":"api-reference/gpt-image-2-vip-generate-openapi-en.yaml POST /v1/images/generations","icon":"wand-sparkles","href":"/ja/api-capabilities/gpt-image-2-vip/text-to-image"},{"title":"画像編集 API リファレンス","openapi":"api-reference/gpt-image-2-vip-edit-openapi-en.yaml POST /v1/images/edits","icon":"image","href":"/ja/api-capabilities/gpt-image-2-vip/image-edit"},{"title":"GPT-Image-2.5-VIP エージェントスキル","icon":"blocks","href":"/ja/api-capabilities/gpt-image-2-vip/skills"}]},{"title":"Nano Bananaシリーズの料金","icon":"tag","href":"/ja/api-capabilities/nano-banana-pricing"},{"group":"NanoBananaベストプラクティス","icon":"lightbulb","pages":[{"title":"Nano Banana シリーズ開発者ガイド","icon":"compass","href":"/ja/api-capabilities/nano-banana-dev-guide"},{"title":"使用フィールドと出力の解説","sidebarTitle":"使用フィールドと出力の解説","icon":"receipt-text","href":"/ja/api-capabilities/nano-banana-usage-metadata"},{"title":"Gemini画像生成APIエラー対応ガイド","icon":"triangle-alert","href":"/ja/api-capabilities/gemini-image-error-handling"},{"title":"マルチ画像フュージョン テストガイド","sidebarTitle":"マルチ画像フュージョン テスト","icon":"layers","href":"/ja/api-capabilities/multi-image-fusion-testing"},{"title":"Nano Banana Pro 失敗生成クレジット返還プラン","icon":"shield-check","href":"/ja/api-capabilities/nano-banana-pro-guarantee"},{"title":"Nano Banana OSS グループ","icon":"link","href":"/ja/api-capabilities/nano-banana-oss-group"},{"group":"NB よくある質問","icon":"circle-question-mark","pages":[{"title":"Google モデルは AI Studio 上で動作しますか、それとも Vertex ですか?","icon":"split","href":"/ja/faq/google-upstream-aistudio-vertex"},{"title":"画像編集で「Unable to Process Input Image」が返される場合の対処法","icon":"image-off","href":"/ja/faq/gemini-empty-inlinedata"},{"title":"なぜ Gemini 画像で IMAGE_OTHER が返されるのか?","sidebarTitle":"IMAGE_OTHER","icon":"image-minus","href":"/ja/faq/gemini-image-other"},{"title":"なぜGemini画像モデルはblockReason: OTHERを返すのか?","sidebarTitle":"blockReason: OTHER","icon":"shield-alert","href":"/ja/faq/gemini-image-input-blocked"},{"title":"Nano Banana 画像生成失敗の一般的な理由","icon":"image-off","href":"/ja/faq/nano-banana-image-failure"},{"title":"Gemini 画像 API が NO_IMAGE を返すのはなぜですか?","icon":"image-off","href":"/ja/faq/gemini-no-image"},{"title":"Nano Banana Pro で編集したあとに画像が赤っぽくなるのはなぜですか?","icon":"image","href":"/ja/faq/banana-pro-edit-red-cast"},{"title":"Nano Banana Proで衣装を変更したときにプリントの歪みを修正するには?","icon":"shirt","href":"/ja/faq/nano-banana-pro-print-distortion"},{"title":"なぜ白背景の画像に黒い斑点、汚れのような部分、またはぼやけた色ブロックが表示されるのですか?","icon":"triangle-alert","href":"/ja/faq/white-background-image-artifacts"}]}]},{"group":"Nano Banana 2.1画像生成","icon":"banana","pages":[{"title":"Nano Banana 2.1 画像生成/編集","icon":"banana","href":"/ja/api-capabilities/gemini-nano-banana-2.1/overview"},{"title":"テキストから画像生成 API リファレンス","openapi":"api-reference/gemini-nano-banana-2.1-generate-openapi-en.yaml POST /v1beta/models/gemini-nano-banana-2.1:generateContent","icon":"wand-sparkles","href":"/ja/api-capabilities/gemini-nano-banana-2.1/text-to-image"},{"title":"画像編集 API リファレンス","openapi":"api-reference/gemini-nano-banana-2.1-edit-openapi-en.yaml POST /v1beta/models/gemini-nano-banana-2.1:generateContent","icon":"image","href":"/ja/api-capabilities/gemini-nano-banana-2.1/image-edit"},{"title":"Nano Banana 2.1 エージェントスキル","icon":"blocks","href":"/ja/api-capabilities/gemini-nano-banana-2.1/skills"}]},{"group":"Nano Banana Pro画像生成","icon":"banana","pages":[{"title":"Nano Banana Pro 画像生成","icon":"banana","href":"/ja/api-capabilities/nano-banana-image/overview"},{"title":"テキストから画像を生成するAPIリファレンス","openapi":"api-reference/nano-banana-pro-generate-openapi-en.yaml POST /v1beta/models/gemini-3-pro-image:generateContent","icon":"wand-sparkles","href":"/ja/api-capabilities/nano-banana-image/text-to-image"},{"title":"画像編集 API リファレンス","openapi":"api-reference/nano-banana-pro-edit-openapi-en.yaml POST /v1beta/models/gemini-3-pro-image:generateContent","icon":"image","href":"/ja/api-capabilities/nano-banana-image/image-edit"},{"title":"Nano Banana Pro エージェントスキル","icon":"blocks","href":"/ja/api-capabilities/nano-banana-image/skills"}]},{"group":"Nano Banana 2画像生成","icon":"banana","pages":[{"title":"Nano Banana 2 画像生成/編集","icon":"banana","href":"/ja/api-capabilities/nano-banana-2-image/overview"},{"title":"テキストから画像へのAPIリファレンス","openapi":"api-reference/nano-banana-2-generate-openapi-en.yaml POST /v1beta/models/gemini-3.1-flash-image:generateContent","icon":"wand-sparkles","href":"/ja/api-capabilities/nano-banana-2-image/text-to-image"},{"title":"画像編集 API リファレンス","openapi":"api-reference/nano-banana-2-edit-openapi-en.yaml POST /v1beta/models/gemini-3.1-flash-image:generateContent","icon":"image","href":"/ja/api-capabilities/nano-banana-2-image/image-edit"},{"title":"Nano Banana 2 エージェントスキル","icon":"blocks","href":"/ja/api-capabilities/nano-banana-2-image/skills"}]},{"group":"Nano Banana Lite画像生成","icon":"banana","pages":[{"title":"Nano Banana Lite 画像生成/編集","icon":"banana","href":"/ja/api-capabilities/nano-banana-lite-image/overview"},{"title":"Text-to-Image API リファレンス","openapi":"api-reference/nano-banana-lite-generate-openapi-en.yaml POST /v1beta/models/gemini-3.1-flash-lite-image:generateContent","icon":"wand-sparkles","href":"/ja/api-capabilities/nano-banana-lite-image/text-to-image"},{"title":"画像編集 API リファレンス","openapi":"api-reference/nano-banana-lite-edit-openapi-en.yaml POST /v1beta/models/gemini-3.1-flash-lite-image:generateContent","icon":"image","href":"/ja/api-capabilities/nano-banana-lite-image/image-edit"},{"title":"Nano Banana Lite エージェントスキル","icon":"blocks","href":"/ja/api-capabilities/nano-banana-lite-image/skills"}]},{"group":"FLUX画像生成・編集","icon":"sparkles","pages":[{"title":"FLUX 画像生成・編集","sidebarTitle":"FLUX 概要","icon":"sparkles","href":"/ja/api-capabilities/flux/overview"},{"title":"テキストから画像生成 API リファレンス","openapi":"api-reference/flux-generate-openapi-en.yaml POST /v1/images/generations","icon":"wand-sparkles","href":"/ja/api-capabilities/flux/text-to-image"},{"title":"画像編集 API リファレンス","openapi":"api-reference/flux-edit-openapi-en.yaml POST /v1/images/generations","icon":"image","href":"/ja/api-capabilities/flux/image-edit"},{"title":"FLUX の過去バージョン","sidebarTitle":"過去バージョン","icon":"rotate-ccw-clock","href":"/ja/api-capabilities/flux/historical-versions"}]},{"group":"Seedream 5.0シリーズ","icon":"sparkles","pages":[{"title":"Seedream 画像生成と編集","sidebarTitle":"Seedream 概要","icon":"sparkles","href":"/ja/api-capabilities/seedream-image/overview"},{"title":"テキストから画像生成 API リファレンス","openapi":"api-reference/seedream-image-generate-openapi-en.yaml POST /v1/images/generations","icon":"wand-sparkles","href":"/ja/api-capabilities/seedream-image/text-to-image"},{"title":"画像編集 API リファレンス","openapi":"api-reference/seedream-image-edit-openapi-en.yaml POST /v1/images/generations","icon":"image","href":"/ja/api-capabilities/seedream-image/image-edit"},{"title":"Seedream 歴代バージョン","sidebarTitle":"歴代バージョン","icon":"rotate-ccw-clock","href":"/ja/api-capabilities/seedream-image/historical-versions"}]},{"group":"Grok Imagine 公式画像生成","icon":"sparkles","pages":[{"title":"Grok Imagine 公式画像生成","sidebarTitle":"Grok Imagine 公式概要","icon":"sparkles","href":"/ja/api-capabilities/grok-imagine-image-official/overview"},{"title":"Grok Imagine 公式テキスト画像生成 API リファレンス","sidebarTitle":"テキスト画像生成","openapi":"api-reference/grok-imagine-image-official-generate-openapi-en.yaml POST /v1/images/generations","icon":"wand-sparkles","href":"/ja/api-capabilities/grok-imagine-image-official/text-to-image"}]},{"group":"Grok Imagine リバース画像生成・編集","icon":"sparkles","pages":[{"title":"Grok Imagine リバース画像生成と編集","sidebarTitle":"Grok Imagine リバース概要","icon":"sparkles","href":"/ja/api-capabilities/grok-imagine-image/overview"},{"title":"テキストから画像への API リファレンス","openapi":"api-reference/grok-imagine-image-generate-openapi-en.yaml POST /v1/images/generations","icon":"wand-sparkles","href":"/ja/api-capabilities/grok-imagine-image/text-to-image"},{"title":"画像編集 API リファレンス","openapi":"api-reference/grok-imagine-image-edit-openapi-en.yaml POST /v1/images/edits","icon":"image","href":"/ja/api-capabilities/grok-imagine-image/image-edit"}]},{"group":"MAI-Image 2.6画像生成・編集","icon":"sparkles","pages":[{"title":"MAI-Image 2.6 画像生成・編集","sidebarTitle":"MAI-Image 2.6 の概要","icon":"sparkles","href":"/ja/api-capabilities/mai-image/overview"},{"title":"テキストから画像生成 API リファレンス","openapi":"api-reference/mai-image-generate-openapi-en.yaml POST /v1/images/generations","icon":"wand-sparkles","href":"/ja/api-capabilities/mai-image/text-to-image"},{"title":"画像編集 API リファレンス","openapi":"api-reference/mai-image-edit-openapi-en.yaml POST /v1/images/edits","icon":"image","href":"/ja/api-capabilities/mai-image/image-edit"}]},{"title":"APIYI 画像 API 統合実践: 独自の非同期キューを構築する","sidebarTitle":"セルフホストの非同期キュー","icon":"list-checks","href":"/ja/api-capabilities/image-async-queue"}]},{"group":"動画API(公式)","icon":"video","pages":[{"group":"Seedance 2.0 / 2.5(Volcano Engine)","icon":"film","pages":[{"title":"Seedance 2.0 / 2.5 動画生成","sidebarTitle":"Seedance 2.0 / 2.5 概要","description":"公式 Volcengine リソース経由の ByteDance Seedance:新しい 2.5 と、2.0 の標準 / 高速 / Mini を並行提供 — テキストから動画、最初+最後 / 最初のフレーム、マルチモーダルリファレンス、動画編集と延長に対応。すべてのアスペクト比で各ティアの料金は同一で、音声はデフォルトで同期されます。2.5 では 30 秒クリップ、30 枚のリファレンス画像、mov 出力が追加され、2.0 ファミリーと同じ SeeDance2 グループで課金されます。","icon":"film","href":"/ja/api-capabilities/seedance2/overview"},{"title":"Seedance 2.0 / 2.5 動画生成 API リファレンス","sidebarTitle":"動画生成","openapi":"api-reference/seedance2-video-openapi-en.yaml POST /seedance/api/v3/contents/generations/tasks","icon":"video","href":"/ja/api-capabilities/seedance2/video-generation"},{"title":"Seedance 2.0 動画エージェントスキル","description":"4つすべてのSeedanceモデル(sd25 / mini / fast / standard)を、すぐに使える1つのエージェントスキルにまとめます。Codex、OpenClaw、Claude Code、または任意のコーディングエージェントに追加するだけで、1文の指示からテキストから動画、画像から動画、参照画像動画を生成できます。スクリプトは非同期タスクをポーリングし、完成した動画クリップを自動的にダウンロードします。","icon":"blocks","href":"/ja/api-capabilities/seedance2/skills"},{"title":"Seedance 2.0 アセットライブラリ(キャラクター一貫動画)","sidebarTitle":"アセットライブラリ","icon":"images","href":"/ja/api-capabilities/seedance2/asset-library"},{"title":"コードでのアセット参照動画生成","sidebarTitle":"アセット参照ガイド","icon":"clapperboard","href":"/ja/api-capabilities/seedance2/asset-reference"},{"title":"アセット優先:画像と動画の入力をより高速かつ確実に","sidebarTitle":"アセット優先ワークフロー","icon":"gauge","href":"/ja/api-capabilities/seedance2/asset-first-workflow"},{"group":"SD よくある質問","icon":"circle-question-mark","pages":[{"title":"Seedanceで「最初/最後のフレームは参照メディアと混在できません」と表示される","sidebarTitle":"最初のフレームと参照の混在","icon":"layers","href":"/ja/faq/seedance-first-frame-mixed-with-reference"},{"title":"Seedanceで「invalid image format」と表示されるが、ブラウザではリンクが開ける","sidebarTitle":"画像リンクは開けるが失敗する","icon":"link","href":"/ja/faq/seedance-image-url-invalid-format"},{"title":"Seedance 2.5:参照から動画への変換と動画編集","icon":"split","href":"/ja/faq/seedance2-reference-vs-edit"},{"title":"送信後にSeedanceの動画タスクをキャンセルできますか?","icon":"video","href":"/ja/faq/seedance-video-task-cancel"},{"title":"task_id で Seedance 動画の実際のコストを確認する方法","icon":"receipt","href":"/ja/faq/seedance-task-cost-lookup"},{"title":"Seedance 2.0 は顔の参照画像をアセットライブラリに自動アップロードしますか? ディープフェイクフィルターは発動しますか?","icon":"banana","href":"/ja/faq/seedance2-asset-face-reference"},{"title":"Seedance 2.0 / 2.5で顔アセットがブロックされるのはなぜですか?","icon":"scan-face","href":"/ja/faq/seedance2-face-asset-whitelist"}]}]},{"group":"Wan3.0動画生成(Alibaba Cloud)","icon":"video","pages":[{"title":"Wan3.0 動画生成 (Alibaba Tongyi Wanxiang)","sidebarTitle":"概要","icon":"video","href":"/ja/api-capabilities/wan3/overview"},{"title":"Wan3.0 動画生成 APIリファレンス","sidebarTitle":"動画生成","openapi":"api-reference/wan3-video-openapi-en.yaml POST /wan/api/v1/services/aigc/video-generation/video-synthesis","icon":"wand-sparkles","href":"/ja/api-capabilities/wan3/video-generation"}]},{"group":"Wan2.7動画生成(Alibaba Cloud)","icon":"videotape","pages":[{"title":"Wan 動画生成(Alibaba Cloud Tongyi Wanxiang)","sidebarTitle":"Wan 概要","icon":"video","href":"/ja/api-capabilities/wan/overview"},{"title":"Wan2.7 テキストから動画への API リファレンス","sidebarTitle":"テキストから動画","openapi":"api-reference/wan-text-to-video-openapi-en.yaml POST /wan/api/v1/services/aigc/video-generation/video-synthesis","icon":"wand-sparkles","href":"/ja/api-capabilities/wan/text-to-video"},{"title":"Wan2.7 画像から動画 API リファレンス","sidebarTitle":"画像から動画","openapi":"api-reference/wan-image-to-video-openapi-en.yaml POST /wan/api/v1/services/aigc/video-generation/video-synthesis","icon":"image","href":"/ja/api-capabilities/wan/image-to-video"},{"title":"Wan2.7-r2v 参照ベース動画生成 API リファレンス","sidebarTitle":"参照ベース動画生成","openapi":"api-reference/wan-reference-to-video-openapi-en.yaml POST /wan/api/v1/services/aigc/video-generation/video-synthesis","icon":"users","href":"/ja/api-capabilities/wan/reference-to-video"},{"title":"Wan2.7 動画編集 API リファレンス","sidebarTitle":"動画編集","openapi":"api-reference/wan-video-edit-openapi-en.yaml POST /wan/api/v1/services/aigc/video-generation/video-synthesis","icon":"scissors","href":"/ja/api-capabilities/wan/video-edit"},{"title":"Wan2.7 と HappyHorse の Video Agent Skill","icon":"blocks","href":"/ja/api-capabilities/wan/skills"},{"title":"Wanの過去バージョン (Wan2.6)","sidebarTitle":"過去バージョン","icon":"rotate-ccw-clock","href":"/ja/api-capabilities/wan/historical-versions"}]},{"group":"HappyHorse動画生成(Alibaba Cloud)","icon":"monitor-play","pages":[{"title":"HappyHorse 動画生成 (Alibaba Cloud)","sidebarTitle":"HappyHorse の概要","icon":"monitor-play","href":"/ja/api-capabilities/happyhorse/overview"},{"title":"HappyHorse テキストから動画 API リファレンス","sidebarTitle":"テキストから動画","openapi":"api-reference/happyhorse-text-to-video-openapi-en.yaml POST /wan/api/v1/services/aigc/video-generation/video-synthesis","icon":"wand-sparkles","href":"/ja/api-capabilities/happyhorse/text-to-video"},{"title":"HappyHorse 画像から動画への API リファレンス","sidebarTitle":"画像から動画へ","openapi":"api-reference/happyhorse-image-to-video-openapi-en.yaml POST /wan/api/v1/services/aigc/video-generation/video-synthesis","icon":"image","href":"/ja/api-capabilities/happyhorse/image-to-video"},{"title":"HappyHorse 参照から動画への API リファレンス","sidebarTitle":"参照から動画へ","openapi":"api-reference/happyhorse-reference-to-video-openapi-en.yaml POST /wan/api/v1/services/aigc/video-generation/video-synthesis","icon":"users","href":"/ja/api-capabilities/happyhorse/reference-to-video"},{"title":"HappyHorse 動画編集 API リファレンス","sidebarTitle":"動画編集","openapi":"api-reference/happyhorse-video-edit-openapi-en.yaml POST /wan/api/v1/services/aigc/video-generation/video-synthesis","icon":"scissors","href":"/ja/api-capabilities/happyhorse/video-edit"},{"title":"HappyHorse 動画エージェントスキル","icon":"blocks","href":"/ja/api-capabilities/happyhorse/skills"}]},{"group":"VEO 3.1(Google)","icon":"clapperboard","pages":[{"title":"VEO 3.1 公式動画生成","sidebarTitle":"VEO 3.1 公式概要","icon":"video","href":"/ja/api-capabilities/veo-3-1-official/overview"},{"title":"VEO 3.1 公式テキストから動画への API","sidebarTitle":"テキストから動画","openapi":"api-reference/veo-3-1-official-text-to-video-openapi-en.yaml POST /v1/videos","icon":"wand-sparkles","href":"/ja/api-capabilities/veo-3-1-official/text-to-video"},{"title":"VEO 3.1 公式画像から動画へのAPI","sidebarTitle":"画像から動画へ","openapi":"api-reference/veo-3-1-official-image-to-video-openapi-en.yaml POST /v1/videos","icon":"image","href":"/ja/api-capabilities/veo-3-1-official/image-to-video"},{"title":"VEO 3.1 公式版とリバースチャネル版の比較","sidebarTitle":"公式版とリバースチャネル版","icon":"scale","href":"/ja/api-capabilities/veo-3-1-official/vs-veo-reverse"}]},{"group":"Grok Imagine 動画生成(xAI)","icon":"camera","pages":[{"title":"Grok Imagine 動画生成","sidebarTitle":"Grok Imagine 動画の概要","icon":"video","href":"/ja/api-capabilities/grok-imagine-video/overview"},{"title":"Grok Imagine 動画生成 API リファレンス","sidebarTitle":"動画生成","openapi":"api-reference/grok-imagine-video-openapi-en.yaml POST /v1/videos","icon":"wand-sparkles","href":"/ja/api-capabilities/grok-imagine-video/video-generation"}]},{"group":"MiniMax H3 動画生成(セルフホスト)","icon":"film","pages":[{"title":"MiniMax-H3 動画生成","sidebarTitle":"MiniMax-H3 概要","icon":"video","href":"/ja/api-capabilities/minimax-h3/overview"},{"title":"MiniMax-H3 動画生成 API リファレンス","sidebarTitle":"動画生成","openapi":"api-reference/minimax-h3-video-openapi-en.yaml POST /hailuo/v2/video_generation","icon":"video","href":"/ja/api-capabilities/minimax-h3/video-generation"}]},{"group":"Oxygen 動画生成(AZ8)","icon":"clapperboard","pages":[{"title":"Oxygen 動画生成","sidebarTitle":"Oxygen 概要","icon":"video","href":"/ja/api-capabilities/oxygen/overview"},{"title":"Oxygen 動画生成 API リファレンス","sidebarTitle":"動画生成","openapi":"api-reference/oxygen-video-openapi-en.yaml POST /videos","icon":"video","href":"/ja/api-capabilities/oxygen/video-generation"}]}]},{"group":"マルチモーダル理解API","icon":"eye","pages":[{"title":"ビジョン理解(画像認識)API","icon":"eye","href":"/ja/api-capabilities/vision-understanding"},{"title":"動画理解 API","icon":"video","href":"/ja/api-capabilities/video-understanding"},{"title":"画像理解リクエストがタイムアウトし続ける — 画像が大きすぎますか?","icon":"image","href":"/ja/faq/vision-image-too-large"}]},{"group":"テキスト生成","icon":"file-text","pages":[{"title":"テキスト生成(チャット補完)","icon":"message-square","href":"/ja/api-capabilities/text-generation"},{"group":"Gemini 4 Argon","icon":"sparkles","pages":[{"title":"Gemini 4 Argon テキスト生成","sidebarTitle":"Gemini 4 Argon 概要","icon":"sparkles","href":"/ja/api-capabilities/gemini-4-argon/overview"}]},{"group":"GPT-6 Astra","icon":"sparkles","pages":[{"title":"GPT-6 Astra テキスト生成","sidebarTitle":"GPT-6 Astra 概要","icon":"sparkles","href":"/ja/api-capabilities/gpt-6-astra/overview"}]},{"group":"DeepSeek V4 Flash Vision","icon":"eye","pages":[{"title":"DeepSeek V4 Flash Vision","sidebarTitle":"概要","icon":"eye","href":"/ja/api-capabilities/deepseek-v4-flash-vision/overview"},{"title":"DeepSeek V4 Flash Vision チャット APIリファレンス","sidebarTitle":"チャットプレイグラウンド","openapi":"api-reference/deepseek-v4-flash-vision-chat-openapi-en.yaml POST /v1/chat/completions","icon":"terminal","href":"/ja/api-capabilities/deepseek-v4-flash-vision/chat-completions"},{"title":"DeepSeek V4 Flash ビジョン メッセージ API リファレンス","sidebarTitle":"メッセージ プレイグラウンド","openapi":"api-reference/deepseek-v4-flash-vision-messages-openapi-en.yaml POST /v1/messages","icon":"terminal","href":"/ja/api-capabilities/deepseek-v4-flash-vision/messages"}]},{"group":"DeepSeek V4 Flash","icon":"zap","pages":[{"title":"DeepSeek V4 Flash テキスト生成","sidebarTitle":"概要","icon":"zap","href":"/ja/api-capabilities/deepseek-v4-flash/overview"},{"title":"DeepSeek V4 Flash Chat API リファレンス","sidebarTitle":"Chat Playground","openapi":"api-reference/deepseek-v4-flash-chat-openapi-en.yaml POST /v1/chat/completions","icon":"terminal","href":"/ja/api-capabilities/deepseek-v4-flash/chat-completions"},{"title":"DeepSeek V4 Flash Responses API リファレンス","sidebarTitle":"Responses プレイグラウンド","openapi":"api-reference/deepseek-v4-flash-responses-openapi-en.yaml POST /v1/responses","icon":"git-fork","href":"/ja/api-capabilities/deepseek-v4-flash/responses"}]},{"group":"DeepSeek Search \u0026 Fetch","icon":"search","pages":[{"title":"DeepSeek Web検索およびFetch API","sidebarTitle":"概要","icon":"search","href":"/ja/api-capabilities/deepseek-search-fetch/overview"},{"title":"DeepSeek Web 検索 API リファレンス","sidebarTitle":"検索プレイグラウンド","openapi":"api-reference/deepseek-search-openapi-en.yaml POST /v1/tools/search","icon":"terminal","href":"/ja/api-capabilities/deepseek-search-fetch/search-api"},{"title":"DeepSeek Web Fetch API リファレンス","sidebarTitle":"Fetch プレイグラウンド","openapi":"api-reference/deepseek-fetch-openapi-en.yaml POST /v1/tools/fetch","icon":"terminal","href":"/ja/api-capabilities/deepseek-search-fetch/fetch-api"}]},{"group":"Seed 2.1 Turbo","icon":"zap","pages":[{"title":"Seed 2.1 Turbo テキスト生成","sidebarTitle":"概要","icon":"message-square","href":"/ja/api-capabilities/dola-seed-2-1-turbo/overview"},{"title":"Seed 2.1 Turbo Chat API リファレンス","sidebarTitle":"Chat Playground","openapi":"api-reference/dola-seed-2-1-turbo-chat-openapi-en.yaml POST /v1/chat/completions","icon":"terminal","href":"/ja/api-capabilities/dola-seed-2-1-turbo/chat-completions"},{"title":"Seed 2.1 Turbo Responses API リファレンス","sidebarTitle":"Responses プレイグラウンド","openapi":"api-reference/dola-seed-2-1-turbo-responses-openapi-en.yaml POST /v1/responses","icon":"messages-square","href":"/ja/api-capabilities/dola-seed-2-1-turbo/responses"}]},{"group":"Gemini Flash シリーズ","icon":"sparkles","pages":[{"title":"Gemini 3.8 Flash テキスト生成","sidebarTitle":"Gemini 3.8 Flash 概要","icon":"sparkles","href":"/ja/api-capabilities/gemini-3-8-flash/overview"},{"title":"Gemini 3.6 Flash テキスト生成","sidebarTitle":"Gemini 3.6 Flash 概要","icon":"sparkles","href":"/ja/api-capabilities/gemini-3-6-flash/overview"},{"title":"Gemini 3.6 Flash ネイティブ API リファレンス","sidebarTitle":"3.6 ネイティブプレイグラウンド","openapi":"api-reference/gemini-3-6-flash-native-openapi-en.yaml POST /v1beta/models/gemini-3.6-flash:generateContent","icon":"terminal","href":"/ja/api-capabilities/gemini-3-6-flash/generate-content"},{"title":"Gemini 3.6 Flash チャット API リファレンス","sidebarTitle":"3.6 チャットプレイグラウンド","openapi":"api-reference/gemini-3-6-flash-chat-openapi-en.yaml POST /v1/chat/completions","icon":"terminal","href":"/ja/api-capabilities/gemini-3-6-flash/chat-completions"}]},{"group":"Gemini 3.5 Flash-Lite","icon":"feather","pages":[{"title":"Gemini 3.5 Flash-Lite テキスト生成","sidebarTitle":"概要","icon":"feather","href":"/ja/api-capabilities/gemini-3-5-flash-lite/overview"},{"title":"Gemini 3.5 Flash-Lite ネイティブ API リファレンス","sidebarTitle":"ネイティブ Playground","openapi":"api-reference/gemini-3-5-flash-lite-native-openapi-en.yaml POST /v1beta/models/gemini-3.5-flash-lite:generateContent","icon":"terminal","href":"/ja/api-capabilities/gemini-3-5-flash-lite/generate-content"},{"title":"Gemini 3.5 Flash-Lite Chat API リファレンス","sidebarTitle":"Chat プレイグラウンド","openapi":"api-reference/gemini-3-5-flash-lite-chat-openapi-en.yaml POST /v1/chat/completions","icon":"terminal","href":"/ja/api-capabilities/gemini-3-5-flash-lite/chat-completions"}]},{"group":"Qwen3シリーズ","icon":"puzzle","pages":[{"title":"Qwen3.8-Max テキスト生成","sidebarTitle":"概要","icon":"puzzle","href":"/ja/api-capabilities/qwen-3-8/overview"},{"title":"Qwen3.8-Max Chat API リファレンス","sidebarTitle":"チャットプレイグラウンド","openapi":"api-reference/qwen-3-8-max-chat-openapi-en.yaml POST /v1/chat/completions","icon":"terminal","href":"/ja/api-capabilities/qwen-3-8/chat-completions"},{"title":"Qwen3.6 テキストモデルシリーズ(レガシー)","sidebarTitle":"Qwen3.6(レガシー)","icon":"puzzle","href":"/ja/api-capabilities/qwen-3-6/overview"}]},{"group":"Kimi K3.1 Pro","icon":"moon","pages":[{"title":"Kimi K3.1 Pro 概要","sidebarTitle":"概要","icon":"brain","href":"/ja/api-capabilities/kimi-k3-1/overview"}]},{"title":"Kimi K2.5 テキスト生成","sidebarTitle":"Kimi K2.5","icon":"bot","href":"/ja/api-capabilities/kimi-k2-5"}]},{"group":"音声API(公式)","icon":"audio-lines","pages":[{"title":"リアルタイム音声(WebSocket)","sidebarTitle":"リアルタイム音声の概要","icon":"audio-lines","href":"/ja/api-capabilities/realtime/overview"}]},{"group":"検索と安全性","icon":"search","pages":[{"title":"テキスト埋め込み API","icon":"vector-square","href":"/ja/api-capabilities/text-embedding"},{"title":"実践的なEmbeddingチューニング","sidebarTitle":"Embeddingチューニング","icon":"sliders-horizontal","href":"/ja/api-capabilities/embedding-best-practices"},{"group":"リランク","icon":"list-ordered","pages":[{"title":"bge-reranker-v2-m3 テキスト再ランキング","sidebarTitle":"概要","icon":"list-ordered","href":"/ja/api-capabilities/rerank/overview"},{"title":"再ランキング API リファレンス","sidebarTitle":"プレイグラウンド","openapi":"api-reference/bge-reranker-v2-m3-rerank-openapi-en.yaml POST /v1/rerank","icon":"terminal","href":"/ja/api-capabilities/rerank/rerank-api"},{"title":"実践における RAG チューニング","sidebarTitle":"RAG チューニング","icon":"sliders-horizontal","href":"/ja/api-capabilities/rerank/rag-best-practices"}]},{"title":"テキストモデレーション","icon":"shield-check","href":"/ja/api-capabilities/text-moderation"}]}]},{"tab":"活用例","icon":"layout-grid","pages":[{"title":"活用例","href":"/ja/scenarios"}]},{"tab":"FAQ","icon":"circle-question-mark","pages":[{"title":"FAQ","href":"/ja/faq"}]},{"tab":"プロモーション","icon":"gift","pages":[{"title":"プロモーション","href":"/ja/faq/recharge-promotions"}]},{"tab":"モデル料金","icon":"circle-dollar-sign","pages":[{"title":"モデル料金","href":"/ja/models"}]}]},{"language":"ko","banner":{"content":"이 페이지는 AI로 번역되었습니다. 내용이 다를 경우 [English 버전](/en)을 기준으로 하십시오.","dismissible":true},"footer":{"socials":{"website":"https://api.apiyi.com"},"links":[{"header":"AI 통합","items":[{"label":"skill.md","href":"https://docs.apiyi.com/skill.md"},{"label":"llms.txt","href":"https://docs.apiyi.com/llms.txt"},{"label":"llms-full.txt","href":"https://docs.apiyi.com/llms-full.txt"},{"label":"model-registry.json","href":"https://docs.apiyi.com/model-registry.json"},{"label":"AI 개발자 키트(중국어)","href":"/developer-kit"},{"label":"AI Developer Kit (EN)","href":"/en/developer-kit"}]},{"header":"사용자 후기 / Wall of Love","items":[{"label":"사용자 후기(중국어)","href":"/wall-of-love"},{"label":"Wall of Love (영문)","href":"/en/wall-of-love"}]}]},"navbar":{"links":[{"href":"https://api.apiyi.com","label":"홈"},{"href":"https://imagen.apiyi.com","label":"AI 이미지 생성"},{"href":"https://icover.ai","label":"AI 동영상 생성"}],"primary":{"type":"button","label":"콘솔","href":"https://api.apiyi.com/account/profile"}},"pages":[{"title":"ko","href":"/ko/api-capabilities/seedance2/video-generation"}]},{"language":"ru","banner":{"content":"Эта страница переведена с помощью ИИ. При расхождениях ориентируйтесь на [английскую версию](/en).","dismissible":true},"footer":{"socials":{"website":"https://api.apiyi.com"},"links":[{"header":"AI-интеграция","items":[{"label":"skill.md","href":"https://docs.apiyi.com/skill.md"},{"label":"llms.txt","href":"https://docs.apiyi.com/llms.txt"},{"label":"llms-full.txt","href":"https://docs.apiyi.com/llms-full.txt"},{"label":"model-registry.json","href":"https://docs.apiyi.com/model-registry.json"},{"label":"Набор AI-разработчика (кит.)","href":"/developer-kit"},{"label":"AI Developer Kit (EN)","href":"/en/developer-kit"}]},{"header":"Отзывы пользователей / Wall of Love","items":[{"label":"Отзывы пользователей (на китайском)","href":"/wall-of-love"},{"label":"Wall of Love (EN)","href":"/en/wall-of-love"}]}]},"navbar":{"links":[{"href":"https://api.apiyi.com","label":"Главная"},{"href":"https://imagen.apiyi.com","label":"Генерация изображений"},{"href":"https://icover.ai","label":"Генерация видео"}],"primary":{"type":"button","label":"Консоль","href":"https://api.apiyi.com/account/profile"}},"pages":[{"title":"ru","href":"/ru/api-capabilities/seedance2/video-generation"}]}]},"title":"Seedance 2.0 / 2.5 動画生成 API リファレンス - API易文档中心","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-Og7hgu7u.js","dist-BaREnp3o.js","lib--scc4DXi.js","lib-B8HbPgcC.js","clsx-CefdjKz2.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-DKJwRUt2.js","utils-CWD_VS3u.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-oFjciODD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C76WsxC3.js","snippetPresets-DvPMxpX_.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CuNQfndH.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BVFpVUoF.js","shallow-t59Jg5Kr.js","getApiPlaygroundDisplay-C_JZ4amX.js","CodeSnippet-CLRDnx_h.js","CodeSnippets-C2myU4kc.js","Page-7TwLLapg.js","getPastedJson-B-JaVXw7.js","icon-BA-iDhH3.js","MethodPill-D4qZABFp.js","DuplicateIcon-THIDKO1O.js","createIcon-CYYJwgFd.js","DynamicMarkdown-UGQuxDKp.js","SectionHeading-jYELb23h.js","axios-vUo_bRtp.js","Markdown-DKsLa3wy.js","AssistantPageLink-sgx_0XzF.js"]}