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

> Create GPT-6.1 Terra responses and chat completions through AnyFast.

> [!NOTE]
>
> Use the Responses API for tool calling with reasoning. AnyFast accepted Chat Completions text requests, but a function call at low effort returned `404 DeploymentNotFound`.

> [!NOTE]
>
> Responses returned `model: "gpt-6.1-terra"`; Chat Completions returned `model: "azure/gpt-6.1-terra"` and omitted `choices[].logprobs`. A `prompt_cache_options.ttl: "30m"` request returned `prompt_cache_retention: "24h"`; effective retention was not verified.


## OpenAPI

````yaml api-reference/model-api/openai/openapi/gpt-6.1-terra/openapi.yaml POST /v1/responses
openapi: 3.1.0
info:
  title: GPT-6.1 Terra
  description: Create GPT-6.1 Terra responses and chat completions through AnyFast.
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security:
  - bearerAuth: []
paths:
  /v1/responses:
    post:
      summary: Create a GPT-6.1 Terra response
      description: >-
        Create a response from text or image input. Function calling, strict
        JSON Schema output, and prompt-cache request fields were live-tested on
        AnyFast.
      operationId: createResponseGPT61Terra
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateResponseRequest'
      responses:
        '200':
          description: Response created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseObject'
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |
            curl https://www.anyfast.ai/v1/responses \
              -H "Authorization: Bearer YOUR_API_KEY" \
              -H "Content-Type: application/json" \
              -d '{
                "model": "gpt-6.1-terra",
                "input": "Summarize this product description in one sentence.",
                "reasoning": {"effort": "medium"},
                "max_output_tokens": 1024
              }'
components:
  schemas:
    CreateResponseRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          enum:
            - gpt-6.1-terra
        input:
          oneOf:
            - type: string
            - type: array
              minItems: 1
              items:
                type: object
                additionalProperties: true
          description: Text or ordered input items, including image content.
        reasoning:
          type: object
          properties:
            effort:
              type: string
              enum:
                - none
                - low
                - medium
                - high
                - xhigh
                - max
              default: medium
        max_output_tokens:
          type: integer
          minimum: 1
          maximum: 128000
          description: Maximum output and reasoning tokens.
        stream:
          type: boolean
          default: false
        text:
          type: object
          description: >-
            Text output configuration; strict JSON Schema format was
            live-tested.
          properties:
            format:
              type: object
              properties:
                type:
                  type: string
                  enum:
                    - text
                    - json_schema
                name:
                  type: string
                schema:
                  type: object
                  additionalProperties: true
                strict:
                  type: boolean
        prompt_cache_options:
          type: object
          description: >-
            A 30m TTL request was accepted; effective retention was not
            verified.
          properties:
            ttl:
              type: string
              enum:
                - 30m
        tools:
          type: array
          description: Responses function tools were live-tested on AnyFast.
          items:
            type: object
            required:
              - type
              - name
              - parameters
            properties:
              type:
                type: string
                enum:
                  - function
              name:
                type: string
              description:
                type: string
              parameters:
                type: object
                additionalProperties: true
              strict:
                type: boolean
        tool_choice:
          type: string
          description: The value `required` was live-tested with a function tool.
          example: required
    ResponseObject:
      type: object
      required:
        - id
        - object
        - created_at
        - model
        - status
        - output
      properties:
        id:
          type: string
        object:
          type: string
          enum:
            - response
        created_at:
          type: integer
          description: Unix timestamp when the response was created.
        completed_at:
          type: integer
          description: Unix timestamp when the response completed.
        model:
          type: string
          example: gpt-6.1-terra
        status:
          type: string
          enum:
            - completed
            - failed
            - in_progress
            - cancelled
            - queued
            - incomplete
        output:
          type: array
          items:
            type: object
            additionalProperties: true
            properties:
              type:
                type: string
                description: Observed values include message, reasoning, and function_call.
              status:
                type: string
              role:
                type: string
              content:
                type: array
                items:
                  type: object
                  additionalProperties: true
                  properties:
                    type:
                      type: string
                      description: Text is returned in output_text content blocks.
                    text:
                      type: string
              name:
                type: string
              arguments:
                type: string
              call_id:
                type: string
        reasoning:
          type: object
          properties:
            effort:
              type: string
            context:
              type: string
            mode:
              type: string
        prompt_cache_retention:
          type: string
          description: >-
            The tested 30m TTL request reported 24h here; no cache write
            occurred.
        usage:
          type: object
          properties:
            input_tokens:
              type: integer
            input_tokens_details:
              type: object
              properties:
                cached_tokens:
                  type: integer
                cache_write_tokens:
                  type: integer
            output_tokens:
              type: integer
            output_tokens_details:
              type: object
              properties:
                reasoning_tokens:
                  type: integer
            total_tokens:
              type: integer
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            type:
              type: string
            param:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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