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

> 通过 AnyFast 创建 GPT-6.1 Sol Responses 或 Chat Completions。

<Info>
  需要推理与工具调用时使用 Responses API。AnyFast 也接受 low 强度下的 Chat Completions 函数调用；`none` 和 `minimal` 推理强度均不受支持。
</Info>

<Note>
  Responses API 返回 `model: "gpt-6.1-sol"`；Chat Completions 返回 `model: "azure/gpt-6.1-sol"`。一次请求设置 `prompt_cache_options.ttl: "30m"` 后，响应仍报告 `prompt_cache_retention: "24h"`；有效缓存时长尚未验证。
</Note>

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


## OpenAPI

````yaml zh/api-reference/model-api/openai/openapi/gpt-6.1-sol/openapi.yaml POST /v1/responses
openapi: 3.1.0
info:
  title: GPT-6.1 Sol
  description: 通过 AnyFast 创建 GPT-6.1 Sol Responses 和 Chat Completions 响应。
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security:
  - bearerAuth: []
paths:
  /v1/responses:
    post:
      summary: 创建 GPT-6.1 Sol 响应
      description: 从文本或图像输入创建响应。AnyFast 已实测此接口的文本、 函数调用、结构化输出及提示缓存请求字段。
      operationId: createResponseGPT61Sol
      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.1-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.1-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
        include:
          type: array
          items:
            type: string
          description: 此模型的 include 中不要请求 message.output_text.logprobs。
      description: 此模型不支持 none 或 minimal；请从请求中移除 temperature、top_p 和 top_logprobs。
    ResponseObject:
      type: object
      required:
        - id
        - object
        - model
        - status
        - output
      properties:
        id:
          type: string
        object:
          type: string
          enum:
            - response
        model:
          type: string
          example: gpt-6.1-sol
        status:
          type: string
          enum:
            - queued
            - in_progress
            - completed
            - incomplete
            - failed
            - cancelled
        created_at:
          type: integer
        completed_at:
          type: integer
          nullable: true
        background:
          type: boolean
        output:
          type: array
          description: 文本位于 type 为 output_text 的消息内容块；函数调用位于 function_call 输出项。
          items:
            type: object
            additionalProperties: true
            properties:
              id:
                type: string
              type:
                type: string
                description: >-
                  Message, reasoning, function_call, or another supported output
                  item.
              status:
                type: string
              role:
                type: string
              phase:
                type: string
              content:
                type: array
                items:
                  type: object
                  additionalProperties: true
                  properties:
                    type:
                      type: string
                      example: output_text
                    text:
                      type: string
                    annotations:
                      type: array
                      items:
                        type: object
                    logprobs:
                      type: array
                      items:
                        type: object
              name:
                type: string
              arguments:
                type: string
              call_id:
                type: string
        usage:
          type: object
          properties:
            input_tokens:
              type: integer
            output_tokens:
              type: integer
            total_tokens:
              type: integer
            input_tokens_details:
              type: object
              properties:
                cached_tokens:
                  type: integer
                cache_write_tokens:
                  type: integer
            output_tokens_details:
              type: object
              properties:
                reasoning_tokens:
                  type: integer
        reasoning:
          type: object
          properties:
            effort:
              type: string
              enum:
                - low
                - medium
                - high
                - xhigh
                - max
            summary:
              type: string
              nullable: true
            context:
              type: string
            mode:
              type: string
        error:
          type: object
          nullable: true
          additionalProperties: true
        incomplete_details:
          type: object
          nullable: true
          additionalProperties: true
        content_filters:
          type: array
          description: AnyFast 响应中观察到的内容过滤诊断信息。
          items:
            type: object
            additionalProperties: true
            properties:
              blocked:
                type: boolean
              source_type:
                type: string
              content_filter_raw:
                type: array
                items:
                  type: object
              content_filter_results:
                type: object
                additionalProperties: true
              content_filter_offsets:
                type: object
                additionalProperties: true
        tool_usage:
          type: object
          description: AnyFast 响应中观察到的工具用量信息。
          additionalProperties: true
        max_output_tokens:
          type: integer
          nullable: true
        max_tool_calls:
          type: integer
          nullable: true
        instructions:
          type: string
          nullable: true
        metadata:
          type: object
          additionalProperties: true
        moderation:
          type: object
          nullable: true
          additionalProperties: true
        parallel_tool_calls:
          type: boolean
        previous_response_id:
          type: string
          nullable: true
        prompt_cache_key:
          type: string
          nullable: true
        prompt_cache_retention:
          type: string
        safety_identifier:
          type: string
          nullable: true
        service_tier:
          type: string
        store:
          type: boolean
        text:
          type: object
          additionalProperties: true
        tool_choice:
          oneOf:
            - type: string
            - type: object
              additionalProperties: true
        tools:
          type: array
          items:
            type: object
            additionalProperties: true
        truncation:
          type: string
        user:
          type: string
          nullable: true
        frequency_penalty:
          type: number
        presence_penalty:
          type: number
        temperature:
          type: number
          description: 网关返回的值；带推理的请求仍应省略此采样参数。
        top_p:
          type: number
          description: 网关返回的值；带推理的请求仍应省略此采样参数。
        top_logprobs:
          type: integer
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            message:
              type: string
            param:
              type: string
              nullable: true
            code:
              type: string
              nullable: true
    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
          enum:
            - function
          description: AnyFast 已实测的自定义函数工具类型。
        name:
          type: string
        description:
          type: string
        parameters:
          type: object
          additionalProperties: true
        strict:
          type: boolean
    ReasoningEffort:
      type: string
      enum:
        - low
        - medium
        - high
        - xhigh
        - max
      default: medium
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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