> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# gpt-6.2-sol

> Create GPT-6.2 Sol text, vision, file-analysis, structured-output, and tool-using responses.

GPT-6.2 Sol uses the Responses API for text, image and file input, Structured Outputs, and tool workflows. Select a tab for the request shape you need.

> [!NOTE]
>
> `gpt-6.2-sol` also accepts text requests through `POST /v1/chat/completions`. Use this Responses API reference for reasoning controls, tools, image and file input, Structured Outputs, streaming, and prompt caching.

> [!NOTE]
>
> `max_output_tokens` limits visible output and reasoning tokens for Responses API requests, up to `128000`. Chat Completions uses `max_completion_tokens` instead.

> [tab] Text and reasoning
>
> ## Create response
>
> `POST /v1/responses`
>
> ```bash cURL theme={null}
> curl --request POST \
>   --url https://www.anyfast.ai/v1/responses \
>   --header 'Authorization: Bearer YOUR_API_KEY' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "model": "gpt-6.2-sol",
>     "instructions": "Act as a senior reliability engineer.",
>     "input": "Review this retry design and propose a safe implementation plan.",
>     "reasoning": { "effort": "high", "summary": "auto" },
>     "text": { "verbosity": "medium" },
>     "max_output_tokens": 4096,
>     "store": true
>   }'
> ```
>
> ## Request headers
>
> **Authorization** `string` *required*
>
> Bearer authentication in the form `Bearer YOUR_API_KEY`.
>
> **Content-Type** `string` *required* (default: application/json)
>
> Data exchange format.
>
> ## Request body
>
> **model** `string` *required*
>
> AnyFast model ID. Use `gpt-6.2-sol`.
>
> **input** `string | object[]` *required*
>
> Text or an ordered list of message, image, file, and tool-result items.
>
> **instructions** `string`
>
> System or developer instructions inserted into the model context.
>
> **reasoning** `object`
>
> Reasoning configuration.
>
> **reasoning.effort** `string`
>
> `low`, `medium`, `high`, `xhigh`, or `max`. `none` and `minimal` are not supported.
>
> **reasoning.summary** `string`
>
> `auto`, `concise`, or `detailed`.
>
> **reasoning.context** `string`
>
> `auto`, `current_turn`, or `all_turns`.
>
> **reasoning.mode** `string`
>
> Use `standard`. The current AnyFast route does not expose GPT-6.2 Sol Pro mode.
>
> **max\_output\_tokens** `integer`
>
> Maximum visible-output and reasoning tokens. Maximum: `128000`.
>
> **text.verbosity** `string`
>
> `low`, `medium`, or `high`.
>
> **include** `string[]`
>
> Additional response data. Use `reasoning.encrypted_content` for encrypted reasoning items. Do not use `message.output_text.logprobs`.
>
> **prompt\_cache\_key** `string`
>
> Stable key that improves cache matching for related requests.
>
> **prompt\_cache\_options** `object`
>
> Prompt-cache options. `mode` selects implicit or explicit breakpoints; `ttl` currently supports `30m`; `comparison_response_id` requests comparison diagnostics.
>
> **prompt\_cache\_options.mode** `string`
>
> `implicit` or `explicit`.
>
> **prompt\_cache\_options.ttl** `string` (default: 30m)
>
> Currently only `30m` is supported.
>
> **input\[].content\[].prompt\_cache\_breakpoint** `object`
>
> Marks an explicit reusable-prefix boundary. Use `{ "mode": "explicit" }`.
>
> **metadata** `object`
>
> Application-defined string key-value pairs.
>
> **stream** `boolean` (default: false)
>
> Stream response events over SSE.
>
> **stream\_options.include\_obfuscation** `boolean`
>
> Controls event obfuscation for streaming responses.
>
> **store** `boolean` (default: true)
>
> Controls upstream response storage. AnyFast does not expose response retrieval.
>
> **truncation** `string` (default: disabled)
>
> Use `disabled` on the current AnyFast route.
>
> > [!WARNING]
> >
> > Do not send `temperature`, `top_p`, or `top_logprobs`. GPT-6.2 Sol also does not support `message.output_text.logprobs` in `include`.
>
> > [!WARNING]
> >
> > AnyFast does not expose Responses retrieval, Conversations, or Vector Stores management. Do not use `background`, `conversation`, `previous_response_id`, stored prompt references, or `configuration_update`.
>
> ## Response
>
> ```json 200 theme={null}
> {
>   "id": "resp_01astraexample",
>   "object": "response",
>   "created_at": 1788460800,
>   "completed_at": 1788460802,
>   "model": "gpt-6.2-sol",
>   "status": "completed",
>   "output": [
>     {
>       "id": "msg_01astraexample",
>       "type": "message",
>       "status": "completed",
>       "role": "assistant",
>       "content": [{
>         "type": "output_text",
>         "text": "Use bounded exponential backoff, idempotency keys, and a single retry owner.",
>         "annotations": []
>       }]
>     }
>   ],
>   "usage": {
>     "input_tokens": 38,
>     "input_tokens_details": { "cached_tokens": 0, "cache_write_tokens": 0 },
>     "output_tokens": 124,
>     "output_tokens_details": { "reasoning_tokens": 82 },
>     "total_tokens": 162
>   },
>   "error": null,
>   "incomplete_details": null
> }
> ```
>
> **id** `string`
>
> Response ID.
>
> **object** `string`
>
> Always `response`.
>
> **status** `string`
>
> `queued`, `in_progress`, `completed`, `incomplete`, `failed`, or `cancelled`.
>
> **output** `object[]`
>
> Ordered reasoning, message, and tool-call output items.
>
> **usage** `object`
>
> Input, output, cached, cache-write, and reasoning token usage.
>
> **incomplete\_details** `object | null`
>
> Why a response ended incomplete.
>
> **error** `object | null`
>
> Error details for a failed response.

> [tab] Image and file input
>
> ## Create response
>
> `POST /v1/responses`
>
> ```bash cURL theme={null}
> curl --request POST \
>   --url https://www.anyfast.ai/v1/responses \
>   --header 'Authorization: Bearer YOUR_API_KEY' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "model": "gpt-6.2-sol",
>     "input": [{
>       "role": "user",
>       "content": [
>         { "type": "input_text", "text": "Compare the diagram with the deployment notes and list conflicts." },
>         { "type": "input_image", "image_url": "data:image/png;base64,<BASE64_IMAGE_DATA>", "detail": "high" },
>         { "type": "input_file", "filename": "deployment-notes.pdf", "file_data": "data:application/pdf;base64,<BASE64_PDF_DATA>" }
>       ]
>     }],
>     "reasoning": { "effort": "high" },
>     "max_output_tokens": 4096
>   }'
> ```
>
> ## Request body
>
> **model** `string` *required*
>
> Use `gpt-6.2-sol`.
>
> **input** `object[]` *required*
>
> Ordered Responses API input items.
>
> **input\[].role** `string` *required*
>
> `user`, `assistant`, `system`, or `developer`.
>
> **input\[].content** `string | object[]` *required*
>
> Text, image, or file content parts.
>
> **input\[].content\[].type** `string` *required*
>
> `input_text`, `input_image`, or `input_file`.
>
> **input\[].content\[].text** `string`
>
> Text for an `input_text` part.
>
> **input\[].content\[].image\_url** `string`
>
> Public URL or data URL for an `input_image` part.
>
> **input\[].content\[].detail** `string`
>
> `auto`, `low`, or `high`.
>
> **input\[].content\[].filename** `string`
>
> Filename for inline file data.
>
> **input\[].content\[].file\_data** `string`
>
> Data URL containing Base64-encoded inline file data.
>
> **max\_output\_tokens** `integer`
>
> Maximum visible-output and reasoning tokens. Maximum: `128000`.
>
> > [!NOTE]
> >
> > Public image URLs must allow server-side downloads. Data URLs and inline files are supported. Audio and video are not supported GPT-6.2 Sol input modalities.
>
> ## Response
>
> ```json 200 theme={null}
> {
>   "id": "resp_01visionexample",
>   "object": "response",
>   "model": "gpt-6.2-sol",
>   "status": "completed",
>   "output": [{
>     "id": "msg_01visionexample",
>     "type": "message",
>     "status": "completed",
>     "role": "assistant",
>     "content": [{
>       "type": "output_text",
>       "text": "The diagram uses two retry owners, while the notes require one.",
>       "annotations": []
>     }]
>   }],
>   "usage": { "input_tokens": 842, "output_tokens": 67, "total_tokens": 909 }
> }
> ```
>
> **output\[].type** `string`
>
> Output item type, such as `message` or `reasoning`.
>
> **output\[].content\[].type** `string`
>
> Content type, such as `output_text`.
>
> **output\[].content\[].text** `string`
>
> Generated text.
>
> **output\[].content\[].annotations** `object[]`
>
> Citations and annotations when present.

> [tab] Structured output
>
> ## Create response
>
> `POST /v1/responses`
>
> ```bash cURL theme={null}
> curl --request POST \
>   --url https://www.anyfast.ai/v1/responses \
>   --header 'Authorization: Bearer YOUR_API_KEY' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "model": "gpt-6.2-sol",
>     "input": "Classify the deployment risk.",
>     "text": {
>       "format": {
>         "type": "json_schema",
>         "name": "deployment_risk",
>         "strict": true,
>         "schema": {
>           "type": "object",
>           "properties": {
>             "risk": { "type": "string", "enum": ["low", "medium", "high"] },
>             "reason": { "type": "string" }
>           },
>           "required": ["risk", "reason"],
>           "additionalProperties": false
>         }
>       }
>     },
>     "max_output_tokens": 4096
>   }'
> ```
>
> ## Request body
>
> **model** `string` *required*
>
> Use `gpt-6.2-sol`.
>
> **input** `string | object[]` *required*
>
> Prompt and optional context.
>
> **text.format.type** `string` *required*
>
> Use `json_schema` or `text`.
>
> **text.format.name** `string`
>
> Schema name.
>
> **text.format.description** `string`
>
> Description of the expected output.
>
> **text.format.schema** `object` *required*
>
> JSON Schema that defines the response.
>
> **text.format.strict** `boolean`
>
> Enforce strict schema adherence.
>
> **max\_output\_tokens** `integer`
>
> Maximum visible-output and reasoning tokens. Maximum: `128000`.
>
> ## Response
>
> ```json 200 theme={null}
> {
>   "id": "resp_01structuredexample",
>   "object": "response",
>   "model": "gpt-6.2-sol",
>   "status": "completed",
>   "output": [{
>     "id": "msg_01structuredexample",
>     "type": "message",
>     "status": "completed",
>     "role": "assistant",
>     "content": [{
>       "type": "output_text",
>       "text": "{\"reason\":\"Insufficient information to assess actual deployment risk. Medium is a provisional rating.\",\"risk\":\"medium\"}",
>       "annotations": []
>     }]
>   }]
> }
> ```
>
> **output\[].content\[].text** `string`
>
> JSON text that conforms to the supplied schema.

> [tab] Tool workflows
>
> ## Create response
>
> `POST /v1/responses`
>
> ```bash cURL theme={null}
> curl --request POST \
>   --url https://www.anyfast.ai/v1/responses \
>   --header 'Authorization: Bearer YOUR_API_KEY' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "model": "gpt-6.2-sol",
>     "input": "Check the deployment status for service api-gateway.",
>     "tools": [{
>       "type": "function",
>       "name": "get_deployment_status",
>       "description": "Return the current deployment status for a service.",
>       "parameters": {
>         "type": "object",
>         "properties": { "service": { "type": "string" } },
>         "required": ["service"],
>         "additionalProperties": false
>       },
>       "strict": true,
>       }],
>     "tool_choice": "auto",
>     "parallel_tool_calls": true,
>     "max_tool_calls": 4,
>     "max_output_tokens": 4096
>   }'
> ```
>
> ## Request body
>
> **model** `string` *required*
>
> Use `gpt-6.2-sol`. Tool calling requires the Responses API.
>
> **tools** `object[]` *required*
>
> Function, custom, or supported built-in tool definitions.
>
> **tools\[].type** `string` *required*
>
> `function`, `custom`, `web_search`, `code_interpreter`, `shell`, `apply_patch`, `computer`, or `mcp`.
>
> **tools\[].name** `string`
>
> Function or custom-tool name.
>
> **tools\[].description** `string`
>
> When and how to use the tool.
>
> **tools\[].parameters** `object`
>
> JSON Schema for function arguments.
>
> **tools\[].strict** `boolean`
>
> Strict function-argument validation.
>
> **tools\[].allowed\_callers** `string[]`
>
> Use `direct` for direct model tool calls.
>
> **tools\[].output\_schema** `object`
>
> Optional JSON Schema for Function output.
>
> **tools\[].search\_context\_size** `string`
>
> Web Search context size, such as `low`.
>
> **tools\[].filters.allowed\_domains** `string[]`
>
> Domains allowed for Web Search.
>
> **tools\[].container** `object`
>
> Code Interpreter container configuration. Use `{ "type": "auto" }`; `memory_limit` is supported.
>
> **tools\[].environment** `object`
>
> Shell environment configuration. Use `{ "type": "container_auto" }`; `memory_limit` is supported.
>
> **tools\[].server\_label** `string`
>
> Label for an MCP server.
>
> **tools\[].server\_url** `string`
>
> HTTPS endpoint for an MCP server.
>
> **tools\[].require\_approval** `string | object`
>
> MCP approval policy, such as `never`.
>
> **tool\_choice** `string | object`
>
> `none`, `auto`, or a forced-tool object.
>
> **parallel\_tool\_calls** `boolean`
>
> Allow multiple tool calls in one turn.
>
> **max\_tool\_calls** `integer`
>
> Maximum total built-in tool calls.
>
> **max\_output\_tokens** `integer`
>
> Maximum visible-output and reasoning tokens. Maximum: `128000`.
>
> **include** `string[]`
>
> Tool details to return, such as `web_search_call.action.sources` or `code_interpreter_call.outputs`.
>
> > [!WARNING]
> >
> > Your application executes Function and Custom Tool calls. File Search requires a Vector Store created in the same upstream resource, but AnyFast does not currently expose the Vector Stores management endpoint.
>
> ## Tool-call response
>
> ```json 200 theme={null}
> {
>   "id": "resp_01toolexample",
>   "object": "response",
>   "model": "gpt-6.2-sol",
>   "status": "completed",
>   "output": [{
>     "id": "fc_01deployment",
>     "type": "function_call",
>     "call_id": "call_01deployment",
>     "name": "get_deployment_status",
>     "arguments": "{\"service\":\"api-gateway\"}",
>     "status": "completed"
>   }]
> }
> ```
>
> **output\[].type** `string`
>
> `function_call` for this workflow.
>
> **output\[].call\_id** `string`
>
> Tool-call correlation ID.
>
> **output\[].name** `string`
>
> Function name.
>
> **output\[].arguments** `string`
>
> JSON-encoded arguments.
>
> > [!WARNING]
> >
> > Do not rely on cross-request response or tool-item references. Requests routed to different upstream resources can reject those references.

> [tab] Chat Completions
>
> ## Create text completion
>
> `POST /v1/chat/completions`
>
> ```bash cURL theme={null}
> curl --request POST \
>   --url https://www.anyfast.ai/v1/chat/completions \
>   --header 'Authorization: Bearer YOUR_API_KEY' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "model": "gpt-6.2-sol",
>     "messages": [{ "role": "user", "content": "Return a concise deployment checklist." }],
>     "reasoning_effort": "low",
>     "max_completion_tokens": 1024
>   }'
> ```
>
> ## Request body
>
> **model** `string` *required*
>
> Use `gpt-6.2-sol`.
>
> **messages** `object[]` *required*
>
> Ordered Chat Completions messages.
>
> **messages\[].role** `string` *required*
>
> Message role.
>
> **messages\[].content** `string` *required*
>
> Text message content.
>
> **reasoning\_effort** `string`
>
> `low`, `medium`, `high`, `xhigh`, or `max`.
>
> **max\_completion\_tokens** `integer`
>
> Maximum completion and reasoning tokens.
>
> > [!WARNING]
> >
> > Use Chat Completions for text requests only. GPT-6.2 Sol tool calling requires Responses API. Do not send `temperature`, `top_p`, `top_logprobs`, or `logprobs`.
>
> ## Response
>
> **id** `string`
>
> Chat completion ID.
>
> **choices\[].message.content** `string`
>
> Generated text.
>
> **choices\[].finish\_reason** `string`
>
> Why generation stopped.
>
> **usage** `object`
>
> Prompt, completion, and total token usage.

## Common errors

**400** `error`

Invalid input, unsupported reasoning or sampling parameter, incompatible state fields, or invalid tool/schema configuration.

**401** `error`

Missing or invalid API key.

**429** `error`

Rate or quota limit reached.

## Official references

* [GPT-6.2 Sol model page](https://developers.openai.com/api/docs/models/gpt-6.2-sol)
* [Using GPT-6.2 Sol](https://developers.openai.com/api/docs/guides/latest-model?model=gpt-6.2-sol)
* [Responses API create reference](https://developers.openai.com/api/reference/resources/responses/methods/create)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.