{"openapi":"3.0.2","info":{"title":"openai/gpt-5.6-sol","description":"The request body Comfy Router accepts for the model \"openai/gpt-5.6-sol\", 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":"911a21de1382"},"paths":{"/v2/models/openai/gpt-5.6-sol":{"post":{"operationId":"runRouterModel","summary":"Run openai/gpt-5.6-sol synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"The request body Comfy Router accepts for the seventeen OpenAI Responses chat and reasoning models, and the schema `routervalidate.Guard` validates a `POST /v2/models/openai/{model}` call against before it reaches OpenAI.\nIt describes the SHAPE of a Responses request -- which fields exist and what JSON type each carries -- and deliberately does not restate OpenAI's own sub-vocabularies for `input` items, `tools` or `include`. Router forwards the body unchanged, OpenAI extends those vocabularies continuously, and a schema that enumerated them would refuse calls that run today. OpenAI's Responses API reference is authoritative for the contents of those fields; this schema is authoritative for what Router itself will accept.\nFields not listed here are forwarded to OpenAI untouched. Two of them are SETTLED to `false` on the Router surface when a caller names them -- `stream` and `background` -- because Router captures the provider response rather than streaming it, and a streamed or queued document is one this route can neither return nor meter (routerSettledBoolFields, server/middleware/router_model_catalog.go).","example":{"input":"Reply with the single word: ok","max_output_tokens":1024},"properties":{"include":{"description":"Additional output data to include in the model response.","items":{"type":"string"},"nullable":true,"type":"array"},"input":{"description":"Text, image or file inputs to the model, used to generate a response. The one field of this contract Router cannot supply, and the only entry in `required` below.","oneOf":[{"description":"A text input to the model, equivalent to a text input with the `user` role.","title":"Text input","type":"string"},{"description":"A list of one or many input items. See OpenAI's Responses API reference for the item taxonomy; Router does not narrow it.","items":{},"title":"Input item list","type":"array"}]},"instructions":{"description":"Inserts a system (or developer) message as the first item in the model's context.","nullable":true,"type":"string"},"max_output_tokens":{"description":"An upper bound for the number of tokens generated for a response, including visible output tokens and reasoning tokens. On a reasoning id this ceiling is shared with the hidden reasoning tokens, so a small value can consume the whole budget before any visible text -- which is why the reasoning smoke cases send 1024 where the chat ones send 16.","minimum":1,"nullable":true,"type":"integer"},"model":{"description":"OpenAI model identifier. On Comfy Router this field is OPTIONAL and Router fills it from the `{model}` path segment; an explicit `null` is replaced the same way. Sending a value that disagrees with the path is refused.","nullable":true,"type":"string"},"parallel_tool_calls":{"description":"Whether to allow the model to run tool calls in parallel.","nullable":true,"type":"boolean"},"previous_response_id":{"description":"The ID of a previous response, for multi-turn conversations.","nullable":true,"type":"string"},"reasoning":{"description":"REASONING TIER ONLY. Configuration for reasoning models, e.g. `{\"effort\": \"medium\"}`. Forwarded unchanged; see OpenAI's reasoning guide for the accepted keys. A chat-tier id ignores it.","nullable":true,"type":"object"},"store":{"description":"Whether OpenAI stores the generated response for later retrieval.","nullable":true,"type":"boolean"},"stream":{"description":"Declared so a caller who sends it is not refused, but INERT on this surface: Router SETTLES it to `false` before dispatch, because it captures the provider response rather than relaying a `text/event-stream` -- which it cannot decode, so a streamed generation would be billed by OpenAI and metered by nobody. No Comfy surface serves the stream: the v1 `POST /proxy/openai/v1/responses` ingress refuses `stream: true` with a 400 and never forwards the request upstream, so omit the field or send `false` on either surface and read the completed response as one JSON body.","nullable":true,"type":"boolean"},"temperature":{"description":"Sampling temperature. CHAT TIER ONLY: the o-series reasoning ids (`o1`, `o1-pro`, `o3`, `o4-mini`) reject this parameter at OpenAI. Router does not refuse it for them -- see this component's note on why the two tiers share one schema -- so a reasoning call that sends it is answered by OpenAI's own error.","maximum":2,"minimum":0,"nullable":true,"type":"number"},"text":{"description":"Output-format configuration, e.g. `{\"format\": {\"type\": \"json_schema\", ...}}` for Structured Outputs. Forwarded unchanged.","nullable":true,"type":"object"},"tool_choice":{"description":"How the model should select which tool to use. Either a string mode or an object naming a tool.","nullable":true,"oneOf":[{"type":"string"},{"type":"object"}]},"tools":{"description":"Tool definitions the model may call. Router does not narrow the tool taxonomy; see OpenAI's Responses API reference for the accepted shapes.","items":{},"nullable":true,"type":"array"},"top_p":{"description":"Nucleus-sampling cutoff. CHAT TIER ONLY, on the same terms as `temperature`.","maximum":1,"minimum":0,"nullable":true,"type":"number"},"truncation":{"description":"Truncation strategy when the context exceeds the model's window. The enum IS enforced here, unlike the three vocabularies above, because these two values are the complete set OpenAI documents and it has not grown. An explicit `null` is still accepted, on the same terms as the fields above it.","enum":["auto","disabled"],"nullable":true,"type":"string"},"usage":{"description":"Token-usage envelope. Present on this contract because the v1 operation declares it on the request body; OpenAI populates it on the RESPONSE, so a caller has no reason to send it.","nullable":true,"type":"object"}},"required":["input"],"type":"object"}}}},"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/OpenAIResponse"}],"description":"Comfy Router output schema for the OpenAI Responses text models: the `OpenAIResponse` document `POST /proxy/openai/v1/responses` answers with, forwarded unchanged. The operation is DIRECT-RETURN — `routerresult/classification.go` classifies `{provider: openai, endpoint: /v1/responses}` as ReturnModeDirect with no poll route — so the body a caller receives is this finished document from the one call, not a task handle Router polls on.\nThe generated text is at `output[].content[].text`. Neither container above it is the result on its own: `output` is an array of `OutputItem`, which is a `oneOf` over six item types (`OutputMessage`, the four tool calls, and `ReasoningItem`), so a response whose only items are a `ReasoningItem` or a `web_search_call` carries an `output` that is non-empty and no text at all. Only the `OutputMessage` branch has `content`, and only its `output_text` content part (`OutputTextContent`) has `text` — which is why the nightly SDK case for this family asserts the leaf path `output[].content[].text` rather than the `output` container (`testing/e2e/router_sdk/cases.d/openai_responses.json`). `output_text` at the root is the same text aggregated, but it is an SDK-only convenience field rather than something every client sees, so it is not the leaf to key off.\n`status` is OpenAI's own vocabulary (`completed`, `failed`, `in_progress`, `cancelled`, `queued`, `incomplete`), forwarded unchanged. An `incomplete` response still carries whatever text was produced before the cut, with the reason at `incomplete_details.reason` — `max_output_tokens` is the expected one for a request that caps the budget. `error` is populated instead when `status` is `failed`, and `usage` reports OpenAI's own token accounting — OpenAI's numbers, not the Comfy charge.\n`stream` and `background` are SETTLED TO FALSE, not merely discouraged. Router CAPTURES a /proxy/ response rather than streaming it and answers a direct-return operation out of that one response, so neither a live stream nor a queued handle can be served here: a streamed request would be answered a document that is not this one AND would go unmetered (the Rewrite's ModifyResponse cannot decode an SSE payload), and `background: true` returns a queued 200 carrying no token counts that the same ModifyResponse would meter off usage the document does not have. Both are therefore forced to `false` on a Router-dispatched request — `routerSettledBoolFields` (`server/middleware/router_model_catalog.go`), the same treatment the Anthropic messages and Gemini Interactions routes already get — so a caller who names either one is answered the document below rather than refused. Neither capability is reachable on the v1 `POST /proxy/openai/v1/responses` ingress either: that route REFUSES both outright with a 400 -- `stream: true`, and any `background` other than `false` or `null` -- and never forwards the request upstream. So on either surface, omit both fields or send `false`, and read the completed document below as one JSON body.\n`model` on the RESULT is the RESOLVED provider-side snapshot OpenAI actually ran (`gpt-4.1` in, `gpt-4.1-2025-04-14` back), which is a different vocabulary from the request's allowlist — see the note on `ResponseProperties` for why the allowlist enum constrains only the request half.","example":{"completed_at":1767225601,"created_at":1767225600,"id":"resp_0a1b2c3d4e5f6a7b8c9d0e1f","object":"response","output":[{"content":[{"annotations":[],"text":"ok","type":"output_text"}],"id":"msg_0a1b2c3d4e5f6a7b8c9d0e1f","role":"assistant","status":"completed","type":"message"}],"output_text":"ok","status":"completed","usage":{"input_tokens":14,"input_tokens_details":{"cached_tokens":0},"output_tokens":2,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":16}}}}}}}}}},"components":{"schemas":{"ComputerToolCall":{"description":"A tool call to a computer use tool. See the\n[computer use guide](/docs/guides/tools-computer-use) for more information.\n","properties":{"action":{"type":"object"},"call_id":{"description":"An identifier used when responding to the tool call with output.\n","type":"string"},"id":{"description":"The unique ID of the computer call.","type":"string"},"pending_safety_checks":{"description":"The pending safety checks for the computer call.\n","items":{"additionalProperties":true,"type":"object"},"type":"array"},"status":{"description":"The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n","enum":["in_progress","completed","incomplete"],"type":"string"},"type":{"default":"computer_call","description":"The type of the computer call. Always `computer_call`.","enum":["computer_call"],"type":"string"}},"required":["type","id","action","call_id","pending_safety_checks","status"],"title":"Computer tool call","type":"object"},"ComputerUsePreviewTool":{"description":"A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).","properties":{"display_height":{"description":"The height of the computer display.","type":"integer"},"display_width":{"description":"The width of the computer display.","type":"integer"},"environment":{"description":"The type of computer environment to control.","enum":["windows","mac","linux","ubuntu","browser"],"type":"string"},"type":{"default":"computer_use_preview","description":"The type of the computer use tool. Always `computer_use_preview`.","enum":["computer_use_preview"],"type":"string","x-stainless-const":true}},"required":["type","environment","display_width","display_height"],"title":"Computer use preview","type":"object"},"FileSearchTool":{"properties":{"type":{"description":"The type of tool","enum":["file_search"],"type":"string"},"vector_store_ids":{"description":"IDs of vector stores to search in","items":{"type":"string"},"type":"array"}},"required":["type","vector_store_ids"],"type":"object"},"FileSearchToolCall":{"description":"The results of a file search tool call. See the\n[file search guide](/docs/guides/tools-file-search) for more information.\n","properties":{"id":{"description":"The unique ID of the file search tool call.\n","type":"string"},"queries":{"description":"The queries used to search for files.\n","items":{"type":"string"},"type":"array"},"results":{"description":"The results of the file search tool call.\n","items":{"properties":{"file_id":{"description":"The unique ID of the file.\n","type":"string"},"filename":{"description":"The name of the file.\n","type":"string"},"score":{"description":"The relevance score of the file - a value between 0 and 1.\n","format":"float","type":"number"},"text":{"description":"The text that was retrieved from the file.\n","type":"string"}},"type":"object"},"type":"array"},"status":{"description":"The status of the file search tool call. One of `in_progress`,\n`searching`, `incomplete` or `failed`,\n","enum":["in_progress","searching","completed","incomplete","failed"],"type":"string"},"type":{"description":"The type of the file search tool call. Always `file_search_call`.\n","enum":["file_search_call"],"type":"string","x-stainless-const":true}},"required":["id","type","status","queries"],"title":"File search tool call","type":"object"},"FunctionTool":{"properties":{"description":{"description":"Description of what the function does","type":"string"},"name":{"description":"Name of the function","type":"string"},"parameters":{"description":"JSON Schema object describing the function parameters","type":"object"},"type":{"description":"The type of tool","enum":["function"],"type":"string"}},"required":["type","name","parameters"],"type":"object"},"FunctionToolCall":{"description":"A tool call to run a function. See the\n[function calling guide](/docs/guides/function-calling) for more information.\n","properties":{"arguments":{"description":"A JSON string of the arguments to pass to the function.\n","type":"string"},"call_id":{"description":"The unique ID of the function tool call generated by the model.\n","type":"string"},"id":{"description":"The unique ID of the function tool call.\n","type":"string"},"name":{"description":"The name of the function to run.\n","type":"string"},"status":{"description":"The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n","enum":["in_progress","completed","incomplete"],"type":"string"},"type":{"description":"The type of the function tool call. Always `function_call`.\n","enum":["function_call"],"type":"string","x-stainless-const":true}},"required":["type","call_id","name","arguments"],"title":"Function tool call","type":"object"},"ImageGenerationCall":{"description":"An image generation tool call. `result` carries the generated image as base64 bytes on a completed call and is null while the call is still running or if it produced nothing.\n","properties":{"id":{"description":"The unique ID of the image generation call.","type":"string"},"result":{"description":"The generated image, base64-encoded.","nullable":true,"type":"string"},"status":{"description":"The status of the item. One of `in_progress`, `completed`,\n`generating` or `failed`.\n","type":"string"},"type":{"description":"The type of the item. Always `image_generation_call`.","enum":["image_generation_call"],"type":"string","x-stainless-const":true}},"required":["type"],"title":"Image generation call","type":"object"},"ModelResponseProperties":{"description":"Common properties for model responses","properties":{"instructions":{"description":"Instructions for the model on how to generate the response","nullable":true,"type":"string"},"max_output_tokens":{"description":"Maximum number of tokens to generate","type":"integer"},"model":{"description":"The model used to generate the response","type":"string"},"temperature":{"default":1,"description":"Controls randomness in the response","maximum":2,"minimum":0,"type":"number"},"top_p":{"default":1,"description":"Controls diversity of the response via nucleus sampling","maximum":1,"minimum":0,"type":"number"},"truncation":{"default":"disabled","description":"How to handle truncation of the response","enum":["disabled","auto"],"type":"string"}},"type":"object"},"OpenAIResponse":{"allOf":[{"$ref":"#/components/schemas/ModelResponseProperties"},{"$ref":"#/components/schemas/ResponseProperties"},{"properties":{"background":{"description":"Whether the model response runs in the background.","type":"boolean"},"billing":{"description":"Billing information for the response.","properties":{"payer":{"description":"The party responsible for paying for the response.","type":"string"}},"type":"object"},"completed_at":{"description":"Unix timestamp (in seconds) of when this Response was completed. Only present when the status is `completed`.","nullable":true,"type":"number"},"created_at":{"description":"Unix timestamp (in seconds) of when this Response was created.","type":"number"},"error":{"allOf":[{"$ref":"#/components/schemas/ResponseError"}],"nullable":true},"frequency_penalty":{"description":"Penalizes new tokens based on their existing frequency in the text so far.","type":"number"},"id":{"description":"Unique identifier for this Response.","type":"string"},"incomplete_details":{"description":"Details about why the response is incomplete.\n","nullable":true,"properties":{"reason":{"description":"The reason why the response is incomplete.","enum":["max_output_tokens","content_filter"],"type":"string"}},"type":"object"},"max_tool_calls":{"description":"The maximum number of total calls to built-in tools that can be processed in a response.","nullable":true,"type":"integer"},"metadata":{"additionalProperties":{"type":"string"},"description":"Set of key-value pairs that can be attached to the response.","nullable":true,"type":"object"},"moderation":{"additionalProperties":true,"description":"Moderation results for the response input and output, if moderated completions were requested.","nullable":true,"type":"object"},"object":{"description":"The object type of this resource - always set to `response`.","enum":["response"],"type":"string","x-stainless-const":true},"output":{"description":"An array of content items generated by the model.\n\n- The length and order of items in the `output` array is dependent\n  on the model's response.\n- Rather than accessing the first item in the `output` array and\n  assuming it's an `assistant` message with the content generated by\n  the model, you might consider using the `output_text` property where\n  supported in SDKs.\n","items":{"$ref":"#/components/schemas/OutputItem"},"type":"array"},"output_text":{"description":"SDK-only convenience property that contains the aggregated text output\nfrom all `output_text` items in the `output` array, if any are present.\nSupported in the Python and JavaScript SDKs.\n","nullable":true,"type":"string","x-oaiSupportedSDKs":["python","javascript"]},"parallel_tool_calls":{"default":true,"description":"Whether to allow the model to run tool calls in parallel.\n","type":"boolean"},"presence_penalty":{"description":"Penalizes new tokens based on whether they appear in the text so far.","type":"number"},"prompt_cache_key":{"description":"Used by OpenAI to cache responses for similar requests to optimize cache hit rates. Replaces the `user` field.","nullable":true,"type":"string"},"prompt_cache_retention":{"description":"The retention policy for the prompt cache, e.g. `in_memory` or `24h`.","nullable":true,"type":"string"},"safety_identifier":{"description":"A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.","nullable":true,"type":"string"},"service_tier":{"description":"The processing tier used to serve the request, e.g. `auto`, `default`, `flex`, `scale`, or `priority`.","nullable":true,"type":"string"},"status":{"description":"The status of the response generation. One of `completed`, `failed`, `in_progress`, `cancelled`, `queued`, or `incomplete`.","enum":["completed","failed","in_progress","cancelled","queued","incomplete"],"type":"string"},"store":{"description":"Whether the response is stored for later retrieval via the API.","type":"boolean"},"tool_usage":{"description":"Token and request usage broken down by built-in tool.","properties":{"image_gen":{"description":"Image generation tool token usage.","properties":{"input_tokens":{"type":"integer"},"input_tokens_details":{"properties":{"image_tokens":{"type":"integer"},"text_tokens":{"type":"integer"}},"type":"object"},"output_tokens":{"type":"integer"},"output_tokens_details":{"properties":{"image_tokens":{"type":"integer"},"text_tokens":{"type":"integer"}},"type":"object"},"total_tokens":{"type":"integer"}},"type":"object"},"web_search":{"description":"Web search tool usage.","properties":{"num_requests":{"type":"integer"}},"type":"object"}},"type":"object"},"top_logprobs":{"description":"The maximum number of most likely tokens to return at each token position, each with an associated log probability.","nullable":true,"type":"integer"},"usage":{"$ref":"#/components/schemas/ResponseUsage"},"user":{"description":"Deprecated identifier for the end-user. Replaced by `safety_identifier` and `prompt_cache_key`.","nullable":true,"type":"string"}},"type":"object"}],"description":"A response from the model","type":"object"},"OutputAudioContent":{"properties":{"data":{"description":"Base64-encoded audio data","type":"string"},"transcript":{"description":"Transcript of the audio","type":"string"},"type":{"description":"The type of output content","enum":["output_audio"],"type":"string"}},"required":["type","data","transcript"],"type":"object"},"OutputContent":{"oneOf":[{"$ref":"#/components/schemas/OutputTextContent"},{"$ref":"#/components/schemas/OutputAudioContent"},{"$ref":"#/components/schemas/RefusalContent"}]},"OutputItem":{"oneOf":[{"$ref":"#/components/schemas/OutputMessage"},{"$ref":"#/components/schemas/FileSearchToolCall"},{"$ref":"#/components/schemas/FunctionToolCall"},{"$ref":"#/components/schemas/WebSearchToolCall"},{"$ref":"#/components/schemas/ComputerToolCall"},{"$ref":"#/components/schemas/ReasoningItem"},{"$ref":"#/components/schemas/ImageGenerationCall"}]},"OutputMessage":{"properties":{"content":{"description":"The content of the message","items":{"$ref":"#/components/schemas/OutputContent"},"type":"array"},"id":{"description":"The unique ID of the output message","type":"string"},"phase":{"description":"Labels an assistant message as intermediate commentary (`commentary`) or the final answer (`final_answer`)","type":"string"},"role":{"description":"The role of the message","enum":["assistant"],"type":"string"},"status":{"description":"The status of the message, e.g. `in_progress`, `completed`, or `incomplete`","type":"string"},"type":{"description":"The type of output item","enum":["message"],"type":"string"}},"required":["type","role","content"],"type":"object"},"OutputTextContent":{"properties":{"annotations":{"description":"Annotations attached to the text content, such as file citations or URL citations","items":{"additionalProperties":true,"type":"object"},"type":"array"},"logprobs":{"description":"Log probability information for the output tokens","items":{"additionalProperties":true,"type":"object"},"type":"array"},"text":{"description":"The text content","type":"string"},"type":{"description":"The type of output content","enum":["output_text"],"type":"string"}},"required":["type","text"],"type":"object"},"Reasoning":{"description":"**o-series models only**\n\nConfiguration options for\n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\n","properties":{"context":{"description":"Controls which reasoning items are rendered back to the model on later turns, e.g. `auto`, `current_turn`, or `all_turns`.","nullable":true,"type":"string"},"effort":{"allOf":[{"$ref":"#/components/schemas/ReasoningEffort"}],"nullable":true},"generate_summary":{"deprecated":true,"description":"**Deprecated:** use `summary` instead.\n\nA summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n","enum":["auto","concise","detailed"],"type":"string"},"mode":{"description":"The reasoning mode used for the response.","type":"string"},"summary":{"description":"A summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n","enum":["auto","concise","detailed"],"nullable":true,"type":"string"}},"title":"Reasoning","type":"object"},"ReasoningEffort":{"default":"medium","description":"**o-series models only**\n\nConstrains effort on reasoning for\n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n","enum":["low","medium","high"],"type":"string"},"ReasoningItem":{"description":"A description of the chain of thought used by a reasoning model while generating\na response.\n","properties":{"id":{"description":"The unique identifier of the reasoning content.\n","type":"string"},"status":{"description":"The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n","enum":["in_progress","completed","incomplete"],"type":"string"},"summary":{"description":"Reasoning text contents.\n","items":{"properties":{"text":{"description":"A short summary of the reasoning used by the model when generating\nthe response.\n","type":"string"},"type":{"description":"The type of the object. Always `summary_text`.\n","enum":["summary_text"],"type":"string","x-stainless-const":true}},"required":["type","text"],"type":"object"},"type":"array"},"type":{"description":"The type of the object. Always `reasoning`.\n","enum":["reasoning"],"type":"string","x-stainless-const":true}},"required":["id","summary","type"],"title":"Reasoning","type":"object"},"RefusalContent":{"description":"A refusal emitted by the model in place of generated content. It arrives inside an `OutputMessage`, exactly where an `output_text` part would, and the response's `status` is still `completed`.\n","properties":{"refusal":{"description":"The refusal explanation from the model.","type":"string"},"type":{"description":"The type of output content. Always `refusal`.","enum":["refusal"],"type":"string","x-stainless-const":true}},"required":["type","refusal"],"title":"Refusal","type":"object"},"ResponseError":{"description":"An error object returned when the model fails to generate a Response.","properties":{"code":{"$ref":"#/components/schemas/ResponseErrorCode"},"message":{"description":"A human-readable description of the error.","type":"string"}},"required":["code","message"],"type":"object"},"ResponseErrorCode":{"description":"The error code for the response.","enum":["server_error","rate_limit_exceeded","invalid_prompt","vector_store_timeout","invalid_image","invalid_image_format","invalid_base64_image","invalid_image_url","image_too_large","image_too_small","image_parse_error","image_content_policy_violation","invalid_image_mode","image_file_too_large","unsupported_image_media_type","empty_image_file","failed_to_download_image","image_file_not_found"],"type":"string"},"ResponseFormatJsonObject":{"description":"JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n","properties":{"type":{"description":"The type of response format being defined. Always `json_object`.","enum":["json_object"],"type":"string","x-stainless-const":true}},"required":["type"],"title":"JSON object","type":"object"},"ResponseFormatJsonSchemaSchema":{"additionalProperties":true,"description":"The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n","title":"JSON schema","type":"object"},"ResponseFormatText":{"description":"Default response format. Used to generate text responses.\n","properties":{"type":{"description":"The type of response format being defined. Always `text`.","enum":["text"],"type":"string","x-stainless-const":true}},"required":["type"],"title":"Text","type":"object"},"ResponseProperties":{"properties":{"instructions":{"description":"Inserts a system (or developer) message as the first item in the model's context.\n\nWhen using along with `previous_response_id`, the instructions from a previous\nresponse will not be carried over to the next response. This makes it simple\nto swap out system (or developer) messages in new responses.\n","nullable":true,"type":"string"},"max_output_tokens":{"description":"An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).\n","type":"integer"},"previous_response_id":{"description":"The unique ID of the previous response to the model. Use this to\ncreate multi-turn conversations. Learn more about\n[conversation state](/docs/guides/conversation-state).\n","nullable":true,"type":"string"},"reasoning":{"$ref":"#/components/schemas/Reasoning"},"text":{"properties":{"format":{"$ref":"#/components/schemas/TextResponseFormatConfiguration"},"verbosity":{"description":"Constrains the verbosity of the model's response. One of `low`, `medium`, or `high`.","type":"string"}},"type":"object"},"tool_choice":{"description":"How the model should select which tool (or tools) to use when generating\na response. See the `tools` parameter to see how to specify which tools\nthe model can call.\n","oneOf":[{"$ref":"#/components/schemas/ToolChoiceOptions"},{"$ref":"#/components/schemas/ToolChoiceTypes"},{"$ref":"#/components/schemas/ToolChoiceFunction"}]},"tools":{"items":{"$ref":"#/components/schemas/Tool"},"type":"array"},"truncation":{"default":"disabled","description":"The truncation strategy to use for the model response.\n- `auto`: If the context of this response and previous ones exceeds\n  the model's context window size, the model will truncate the\n  response to fit the context window by dropping input items in the\n  middle of the conversation.\n- `disabled` (default): If a model response will exceed the context window\n  size for a model, the request will fail with a 400 error.\n","enum":["auto","disabled"],"type":"string"}},"type":"object"},"ResponseUsage":{"description":"Represents token usage details including input tokens, output tokens,\na breakdown of output tokens, and the total tokens used.\n","properties":{"input_tokens":{"description":"The number of input tokens.","type":"integer"},"input_tokens_details":{"description":"A detailed breakdown of the input tokens.","properties":{"cache_write_tokens":{"description":"The number of input tokens that were written to the cache.","type":"integer"},"cache_write_tokens_details":{"description":"The cache writes split by cache lifetime. The two counts sum to `cache_write_tokens`.","properties":{"ttl_12h_tokens":{"description":"The number of input tokens written to the cache with the 12-hour lifetime.","type":"integer"},"ttl_30m_tokens":{"description":"The number of input tokens written to the cache with the 30-minute lifetime.","type":"integer"}},"type":"object"},"cached_tokens":{"description":"The number of tokens that were retrieved from the cache.\n[More on prompt caching](/docs/guides/prompt-caching).\n","type":"integer"}},"required":["cached_tokens"],"type":"object"},"output_tokens":{"description":"The number of output tokens.","type":"integer"},"output_tokens_details":{"description":"A detailed breakdown of the output tokens.","properties":{"reasoning_tokens":{"description":"The number of reasoning tokens.","type":"integer"}},"required":["reasoning_tokens"],"type":"object"},"total_tokens":{"description":"The total number of tokens used.","type":"integer"}},"required":["input_tokens","input_tokens_details","output_tokens","output_tokens_details","total_tokens"],"type":"object"},"TextResponseFormatConfiguration":{"description":"An object specifying the format that the model must output.\n\nConfiguring `{ \"type\": \"json_schema\" }` enables Structured Outputs,\nwhich ensures the model will match your supplied JSON schema. Learn more in the\n[Structured Outputs guide](/docs/guides/structured-outputs).\n\nThe default format is `{ \"type\": \"text\" }` with no additional options.\n\n**Not recommended for gpt-4o and newer models:**\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n","oneOf":[{"$ref":"#/components/schemas/ResponseFormatText"},{"$ref":"#/components/schemas/TextResponseFormatJsonSchema"},{"$ref":"#/components/schemas/ResponseFormatJsonObject"}]},"TextResponseFormatJsonSchema":{"description":"JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n","properties":{"description":{"description":"A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n","type":"string"},"name":{"description":"The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n","type":"string"},"schema":{"$ref":"#/components/schemas/ResponseFormatJsonSchemaSchema"},"strict":{"default":false,"description":"Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n","type":"boolean"},"type":{"description":"The type of response format being defined. Always `json_schema`.","enum":["json_schema"],"type":"string","x-stainless-const":true}},"required":["type","schema","name"],"title":"JSON schema","type":"object"},"Tool":{"discriminator":{"mapping":{"computer_use_preview":"#/components/schemas/ComputerUsePreviewTool","file_search":"#/components/schemas/FileSearchTool","function":"#/components/schemas/FunctionTool","web_search_preview":"#/components/schemas/WebSearchPreviewTool","web_search_preview_2025_03_11":"#/components/schemas/WebSearchPreviewTool"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/FileSearchTool"},{"$ref":"#/components/schemas/FunctionTool"},{"$ref":"#/components/schemas/WebSearchPreviewTool"},{"$ref":"#/components/schemas/ComputerUsePreviewTool"}]},"ToolChoiceFunction":{"description":"Use this option to force the model to call a specific function.\n","properties":{"name":{"description":"The name of the function to call.","type":"string"},"type":{"description":"For function calling, the type is always `function`.","enum":["function"],"type":"string","x-stainless-const":true}},"required":["type","name"],"title":"Function tool","type":"object"},"ToolChoiceOptions":{"description":"Controls which (if any) tool is called by the model.\n\n`none` means the model will not call any tool and instead generates a message.\n\n`auto` means the model can pick between generating a message or calling one or\nmore tools.\n\n`required` means the model must call one or more tools.\n","enum":["none","auto","required"],"title":"Tool choice mode","type":"string"},"ToolChoiceTypes":{"description":"Indicates that the model should use a built-in tool to generate a response.\n[Learn more about built-in tools](/docs/guides/tools).\n","properties":{"type":{"description":"The type of hosted tool the model should to use. Learn more about\n[built-in tools](/docs/guides/tools).\n\nAllowed values are:\n- `file_search`\n- `web_search_preview`\n- `computer_use_preview`\n","enum":["file_search","web_search_preview","computer_use_preview","web_search_preview_2025_03_11"],"type":"string"}},"required":["type"],"title":"Hosted tool","type":"object"},"WebSearchPreviewTool":{"description":"This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).","properties":{"search_context_size":{"description":"High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default.","enum":["low","medium","high"],"type":"string"},"type":{"default":"web_search_preview","description":"The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.","enum":["web_search_preview","web_search_preview_2025_03_11"],"type":"string","x-stainless-const":true}},"required":["type"],"title":"Web search preview","type":"object"},"WebSearchToolCall":{"description":"The results of a web search tool call. See the\n[web search guide](/docs/guides/tools-web-search) for more information.\n","properties":{"id":{"description":"The unique ID of the web search tool call.\n","type":"string"},"status":{"description":"The status of the web search tool call.\n","enum":["in_progress","searching","completed","failed"],"type":"string"},"type":{"description":"The type of the web search tool call. Always `web_search_call`.\n","enum":["web_search_call"],"type":"string","x-stainless-const":true}},"required":["id","type","status"],"title":"Web search tool call","type":"object"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"openai/gpt-5.6-sol","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"]}
