{"openapi":"3.0.2","info":{"title":"byteplus/seedance-1-0-pro-250528","description":"The request body Comfy Router accepts for the model \"byteplus/seedance-1-0-pro-250528\", and the response body it returns. The INPUT schema is the same schema the server validates a call against before it reaches the provider, so what is published and what is enforced cannot differ. `x-comfy-router-input-modalities` records the media kinds the model is documented to accept; the request schema is shared across sibling models and may admit media kinds this model ignores. The OUTPUT schema describes the provider's native result document exactly as Router returns it: Router does not validate, narrow or re-envelope the response, so the output schema is descriptive rather than enforced, and Comfy owns no output shape of its own.","version":"65268cded828"},"paths":{"/v2/models/byteplus/seedance-1-0-pro-250528":{"post":{"operationId":"runRouterModel","summary":"Run byteplus/seedance-1-0-pro-250528 synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/BytePlusVideoGenerationInputs"},{"properties":{"duration":{"description":"Video duration in seconds. Seedance 1.0 pro and 1.0 pro fast: [2,12].","enum":[2,3,4,5,6,7,8,9,10,11,12],"type":"integer"}},"type":"object"}],"description":"Comfy Router input schema for Seedance 1.0 pro and 1.0 pro fast: the shared BytePlus Seedance / Dreamina request fields, with `duration` narrowed to the values this model accepts.","example":{"content":[{"text":"A red fox trotting through a snowy pine forest","type":"text"}],"duration":5,"ratio":"16:9","resolution":"720p"},"required":["content"]}}}},"responses":{"200":{"description":"OK - the model's native JSON output, returned unchanged; the schema describes the provider's terminal result document as Router returns it.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/BytePlusVideoGenerationQueryResponse"}],"description":"Comfy Router output schema for the BytePlus Seedance video models: the terminal task-query document, forwarded unchanged EXCEPT for the two re-hosted `content` URLs described below and, for a workspace Comfy has opted in, the `content.upstream_*` fields - every other field is BytePlus's own. The operation is submit-and-poll and Router polls on the caller's behalf, so the body a caller receives is the finished task (`status: succeeded`) rather than the task handle the underlying submit returns.\nThe generated video's download URL is at `content.video_url`, present once the task succeeds. A failed task carries `error.code` and `error.message` instead; `status` is BytePlus's own vocabulary (queued, running, cancelled, succeeded, failed, expired), forwarded unchanged.\nThat URL is RE-HOSTED: Router copies the finished video onto Comfy storage and answers a Comfy-signed URL valid for up to 24 hours in place of BytePlus's own, which BytePlus clears 24 hours after the task and caps at 100 downloads on some models. Exactly two leaves are rewritten this way - `content.video_url` and `content.last_frame_url`, both modelled here. Any OTHER asset URL a task carries keeps BytePlus's own link and is NOT flagged as non-durable, so a stored or replayed document can still hand back a link that BytePlus has since cleared.\nDurability is per leaf, not per response: a leaf whose re-host could not be performed keeps BytePlus's own URL rather than a Comfy one, and the other is unaffected - so a caller that stores or replays this document should not assume every URL in it outlives the call. 24 hours is the CEILING, not a guarantee: the Comfy link is signed for 24 hours from the moment it is minted, and Router memoises it for 23 hours, so a later poll or an `Idempotency-Key` replay can hand back a link with as little as an hour left. Either way the link expires, so download the asset rather than storing it.\nSeedance 2.x only, for a workspace Comfy has opted in server-side (there is no request parameter, and nobody is opted in by default): `content.upstream_video_url` and `content.upstream_last_frame_url` carry BytePlus's own URLs byte for byte beside the re-hosted ones, and `content.upstream_expires_at` says when they stop working - 24 hours after generation. Each is a bearer credential for its object, and on Seedance 2.5 it is capped at 100 downloads, one of which Router's re-host consumes. Absent once BytePlus clears its URLs.","example":{"content":{"last_frame_url":"https://example.invalid/byteplus/seedance-1-0-pro-250528/last-frame","video_url":"https://example.invalid/byteplus/seedance-1-0-pro-250528/generated.mp4"},"created_at":1767225600,"duration":5,"error":null,"id":"3f7a1b28-5c0d-4e91-8a6f-1b2c3d4e5f60","model":"seedance-1-0-pro-250528","output_format":"mp4","resolution":"1080p","seed":1234567890123,"status":"succeeded","updated_at":1767225730}}}}}}}}},"components":{"schemas":{"BytePlusErrorCode":{"description":"Upstream ModelArk error code. SensitiveContentDetected, InputTextSensitiveContentDetected, InputImageSensitiveContentDetected, InputVideoSensitiveContentDetected, InputAudioSensitiveContentDetected, OutputTextSensitiveContentDetected, OutputImageSensitiveContentDetected, OutputVideoSensitiveContentDetected and OutputAudioSensitiveContentDetected identify content-policy refusals. A family may have a dot-separated reason, such as InputImageSensitiveContentDetected.PrivacyInformation, OutputVideoSensitiveContentDetected.PolicyViolation or OutputImageSensitiveContentDetected.DeepFake. This is an open string, not an enum: other codes describe validation and provider failures. Router recognizes policy families in HTTP 400 error envelopes and HTTP 200 failed-task responses without overriding transport failures.","externalDocs":{"url":"https://docs.byteplus.com/en/docs/ModelArk/1299023"},"type":"string"},"BytePlusVideoGenerationContent":{"oneOf":[{"properties":{"type":{"enum":["text"]}},"required":["text"]},{"properties":{"type":{"enum":["image_url"]}},"required":["image_url"]},{"properties":{"type":{"enum":["video_url"]}},"required":["video_url"]},{"properties":{"type":{"enum":["audio_url"]}},"required":["audio_url"]},{"properties":{"type":{"enum":["draft_task"]}},"required":["draft_task"]}],"properties":{"audio_url":{"description":"Input audio object. Only Seedance 2.5, 2.0, 2.0 fast \u0026 2.0 mini support audio input. Seedance 2.0, 2.0 fast \u0026 2.0 mini cannot use audio alone - they must include at least 1 image or video; Seedance 2.5 supports audio-only input.","properties":{"url":{"description":"Audio URL, Base64 encoding, or Asset ID.\nAudio URL: Public URL of the audio (wav, mp3).\nBase64: Format data:audio/\u003cformat\u003e;base64,\u003ccontent\u003e\nAsset ID: Format asset://\u003cASSET_ID\u003e\n","type":"string"}},"required":["url"],"type":"object"},"draft_task":{"description":"Seedance 2.5 only. The Draft task to render as the final video. It must be the only content item.\nThe final video reuses the Draft task's prompt, input assets, duration, ratio, seed, generate_audio and omni_reference_task_type; do not send them again. Set resolution on this request for the final's output tier, including 4k; when it is omitted the final is 1080p.\n","properties":{"id":{"description":"The task ID returned when the Draft video was created with `draft` set to true.","type":"string"}},"required":["id"],"type":"object"},"image_url":{"properties":{"url":{"description":"Image content for image-to-video generation (when type is \"image_url\")\nImage URL: Make sure that the image URL is accessible.\nBase64-encoded content: Format must be data:image/\u003cformat\u003e;base64,\u003ccontent\u003e\nAsset ID: Format asset://\u003cASSET_ID\u003e\n","type":"string"}},"required":["url"],"type":"object"},"role":{"description":"The role/position of the content item.\nFor images: first_frame, last_frame, or reference_image.\nFor videos: reference_video (Seedance 2.5, 2.0, 2.0 fast \u0026 2.0 mini only).\nFor audio: reference_audio (Seedance 2.5, 2.0, 2.0 fast \u0026 2.0 mini only).\n","enum":["first_frame","last_frame","reference_image","reference_video","reference_audio"],"type":"string"},"text":{"description":"The input text information for the model. Includes text prompt and optional parameters.\n\nText prompt (required): Description of the video to be generated using Chinese and English characters.\n\nParameters (optional): Add --[parameters] after the text prompt to control video specifications:\n- --resolution (--rs): 480p, 720p, 1080p (default: 720p)\n- --ratio (--rt): 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, 9:21, adaptive (default: 16:9 or adaptive)\n- --duration (--dur): 3-12 seconds (default: 5)\n- --framepersecond (--fps): 24 (default: 24)\n- --watermark (--wm): true/false (default: false)\n- --seed (--seed): -1 to 2^32-1 (default: -1)\n- --camerafixed (--cf): true/false (default: false)\n\nExample: \"A beautiful landscape --ratio 16:9 --resolution 720p --duration 5\"\n\nComfy-side guardrail, not a BytePlus constraint. BytePlus publishes no\ntext-length limit and accepted 40,000 characters under test (2026-09-17).\nIt counts characters, not bytes, so a multi-byte prompt may be several\ntimes this size on the wire. It bounds this one field, not the request:\n`content` is an array, and the per-request body limit is what bounds the\nwhole document. Comfy Router (/v2/models/byteplus/{model}) is the surface\nthat enforces it; on a direct v1 /proxy call BytePlus's own validator\nanswers instead. Set far above real traffic so it never adjudicates a\ngenuine prompt — raise it if a caller needs more.\n","maxLength":100000,"type":"string"},"type":{"description":"The type of the input content","enum":["text","image_url","video_url","audio_url","draft_task"],"type":"string"},"video_url":{"description":"Input video object. Only Seedance 2.5, 2.0, 2.0 fast \u0026 2.0 mini support video input.","properties":{"url":{"description":"Video URL or Asset ID.\nVideo URL: Public URL of the video (mp4, mov).\nAsset ID: Format asset://\u003cASSET_ID\u003e\n","type":"string"}},"required":["url"],"type":"object"}},"required":["type"],"type":"object"},"BytePlusVideoGenerationInputs":{"description":"Request body for a BytePlus Seedance / Dreamina video generation task. The `example` below is the COMFY ROUTER form and deliberately omits `model`, which Router fills from the `{model}` path segment; a direct v1 call to POST /proxy/byteplus/api/v3/contents/generations/tasks must add `model` to it. This text-to-video example omits the `content` item with `type: image_url` and an `image_url.url` that an image-to-video call supplies; text-only models must omit that image item.\n`content` is the whole `required` floor, and it is the floor the v1 surface already published and videoGenerationProxy's Rewrite already refuses an empty value for. Everything else BytePlus accepts varies by model — the per-model resolutions, durations, ratios and input kinds are documented on the individual fields — so the enums and bounds below are the union BytePlus admits across the family and BytePlus stays the authority on which member accepts which value. The exception is `duration`, which Comfy Router also enforces per model.","example":{"content":[{"text":"A red fox trotting through a snowy pine forest","type":"text"}],"duration":5,"ratio":"16:9","resolution":"720p"},"properties":{"callback_url":{"description":"Ignored. Accepted for compatibility with the BytePlus request shape, but removed before the task is submitted, so no callback is ever sent; poll the task status route for the result instead.","format":"uri","type":"string"},"content":{"description":"The input content for the model to generate a video","items":{"$ref":"#/components/schemas/BytePlusVideoGenerationContent"},"minItems":1,"type":"array"},"draft":{"default":false,"description":"Seedance 2.5 only. Generates a 480p Draft video; resolution must be 480p.\nPass the returned task ID in a `draft_task` content item to render the final video. That request sets the final's resolution, including 4k; when resolution is omitted the final is 1080p. The Draft task ID stays valid for 7 days.\n","type":"boolean"},"duration":{"anyOf":[{"enum":[-1]},{"maximum":30,"minimum":2}],"description":"Video duration in seconds. Seedance 2.5: [4,30] or -1 (auto; video editing tasks support only -1 — see `omni_reference_task_type`). Seedance 2.0, 2.0 fast \u0026 2.0 mini: [4,15] or -1 (auto). Seedance 1.0: [2,12].\n","type":"integer"},"execution_expires_after":{"description":"Task timeout threshold in seconds. Default 172800 (48h). Range: [3600, 259200].\n","maximum":259200,"minimum":3600,"type":"integer"},"generate_audio":{"default":true,"description":"Supported by Seedance 2.5, 2.0, 2.0 fast, and 2.0 mini. Whether the generated video includes audio synchronized with the visuals.\ntrue: The model outputs a video with synchronized audio.\nfalse: The model outputs a silent video.\nOn models that support it, the generated audio track is content-checked by the provider separately from the video; a refusal there is reported as `content_policy_violation` and, because the audio differs each run, can be intermittent for an input the provider otherwise accepts. Send `false` for a silent video if that happens; this helps only when the audio was the refused modality, which a synchronous Router response names as `refusal_subject: output_audio` (a queued request does not identify it yet). A Seedance 2.5 final render inherits `generate_audio` from its Draft task, so recreate the Draft with `false` instead.\n","type":"boolean"},"model":{"description":"The ID of the model to call. Supported models: seedance-1-0-pro-250528, seedance-1-0-pro-fast-251015, dreamina-seedance-2-0-260128, dreamina-seedance-2-0-fast-260128, dreamina-seedance-2-0-mini and dreamina-seedance-2-5-260628. A direct v1 call to POST /proxy/byteplus/api/v3/contents/generations/tasks MUST supply it — the proxy refuses any other value, and an omitted one, with a 400. It is NOT in this schema's `required` list because Comfy Router fills it from the `{model}` path segment of /v2/models/byteplus/{model}, so a Router caller omits it.","nullable":true,"type":"string"},"omni_reference_task_type":{"description":"Seedance 2.5 only. The task the reference media is used for. Omitted means auto: the model infers the task from the prompt and the reference media, and a setting that conflicts with its reading (such as `duration` or `ratio` on what it reads as an edit) is resolved only after generation has started, which is billed.\nreference: Generates a new video of the requested `duration`, guided by the reference images, videos and audio.\nedit: Changes the connected reference video. The output keeps the source clip's own length and aspect ratio, so send `duration: -1` and omit `ratio` (or send `adaptive`).\nextend: Continues the reference video. The output is only the newly generated segment, of the requested `duration`; its aspect ratio follows the clip.\nAn explicit value is validated by the provider at submit (`InvalidParameter.TaskTypeConstraint` / `TaskTypeMismatch`), so a value that does not fit the request fails before generation starts and is not billed; auto has no such check. That check runs on the native BytePlus leg only: an alternate provider leg (on fallback, or picked with `model_provider`) has no task-type field, drops the value, and that provider infers the task itself, as with auto. The drop is disclosed in `X-Comfy-Router-Dropped-Params`, on the synchronous run route's response and on the queued submit's `201`. The queued route has no fallback, so it reaches an alternate leg only through `model_provider`.\n","enum":["reference","edit","extend"],"type":"string"},"output_format":{"default":"mp4","description":"Seedance 2.5 only. Container format of the output video.\nmp4: General-purpose container (H.264/AAC, yuv420p) with broad compatibility and smaller file size.\nmov: Professional container (H.264 High 4:4:4 Predictive/PCM, yuv444p) with high color precision, suited for post-production; larger file size.\n","enum":["mp4","mov"],"type":"string"},"ratio":{"description":"Aspect ratio of the generated video. Seedance 2.0, 2.0 fast \u0026 2.0 mini default: adaptive.\nSeedance 2.5 first-frame / first-last-frame generation: the output follows the first frame's aspect ratio, so only `adaptive` (or omitting the field) is accepted; a concrete ratio is refused with a 400 before dispatch. Seedance 2.0 accepts a concrete ratio in those modes.\n","enum":["16:9","4:3","1:1","3:4","9:16","21:9","9:21","adaptive"],"type":"string"},"resolution":{"description":"Video resolution. Seedance 2.5, 2.0, 2.0 fast \u0026 2.0 mini, 1.0 lite default: 720p. Seedance 1.0 pro \u0026 pro-fast default: 1080p.\nNote: Seedance 2.0, 2.0 fast \u0026 2.0 mini do not support 1080p. Seedance 2.5 supports 480p, 720p, 1080p, and 4k.\n","enum":["480p","720p","1080p","4k"],"type":"string"},"return_last_frame":{"default":false,"description":"Whether to return the last frame image of the generated video.\ntrue: Returns the last frame image of the generated video. After setting this parameter to true, you can obtain the last frame image by calling the Querying the information about a video generation task. The last frame image is in PNG format, with its pixel width and height consistent with those of the generated video, and it contains no watermarks. Using this parameter allows the generation of multiple consecutive videos: the last frame of the previously generated video is used as the first frame of the next video task, enabling quick generation of multiple consecutive videos.\nfalse: Does not return the last frame image of the generated video.\n","type":"boolean"},"seed":{"description":"Seed integer for controlling randomness. Range: [-1, 2^32-1]. -1 uses a random seed.\n","maximum":4294967295,"minimum":-1,"type":"integer"},"service_tier":{"description":"Service tier for processing. Seedance 2.5, 2.0 \u0026 2.0 fast do not support flex (offline inference).\n","enum":["default","flex"],"type":"string"},"watermark":{"default":false,"description":"Whether the generated video includes a watermark.","type":"boolean"}},"required":["content"],"type":"object"},"BytePlusVideoGenerationQueryResponse":{"properties":{"content":{"description":"The output after the video generation task is completed, which contains the download URL of the output video and, when BytePlus returns one, the download URL of its last frame. Both `video_url` and `last_frame_url` are RE-HOSTED onto Comfy storage; every other field here is BytePlus's own. Nullable - BytePlus clears the URLs 24 hours after the task, and a succeeded document polled after that can carry `content` absent or null.","nullable":true,"properties":{"last_frame_url":{"description":"Download URL for the last frame of the generated video, returned when the request set `return_last_frame`. Do not infer the image format from this URL: BytePlus documents the last frame as PNG on the request side, Router re-hosts whatever bytes it is served and types them from the upstream Content-Type or a content sniff, and `image/jpeg` is only the last-resort fallback when both fail. Router re-hosts the last frame onto Comfy storage and rewrites this field, so it is normally a Comfy-signed URL valid for up to 24 hours - signed for 24 hours when minted and replayed from a 23-hour memo, so a later poll can hand back one with as little as an hour left. When the re-host could not be performed the field keeps BytePlus's own URL instead, which BytePlus clears 24 hours after the task. Either way the link expires, so download the frame rather than storing the URL.","type":"string"},"output_format":{"description":"Container format of the generated video (mp4 or mov), when BytePlus nests it inside `content`. Seedance models more commonly return it as a TOP-LEVEL sibling of `content` - see the top-level `output_format` field - and Router reads whichever of the two is present.","type":"string"},"upstream_expires_at":{"description":"RFC 3339 time the upstream URLs stop working: the earliest signing time plus validity the URLs themselves carry, never later than the task's `updated_at` plus 24 hours (BytePlus's documented URL life) when `updated_at` is present; otherwise the task's `updated_at` plus 24 hours. Present only when `upstream_video_url` or `upstream_last_frame_url` is, and omitted when neither source gives a time. Unrelated to the lifetime of the re-hosted `video_url` / `last_frame_url`.","format":"date-time","type":"string"},"upstream_last_frame_url":{"description":"BytePlus's own download URL for the last frame, returned byte for byte beside the re-hosted `last_frame_url` on the same terms as `upstream_video_url`: opted-in workspaces only, Seedance 2.x only, absent once BytePlus clears it, and a bearer credential until `upstream_expires_at`.","type":"string"},"upstream_video_url":{"description":"BytePlus's own download URL for the output video, returned byte for byte beside the re-hosted `video_url`. Present ONLY for Seedance 2.x tasks polled by a workspace Comfy has opted in server-side (there is no request parameter); absent for everyone else, including a credential that resolves to no workspace (such as a legacy API key not scoped to one), and absent once BytePlus clears its URLs 24 hours after generation. It is a presigned object-storage URL and therefore a bearer credential: anyone holding it can download the video until it expires, so treat it like a secret. It expires at `upstream_expires_at`, and on Seedance 2.5 BytePlus caps it at 100 downloads, one of which Router's own re-host consumes.","type":"string"},"video_url":{"description":"Download URL for the output video. Router re-hosts the video onto Comfy storage and rewrites this field, so it is normally a Comfy-signed URL valid for up to 24 hours - signed for 24 hours when minted and replayed from a 23-hour memo, so a later poll can hand back one with as little as an hour left. When the re-host could not be performed the field keeps BytePlus's own URL instead, which BytePlus clears 24 hours after the task and caps at 100 downloads on some models. Either way the link expires, so download the video rather than storing the URL.","type":"string"}},"type":"object"},"created_at":{"description":"The time when the task was created. The value is a UNIX timestamp in seconds.","type":"integer"},"duration":{"description":"The duration of the generated video in seconds. Declared as a number rather than an integer because BytePlus is not consistent about it - video tasks have been observed returning whole seconds and sibling BytePlus surfaces report fractional durations - so a client must not assume an integral value. BytePlus's own field, returned on succeeded video tasks and forwarded unchanged.","type":"number"},"error":{"description":"The error information. If the task succeeds, null is returned. If the task fails, the error information is returned.","nullable":true,"properties":{"code":{"$ref":"#/components/schemas/BytePlusErrorCode"},"message":{"description":"The error message","type":"string"}},"type":"object"},"id":{"description":"The ID of the video generation task","type":"string"},"model":{"description":"The name and version of the model used by the task","type":"string"},"output_format":{"description":"Container format of the generated video (mp4 or mov), returned at the TOP LEVEL as a sibling of `content` - this is where the Seedance video task query returns it. BytePlus's own field, forwarded unchanged.","type":"string"},"resolution":{"description":"The resolution of the generated video, for example `1080p`. BytePlus's own field, returned on succeeded video tasks and forwarded unchanged.","type":"string"},"seed":{"description":"The generation seed actually used for the task. BytePlus's own field, returned on succeeded video tasks and forwarded unchanged.","format":"int64","type":"integer"},"status":{"description":"The state of the task","enum":["queued","running","cancelled","succeeded","failed","expired"],"type":"string"},"updated_at":{"description":"The time when the task was last updated. The value is a UNIX timestamp in seconds.","type":"integer"},"usage":{"description":"The token usage for the request","properties":{"completion_tokens":{"description":"The number of tokens generated by the model","type":"integer"},"total_tokens":{"description":"For the video generation model, the number of input tokens is not calculated and defaults to 0. Therefore, total_tokens = completion_tokens.","type":"integer"}},"type":"object"}},"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"byteplus/seedance-1-0-pro-250528","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["text","image"],"x-comfy-router-output-modalities":["video"]}
