{"openapi":"3.0.2","info":{"title":"byteplus/seed-2-0-pro-260328","description":"The request body Comfy Router accepts for the model \"byteplus/seed-2-0-pro-260328\", 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":"85225483cb23"},"paths":{"/v2/models/byteplus/seed-2-0-pro-260328":{"post":{"operationId":"runRouterModel","summary":"Run byteplus/seed-2-0-pro-260328 synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/BytePlusResponseInputs"},{"required":["input"],"type":"object"}],"description":"Request body Comfy Router accepts for `byteplus/seed-2-0-pro-260328` on POST /v2/models/byteplus/seed-2-0-pro-260328, and the schema `routervalidate.Guard` validates the call against before it reaches BytePlus. It is the Seed 2.0 PRO tier.\nIt composes BytePlusResponseInputs, which is the same field set the v1 `POST /proxy/byteplus/api/v3/responses` request body composes, so the two surfaces cannot drift into two shapes. They differ in `required` alone: this one omits `model`, because Router fills it from the `{model}` path segment after Guard has run, while the v1 surface has no path segment supplying it and keeps requiring it.\n`reasoning.encrypted_content` in `include` is documented by BytePlus as supported from seed-2-0-pro-260328; Comfy does not enforce that here, so the field is accepted on every one of the three and BytePlus remains the authority on which model honours it.","example":{"input":"Reply with the single word: ok"}}}}},"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/BytePlusResponseObject"}],"description":"Comfy Router output schema for the BytePlus Seed 2.0 text models: the `BytePlusResponseObject` document `POST /proxy/byteplus/api/v3/responses` answers, forwarded unchanged. The operation is DIRECT-RETURN — it is classified as direct-return and registers no poll route — so the body a caller receives is this finished document from the one call, not a task handle Router polls on. It is the same envelope OpenAI's Responses API answers, and the same one `OpenAIResponsesRouterOutput` describes for that family; it is a separate component because it is a separate provider's schema, not because the shape differs.\nThe generated text is the `text` of an `output_text` content part of a `message` item — key the extraction on BOTH `type` discriminators, not on depth. `output` is an array of `BytePlusResponseOutputItem`, a `oneOf` over three item types (`message`, `function_call`, `reasoning`), so a response whose only items are reasoning or a tool call carries a non-empty `output` and no generated text at all. The `reasoning` branch ALSO declares `content[]` and `summary[].text`: a walk that takes every `output[].content[].text` will splice chain-of-thought into the answer, which is the one mistake worth guarding against here. Within a `message`, only the `output_text` part carries `text` — the `refusal` part beside it carries `refusal` instead. There is no aggregated `output_text` convenience field at the root of this envelope the way there is on OpenAI's.\n`status` is BytePlus's own vocabulary (`in_progress`, `completed`, `incomplete`, `failed`, `cancelled`), forwarded unchanged. An `incomplete` response still carries whatever text was produced before the cut, with the reason at `incomplete_details.reason` (`max_output_tokens`, `content_filter`). `error` is populated instead when `status` is `failed`, and is null on a response that succeeded. `usage` reports BytePlus's own token accounting — BytePlus's numbers, not the Comfy charge. This family bills input, output and cached input tokens separately, which is why it carries a distinct cache-hit rate.\n`stream` is SETTLED TO FALSE rather than merely discouraged, on every request to this route whether Router dispatched it or not. A caller who asks for a stream is answered the single captured document below rather than an SSE payload, and is not refused.\nRouter does not re-host anything on this document: the BytePlus re-host is the video task query only, and this envelope is TEXT and carries no asset URL at all, so there is nothing here it could act on. Stated out loud rather than left to silence, because a sibling byteplus document does describe one.\n`model` on the RESULT is BytePlus's own echo and is NOT a spelling to key off. The proxy rewrites the vendor id a caller addresses onto a BytePlus endpoint id before forwarding, so what comes back is whatever BytePlus attributes that endpoint to and may be either vocabulary. Two spellings are in play and they are not interchangeable: the PATH takes the prefixed `byteplus/\u003cmodel\u003e` id, while the examples below echo the bare vendor id in the body, which is what BytePlus returns. Read the live `model` as provider metadata rather than as an identifier to match on.\nNULLABILITY ON THIS DOCUMENT IS DECLARED FROM BYTEPLUS'S PUBLISHED REFERENCE, NOT FROM AN OBSERVED RESPONSE. A weekly live case now targets each of the three ids and validates its real result against this schema, but until those cases have run green the nullability below is still transcribed, not observed: a weekly failure on a null in a leaf declared non-nullable here is a fault in THIS schema, not in Router or in BytePlus. Every nullable leaf here is inherited unchanged from `BytePlusResponseObject`, which predates this component and is the shape this route has been decoding in production since it shipped; this component adds no field and relaxes none. Treat a field this schema declares non-nullable as documented-not-observed until those live cases have passed.","example":{"created_at":1767225600,"id":"resp_0a1b2c3d4e5f6a7b8c9d0e1f","model":"seed-2-0-pro-260328","object":"response","output":[{"content":[{"annotations":[],"text":"ok","type":"output_text"}],"id":"msg_0a1b2c3d4e5f6a7b8c9d0e1f","role":"assistant","status":"completed","type":"message"}],"status":"completed","usage":{"input_tokens":14,"input_tokens_details":{"cached_tokens":0},"output_tokens":2,"total_tokens":16}}}}}}}}}},"components":{"schemas":{"BytePlusResponseAppliedContextEdit":{"description":"One applied context-edit, discriminated by `type`.","discriminator":{"mapping":{"clear_thinking":"#/components/schemas/BytePlusResponseAppliedContextEditClearThinking","clear_tool_uses":"#/components/schemas/BytePlusResponseAppliedContextEditClearToolUses"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/BytePlusResponseAppliedContextEditClearThinking"},{"$ref":"#/components/schemas/BytePlusResponseAppliedContextEditClearToolUses"}]},"BytePlusResponseAppliedContextEditClearThinking":{"additionalProperties":true,"properties":{"cleared_thinking_turns":{"description":"Number of reasoning turns that were removed.","type":"integer"},"type":{"default":"clear_thinking","enum":["clear_thinking"],"type":"string"}},"required":["type"],"type":"object"},"BytePlusResponseAppliedContextEditClearToolUses":{"additionalProperties":true,"properties":{"cleared_tool_uses":{"description":"Number of tool invocations that were removed.","type":"integer"},"type":{"default":"clear_tool_uses","enum":["clear_tool_uses"],"type":"string"}},"required":["type"],"type":"object"},"BytePlusResponseAppliedContextManagement":{"additionalProperties":true,"description":"Context-management strategies that were actually applied during this response. Unlike the request-side `BytePlusResponseContextManagement` (which configures strategies), this echoes the strategies the server invoked, with counts of what was cleared.\n","properties":{"applied_edits":{"items":{"$ref":"#/components/schemas/BytePlusResponseAppliedContextEdit"},"type":"array"}},"type":"object"},"BytePlusResponseContextEdit":{"description":"A single context-edit strategy, discriminated by `type`.","discriminator":{"mapping":{"clear_thinking":"#/components/schemas/BytePlusResponseContextEditClearThinking","clear_tool_uses":"#/components/schemas/BytePlusResponseContextEditClearToolUses"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/BytePlusResponseContextEditClearThinking"},{"$ref":"#/components/schemas/BytePlusResponseContextEditClearToolUses"}]},"BytePlusResponseContextEditClearThinking":{"additionalProperties":true,"description":"Clears chain-of-thought content per the `keep` strategy.","properties":{"keep":{"oneOf":[{"additionalProperties":true,"properties":{"type":{"default":"thinking_turns","enum":["thinking_turns"],"type":"string"},"value":{"default":1,"description":"Retain chain-of-thought for the most recent N turns.","type":"integer"}},"required":["type"],"type":"object"},{"description":"Retain all chain-of-thought.","enum":["all"],"type":"string"}]},"type":{"default":"clear_thinking","enum":["clear_thinking"],"type":"string"}},"required":["type","keep"],"type":"object"},"BytePlusResponseContextEditClearToolUses":{"additionalProperties":true,"description":"Clears tool-call content when the conversation exceeds a threshold.","properties":{"clear_tool_input":{"default":false,"description":"Whether to clear tool-call parameters.","type":"boolean"},"exclude_tools":{"description":"Tool names that are never cleared.","items":{"type":"string"},"type":"array"},"keep":{"additionalProperties":true,"properties":{"type":{"default":"tool_uses","enum":["tool_uses"],"type":"string"},"value":{"default":3,"description":"Retain tool-call content for the most recent N turns.","type":"integer"}},"required":["type"],"type":"object"},"trigger":{"additionalProperties":true,"properties":{"type":{"default":"tool_uses","enum":["tool_uses"],"type":"string"},"value":{"description":"Trigger cleanup when tool-call turns reach N.","type":"integer"}},"required":["type","value"],"type":"object"},"type":{"default":"clear_tool_uses","enum":["clear_tool_uses"],"type":"string"}},"required":["type","keep","trigger"],"type":"object"},"BytePlusResponseContextManagement":{"additionalProperties":true,"description":"Context-management strategies (`clear_thinking`, `clear_tool_uses`) applied to keep the context window manageable.\n","properties":{"edits":{"items":{"$ref":"#/components/schemas/BytePlusResponseContextEdit"},"type":"array"}},"type":"object"},"BytePlusResponseError":{"description":"Error details. Null when the response succeeded.","nullable":true,"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"BytePlusResponseInputFile":{"additionalProperties":true,"description":"File input (currently PDF only). Provide exactly one of `file_id`, `file_data`, or `file_url`. `filename` is required with `file_data`.\n","properties":{"file_data":{"description":"Base64-encoded file (single file \u003c= 50 MB).","type":"string"},"file_id":{"description":"ID of a file uploaded via the Files API. Must be `active`.","type":"string"},"file_url":{"description":"Publicly accessible URL (single file \u003c= 50 MB).","type":"string"},"filename":{"description":"Required when `file_data` is set.","type":"string"},"type":{"enum":["input_file"],"type":"string"}},"required":["type"],"type":"object"},"BytePlusResponseInputFunctionCall":{"additionalProperties":true,"description":"A tool/function invocation produced by the model in a prior turn.","properties":{"arguments":{"description":"JSON-encoded string of the function arguments.","type":"string"},"call_id":{"description":"Unique ID of the tool call generated by the model.","type":"string"},"name":{"type":"string"},"status":{"type":"string"},"type":{"enum":["function_call"],"type":"string"}},"required":["type","arguments","call_id","name"],"type":"object"},"BytePlusResponseInputFunctionCallOutput":{"additionalProperties":true,"description":"Output returned by a tool, paired with the function_call via call_id.","properties":{"call_id":{"type":"string"},"output":{"type":"string"},"status":{"type":"string"},"type":{"enum":["function_call_output"],"type":"string"}},"required":["type","call_id","output"],"type":"object"},"BytePlusResponseInputImage":{"additionalProperties":true,"properties":{"detail":{"default":"auto","enum":["high","low","auto"],"type":"string"},"file_id":{"description":"ID of a file uploaded via the Files API. Must be `active`.","type":"string"},"image_pixel_limit":{"additionalProperties":true,"description":"Optional pixel-count bounds. Overrides `detail` when set. Image pixel count must stay in [196, 36_000_000].\n","nullable":true,"properties":{"max_pixels":{"type":"integer"},"min_pixels":{"type":"integer"}},"type":"object"},"image_url":{"description":"Image URL or `data:image/...;base64,...` payload.","type":"string"},"type":{"enum":["input_image"],"type":"string"}},"required":["type"],"type":"object"},"BytePlusResponseInputItem":{"description":"One entry in the `input` array of a Responses request. Discriminated by the `type` field. See https://docs.byteplus.com/en/docs/ModelArk/1585128.\n","discriminator":{"mapping":{"function_call":"#/components/schemas/BytePlusResponseInputFunctionCall","function_call_output":"#/components/schemas/BytePlusResponseInputFunctionCallOutput","message":"#/components/schemas/BytePlusResponseInputMessage","reasoning":"#/components/schemas/BytePlusResponseInputReasoning"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/BytePlusResponseInputMessage"},{"$ref":"#/components/schemas/BytePlusResponseInputFunctionCall"},{"$ref":"#/components/schemas/BytePlusResponseInputFunctionCallOutput"},{"$ref":"#/components/schemas/BytePlusResponseInputReasoning"}]},"BytePlusResponseInputMessage":{"additionalProperties":true,"description":"A message sent to the model (or a stored prior message when `status` is set). Role precedence: developer/system \u003e user; assistant messages represent prior model output.\n","properties":{"content":{"oneOf":[{"description":"Plain text content, equivalent to a single input_text item.","type":"string"},{"items":{"$ref":"#/components/schemas/BytePlusResponseMessageContent"},"type":"array"}]},"partial":{"description":"Enables Continuation mode. Set the last message's role to `assistant` and `partial` to true; the model continues from its existing content.\n","type":"boolean"},"role":{"enum":["user","system","assistant","developer"],"type":"string"},"status":{"description":"Status of a previously stored message. Only used when echoing previous inputs back to the model.\n","enum":["in_progress","completed","incomplete"],"type":"string"},"type":{"default":"message","enum":["message"],"type":"string"}},"required":["type","role","content"],"type":"object"},"BytePlusResponseInputReasoning":{"additionalProperties":true,"description":"Chain-of-thought block. Used both as input (manual reasoning injection for seed-1-8, seed-2-0, deepseek-v3-2) and as a response output item. As input, prefer `previous_response_id` in multi-turn conversations.\n","properties":{"content":{"description":"Original (un-summarized) reasoning content. Returned on output items; not used on input.\n","items":{"additionalProperties":true,"properties":{"text":{"type":"string"},"type":{"default":"reasoning_text","enum":["reasoning_text"],"type":"string"}},"required":["type"],"type":"object"},"type":"array"},"encrypted_content":{"description":"Encrypted+compressed original reasoning content. Returned only when `reasoning.encrypted_content` is in the request's `include` list. Supported from seed-2-0-pro-260328.\n","type":"string"},"id":{"type":"string"},"status":{"enum":["in_progress","completed","incomplete"],"type":"string"},"summary":{"items":{"additionalProperties":true,"properties":{"text":{"type":"string"},"type":{"default":"summary_text","enum":["summary_text"],"type":"string"}},"required":["type"],"type":"object"},"type":"array"},"type":{"enum":["reasoning"],"type":"string"}},"required":["type"],"type":"object"},"BytePlusResponseInputText":{"additionalProperties":true,"properties":{"text":{"type":"string"},"translation_options":{"additionalProperties":true,"description":"Translation-scenario configuration. Only supported by seed-translation-250728.\n","properties":{"source_language":{"type":"string"},"target_language":{"type":"string"}},"required":["target_language"],"type":"object"},"type":{"enum":["input_text"],"type":"string"}},"required":["type","text"],"type":"object"},"BytePlusResponseInputVideo":{"additionalProperties":true,"properties":{"file_id":{"description":"ID of a file uploaded via the Files API. Must be `active`.","type":"string"},"fps":{"description":"Frames-per-second extracted from the video.","format":"float","maximum":5,"minimum":0.2,"type":"number"},"type":{"enum":["input_video"],"type":"string"},"video_url":{"description":"Video URL or `data:video/...;base64,...` payload.","type":"string"}},"required":["type"],"type":"object"},"BytePlusResponseInputs":{"additionalProperties":true,"properties":{"caching":{"additionalProperties":true,"description":"Context-cache configuration.","properties":{"prefix":{"default":false,"description":"When true, only create the public prefix cache; the model does not respond.\n","type":"boolean"},"type":{"enum":["enabled","disabled"],"type":"string"}},"type":"object"},"context_management":{"$ref":"#/components/schemas/BytePlusResponseContextManagement"},"expire_at":{"description":"Unix timestamp (seconds, UTC) at which the stored response and cache expire. Range (creation_time, creation_time + 604800]. Default: creation_time + 259200 (3 days).\n","type":"integer"},"include":{"description":"Additional output fields to include. Currently supported: `reasoning.encrypted_content` (encrypted+compressed reasoning for manual multi-turn reuse).\n","items":{"type":"string"},"type":"array"},"input":{"description":"Text content or list of input items provided to the model.","oneOf":[{"description":"Plain text input, equivalent to a single user message.","type":"string"},{"items":{"$ref":"#/components/schemas/BytePlusResponseInputItem"},"type":"array"}]},"instructions":{"description":"System/developer message prepended as the first instruction. Not compatible with `caching` — if `caching.type` is `enabled`, setting `instructions` returns an error.\n","nullable":true,"type":"string"},"max_output_tokens":{"description":"Maximum output tokens (response + chain-of-thought).","nullable":true,"type":"integer"},"max_tool_calls":{"maximum":10,"minimum":1,"type":"integer"},"model":{"description":"Model ID or Endpoint ID. See https://docs.byteplus.com/en/docs/ModelArk/1330310 for the model list and https://docs.byteplus.com/en/docs/ModelArk/1099522 for Endpoint IDs. A direct v1 call to POST /proxy/byteplus/api/v3/responses MUST supply it -- the proxy refuses any value outside its own allowlist, and an omitted one, with a 400. It is NOT in the Comfy Router input schemas' `required` lists because Router fills it from the `{model}` path segment of /v2/models/byteplus/{model}, so a Router caller omits it.\n","nullable":true,"type":"string"},"previous_response_id":{"description":"ID of the previous response, used to continue a multi-turn conversation. Insert ~100ms between requests to avoid failures.\n","nullable":true,"type":"string"},"reasoning":{"additionalProperties":true,"description":"Limits the workload of deep thinking.","properties":{"effort":{"description":"`minimal` disables thinking entirely. With `thinking.type =\ndisabled`, only `minimal` is allowed.\n","enum":["minimal","low","medium","high"],"type":"string"}},"type":"object"},"store":{"default":true,"description":"When true, the response is persisted and retrievable by ID for multi-turn use.\n","nullable":true,"type":"boolean"},"temperature":{"default":1,"format":"float","maximum":2,"minimum":0,"nullable":true,"type":"number"},"text":{"additionalProperties":true,"description":"Output-format configuration.","properties":{"format":{"$ref":"#/components/schemas/BytePlusResponseTextFormat"}},"type":"object"},"thinking":{"additionalProperties":true,"description":"Controls deep-thinking mode.","properties":{"type":{"description":"`enabled`: always reason before responding.\n`disabled`: respond without additional reasoning.\n`auto`: model decides per-query.\n","enum":["enabled","disabled","auto"],"type":"string"}},"type":"object"},"tool_choice":{"description":"Tool-selection mode. Only seed-1-6 models support this field.","oneOf":[{"enum":["none","auto","required"],"type":"string"},{"$ref":"#/components/schemas/BytePlusResponseToolChoiceObject"}]},"tools":{"items":{"$ref":"#/components/schemas/BytePlusResponseTool"},"type":"array"},"top_p":{"default":0.7,"format":"float","maximum":1,"minimum":0,"nullable":true,"type":"number"}},"type":"object"},"BytePlusResponseMessageContent":{"description":"One content item inside a message. Discriminated by `type`: `input_text` for text, `input_image` for images, `input_video` for videos, `input_file` for PDF/file uploads. File-backed types may reference a Files API id via `file_id`.\n","discriminator":{"mapping":{"input_file":"#/components/schemas/BytePlusResponseInputFile","input_image":"#/components/schemas/BytePlusResponseInputImage","input_text":"#/components/schemas/BytePlusResponseInputText","input_video":"#/components/schemas/BytePlusResponseInputVideo"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/BytePlusResponseInputText"},{"$ref":"#/components/schemas/BytePlusResponseInputImage"},{"$ref":"#/components/schemas/BytePlusResponseInputVideo"},{"$ref":"#/components/schemas/BytePlusResponseInputFile"}]},"BytePlusResponseObject":{"description":"Non-streaming response body returned by POST /api/v3/responses. See https://docs.byteplus.com/en/docs/ModelArk/1783703.\n","properties":{"caching":{"additionalProperties":true,"properties":{"prefix":{"type":"boolean"},"type":{"enum":["enabled","disabled"],"type":"string"}},"type":"object"},"context_management":{"$ref":"#/components/schemas/BytePlusResponseAppliedContextManagement"},"created_at":{"description":"Unix timestamp (seconds) when the response was created.","type":"integer"},"error":{"$ref":"#/components/schemas/BytePlusResponseError"},"expire_at":{"description":"Unix timestamp (seconds) when the stored response expires.","type":"integer"},"id":{"description":"Unique ID of the response. Use as `previous_response_id` to continue the conversation.","type":"string"},"incomplete_details":{"additionalProperties":true,"description":"Populated when `status` is `incomplete`.","nullable":true,"properties":{"reason":{"description":"e.g. `max_output_tokens`, `content_filter`.","type":"string"}},"type":"object"},"instructions":{"description":"Echo of the request's `instructions` field.","nullable":true,"type":"string"},"max_output_tokens":{"nullable":true,"type":"integer"},"max_tool_calls":{"nullable":true,"type":"integer"},"metadata":{"additionalProperties":true,"nullable":true,"type":"object"},"model":{"description":"Model ID that generated the response.","type":"string"},"object":{"default":"response","enum":["response"],"type":"string"},"output":{"description":"Ordered output items produced by the model.","items":{"$ref":"#/components/schemas/BytePlusResponseOutputItem"},"type":"array"},"previous_response_id":{"nullable":true,"type":"string"},"reasoning":{"additionalProperties":true,"properties":{"effort":{"enum":["minimal","low","medium","high"],"type":"string"}},"type":"object"},"service_tier":{"description":"TPM-guarantee-package usage. `default` means none.","enum":["default"],"type":"string"},"status":{"enum":["in_progress","completed","incomplete","failed","cancelled"],"type":"string"},"store":{"nullable":true,"type":"boolean"},"stream":{"nullable":true,"type":"boolean"},"temperature":{"format":"float","nullable":true,"type":"number"},"text":{"additionalProperties":true,"description":"Echo of the request's `text` field.","properties":{"format":{"$ref":"#/components/schemas/BytePlusResponseTextFormat"}},"type":"object"},"thinking":{"additionalProperties":true,"properties":{"type":{"enum":["enabled","disabled","auto"],"type":"string"}},"type":"object"},"tool_choice":{"oneOf":[{"enum":["none","auto","required"],"type":"string"},{"$ref":"#/components/schemas/BytePlusResponseToolChoiceObject"}]},"tools":{"items":{"$ref":"#/components/schemas/BytePlusResponseTool"},"type":"array"},"top_p":{"format":"float","nullable":true,"type":"number"},"usage":{"$ref":"#/components/schemas/BytePlusResponseUsage"}},"required":["id","object","created_at","model","status","output"],"type":"object"},"BytePlusResponseOutputContent":{"description":"One content block in an assistant message. `output_text` carries natural-language text and optional annotations; `refusal` carries a refusal message.\n","discriminator":{"mapping":{"output_text":"#/components/schemas/BytePlusResponseOutputText","refusal":"#/components/schemas/BytePlusResponseOutputRefusal"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/BytePlusResponseOutputText"},{"$ref":"#/components/schemas/BytePlusResponseOutputRefusal"}]},"BytePlusResponseOutputItem":{"description":"One item in a response's `output` array. Discriminated by `type`: `message` for assistant messages, `function_call` for tool invocations, `reasoning` for chain-of-thought blocks. Mirrors the input item shapes the model can read back via `previous_response_id`.\n","discriminator":{"mapping":{"function_call":"#/components/schemas/BytePlusResponseInputFunctionCall","message":"#/components/schemas/BytePlusResponseOutputMessage","reasoning":"#/components/schemas/BytePlusResponseInputReasoning"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/BytePlusResponseOutputMessage"},{"$ref":"#/components/schemas/BytePlusResponseInputFunctionCall"},{"$ref":"#/components/schemas/BytePlusResponseInputReasoning"}]},"BytePlusResponseOutputMessage":{"additionalProperties":true,"description":"An assistant message produced by the model.","properties":{"content":{"items":{"$ref":"#/components/schemas/BytePlusResponseOutputContent"},"type":"array"},"id":{"type":"string"},"partial":{"description":"True when this message is a continuation-mode partial reply.","type":"boolean"},"role":{"default":"assistant","enum":["assistant"],"type":"string"},"status":{"enum":["in_progress","completed","incomplete"],"type":"string"},"type":{"default":"message","enum":["message"],"type":"string"}},"required":["type","id","role","content"],"type":"object"},"BytePlusResponseOutputRefusal":{"additionalProperties":true,"properties":{"refusal":{"type":"string"},"type":{"default":"refusal","enum":["refusal"],"type":"string"}},"required":["type","refusal"],"type":"object"},"BytePlusResponseOutputText":{"additionalProperties":true,"properties":{"annotations":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"text":{"type":"string"},"type":{"default":"output_text","enum":["output_text"],"type":"string"}},"required":["type","text"],"type":"object"},"BytePlusResponseTextFormat":{"description":"Text-output format discriminated by `type`. `text` returns natural language, `json_object` returns a free-form JSON object, `json_schema` constrains output to a caller-supplied JSON Schema.\n","discriminator":{"mapping":{"json_object":"#/components/schemas/BytePlusResponseTextFormatJSONObject","json_schema":"#/components/schemas/BytePlusResponseTextFormatJSONSchema","text":"#/components/schemas/BytePlusResponseTextFormatText"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/BytePlusResponseTextFormatText"},{"$ref":"#/components/schemas/BytePlusResponseTextFormatJSONObject"},{"$ref":"#/components/schemas/BytePlusResponseTextFormatJSONSchema"}]},"BytePlusResponseTextFormatJSONObject":{"additionalProperties":true,"properties":{"type":{"default":"json_object","enum":["json_object"],"type":"string"}},"required":["type"],"type":"object"},"BytePlusResponseTextFormatJSONSchema":{"additionalProperties":true,"properties":{"description":{"description":"Hint the model uses when generating the response.","nullable":true,"type":"string"},"name":{"description":"Caller-defined name for the JSON structure.","type":"string"},"schema":{"additionalProperties":true,"description":"JSON Schema the model output must conform to.","type":"object"},"strict":{"default":false,"nullable":true,"type":"boolean"},"type":{"default":"json_schema","enum":["json_schema"],"type":"string"}},"required":["type","name","schema"],"type":"object"},"BytePlusResponseTextFormatText":{"additionalProperties":true,"properties":{"type":{"default":"text","enum":["text"],"type":"string"}},"required":["type"],"type":"object"},"BytePlusResponseTool":{"additionalProperties":true,"description":"A tool the model may invoke. Currently only `function` is supported.","properties":{"description":{"type":"string"},"name":{"type":"string"},"parameters":{"additionalProperties":true,"description":"JSON Schema describing the function's parameters.","type":"object"},"type":{"default":"function","enum":["function"],"type":"string"}},"required":["type","name","parameters"],"type":"object"},"BytePlusResponseToolChoiceObject":{"additionalProperties":true,"description":"Forces the model to call a specific tool. When `type` is `function`, `name` is required.\n","properties":{"name":{"type":"string"},"type":{"enum":["function"],"type":"string"}},"required":["type"],"type":"object"},"BytePlusResponseUsage":{"description":"Token-usage breakdown for billing and observability.","properties":{"input_tokens":{"description":"Total tokens in the request.","type":"integer"},"input_tokens_details":{"additionalProperties":true,"description":"Breakdown of input tokens (cache hits, etc).","properties":{"cached_tokens":{"description":"Tokens served from the context cache.","type":"integer"}},"type":"object"},"output_tokens":{"description":"Total tokens generated by the model.","type":"integer"},"output_tokens_details":{"additionalProperties":true,"description":"Breakdown of output tokens (reasoning, etc).","properties":{"reasoning_tokens":{"description":"Tokens consumed by chain-of-thought.","type":"integer"}},"type":"object"},"tool_usage":{"additionalProperties":true,"description":"Per-tool invocation counts.","properties":{"image_process":{"description":"Number of image-processing tool calls.","type":"integer"},"mcp":{"description":"Number of MCP tool calls.","type":"integer"},"web_search":{"description":"Number of web-search tool invocations.","type":"integer"}},"type":"object"},"tool_usage_details":{"additionalProperties":true,"description":"Per-tool breakdown of sub-tool invocation counts.","properties":{"image_process":{"additionalProperties":true,"description":"e.g. `{\"zoom\":1,\"point\":1,\"grounding\":1}`.","type":"object"},"mcp":{"additionalProperties":true,"description":"e.g. `{\"mcp_server_tos\":1,\"mcp_server_tls\":1}`.","type":"object"},"web_search":{"additionalProperties":true,"description":"e.g. `{\"toutiao\":1,\"moji\":1,\"search_engine\":1}`.","type":"object"}},"type":"object"},"total_tokens":{"description":"input_tokens + output_tokens.","type":"integer"}},"required":["input_tokens","output_tokens","total_tokens"],"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/seed-2-0-pro-260328","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["text","image"],"x-comfy-router-output-modalities":["text"]}
