> ## 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-sol

> 通过 AnyFast 创建 GPT-6 Sol Responses 和 Chat Completions 响应。

<Info>
  带推理的工具调用请使用 Responses API。Chat Completions 函数调用要求 `reasoning_effort: "none"`。
</Info>

<Note>
  解析 Responses API 原始 JSON 时，应从 `output[].content[].text` 读取生成文本。部分官方 SDK 会提供 `output_text` 便利属性，但原始 HTTP 响应可能不包含该字段。
</Note>

<script src="/public/feedback.js" />


## OpenAPI

````yaml zh/api-reference/model-api/openai/openapi/gpt-6-sol/openapi.yaml POST /v1/responses
openapi: 3.1.0
info:
  title: GPT-6 Sol
  description: 通过 AnyFast 创建 GPT-6 Sol Responses 和 Chat Completions 响应。
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security:
  - bearerAuth: []
paths:
  /v1/responses:
    post:
      summary: 创建 GPT-6 Sol 响应
      description: 从文本或图像输入创建响应。内置工具、带推理的函数调用、 结构化输出和提示缓存请使用此接口。
      operationId: createResponseGPT6Sol
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateResponseRequest'
      responses:
        '200':
          description: 响应创建成功。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseObject'
        '400':
          description: 请求无效或参数组合不受支持。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: API Key 缺失或无效。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 已达到速率或额度限制。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |
            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-sol",
                "input": "Review this retry design and propose a safe implementation plan.",
                "reasoning": {"effort":"high","summary":"auto"},
                "max_output_tokens": 4096
              }'
components:
  schemas:
    CreateResponseRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          enum:
            - gpt-6-sol
        input:
          oneOf:
            - type: string
            - type: array
              minItems: 1
              items:
                type: object
                additionalProperties: true
          description: 文本或有序输入项，包括文本和图像内容。
        instructions:
          type: string
        reasoning:
          $ref: '#/components/schemas/ReasoningConfig'
        max_output_tokens:
          type: integer
          minimum: 1
          maximum: 128000
          description: 可见输出和推理 token 的最大数量。
        text:
          type: object
          additionalProperties: true
          description: 文本详细程度或结构化输出配置。
        tools:
          type: array
          items:
            $ref: '#/components/schemas/ResponsesTool'
        tool_choice:
          oneOf:
            - type: string
              enum:
                - none
                - auto
                - required
            - type: object
              additionalProperties: true
        stream:
          type: boolean
          default: false
        prompt_cache_key:
          type: string
        prompt_cache_options:
          type: object
          additionalProperties: false
          properties:
            mode:
              type: string
              enum:
                - implicit
                - explicit
            ttl:
              type: string
              enum:
                - 30m
              default: 30m
        include:
          type: array
          items:
            type: string
          description: 推理强度不是 none 时，不要请求 message.output_text.logprobs。
      description: 推理强度不是 none 时，请移除 temperature、top_p 和 top_logprobs。
    ResponseObject:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          example: response
        model:
          type: string
          example: gpt-6-sol
        status:
          type: string
          enum:
            - queued
            - in_progress
            - completed
            - incomplete
            - failed
            - cancelled
        output:
          type: array
          items:
            type: object
            additionalProperties: true
        output_text:
          type: string
          description: >-
            部分官方 SDK 提供的可选文本聚合便利字段。解析原始 HTTP 响应时， 应从 output[].content[].text
            读取生成文本，不应要求该字段一定存在。
        usage:
          type: object
          additionalProperties: true
        error:
          oneOf:
            - type: object
              additionalProperties: true
            - type: 'null'
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
    ReasoningConfig:
      type: object
      properties:
        effort:
          $ref: '#/components/schemas/ReasoningEffort'
        summary:
          type: string
          enum:
            - auto
            - concise
            - detailed
    ResponsesTool:
      type: object
      additionalProperties: true
      properties:
        type:
          type: string
          description: 工具类型，例如 function 或受支持的 Responses API 内置工具。
        name:
          type: string
        description:
          type: string
        parameters:
          type: object
          additionalProperties: true
        strict:
          type: boolean
    ReasoningEffort:
      type: string
      enum:
        - none
        - low
        - medium
        - high
        - xhigh
        - max
      default: medium
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````