GPT-6.1 Terra API

A model for efficient visual reasoning, computer use, and text tasks. It accepts text and images and returns text.

POST /v1/responses

gpt-6.1-terra: Responses, required fields, nested response schema and a fictional example.

Basic request

Required parameters: model, input

Available parameters: model, input, instructions, max_output_tokens, stream, store

Request parameters

ParameterTypeRequiredDescription
modelstringYesExact model identifier shown on this page. Options: gpt-6.1-terra
inputarrayYesInput messages; a single text string is also accepted.
instructionsstringNoOptional system-level instructions.
max_output_tokensintegerNoOptional output-token limit; reasoning behavior depends on the model.
streambooleanNoUse SSE streaming.
storebooleanNoRequest response storage where the model supports it.
## Usage and response conventions - Follow required fields and the nested schema. Optional settings without a documented numeric default use the current model default. - Context, output budgets and media constraints differ by model. Unverified limits are not universal guarantees. - An absent value differs from a reported zero. Read status, content and usage as actually returned. - Replace example.invalid addresses with readable media you are authorized to use. - Save generated files promptly; result links need not remain available indefinitely. ### Conversations and streaming The basic example is non-streaming. Preserve the history required by this protocol. Match tool-call identifiers with their tool results before the next turn. Parse complete SSE events rather than network chunks, and inspect the final event or finish reason. ## Reference Terminology: [OpenAI Responses](https://developers.openai.com/api/reference/resources/responses/methods/create). Use this page's platform base URL and exact model identifier for requests. Reviewed: 2026-11-07. ## Complete nested field reference Array elements use []. Required flags apply only when the enclosing object or content-block variant is used. Response fields can be absent or null as described; false does not imply a fabricated zero. ### Request headers | Field path | Type | Required in its object | Meaning | |---|---|---|---| | `Content-Type` | string | Yes | JSON request-body content type. | ### Request body | Field path | Type | Required in its object | Meaning | |---|---|---|---| | `model` | string | Yes | Exact model identifier shown on this page. Values: gpt-6.1-terra | | `input` | array[object] | Yes | Input messages; a single text string is also accepted. | | `input[].role` | string | Yes | Input message role. Values: user, assistant, system, developer | | `input[].content` | array[object] | Yes | Input content blocks. | | `input[].content[].type` | string | Yes | Content-block type. Values: input_text | | `input[].content[].text` | string | Yes | Input text. | | `instructions` | string | No | Optional system-level instructions. | | `max_output_tokens` | integer | No | Optional output-token limit; reasoning behavior depends on the model. | | `stream` | boolean | No | Use SSE streaming. Default: false | | `store` | boolean | No | Request response storage where the model supports it. Default: false | ### Response 200 | Field path | Type | Required in its object | Meaning | |---|---|---|---| | `id` | string | No | Opaque identifier returned by the API. | | `object` | string | No | Object type: response. | | `created_at` | integer | No | Creation time in Unix seconds. | | `status` | string | No | Output-item status. | | `model` | string | No | Exact model identifier shown on this page. | | `output` | array[object] | No | Output items; text normally appears in message content. | | `output[].id` | string | No | Opaque identifier returned by the API. | | `output[].type` | string | No | Content-block type. | | `output[].role` | string | No | Input message role. | | `output[].status` | string | No | Output-item status. | | `output[].content` | array[object] | No | Input content blocks. | | `output[].content[].type` | string | No | Content-block type. | | `output[].content[].text` | string | No | Input text. | | `output[].content[].annotations` | array[object] | No | Annotations attached to the text. | | `output[].call_id` | string | No | Function-call correlation identifier. | | `output[].name` | string | No | Function name. | | `output[].arguments` | string | No | JSON-encoded arguments. | | `usage` | object | No | Reported response usage. | | `usage.input_tokens` | integer | No | Input token count. | | `usage.input_tokens_details` | object | No | Input breakdown. | | `usage.input_tokens_details.cached_tokens` | integer | No | Cached tokens, a subset of input. | | `usage.output_tokens` | integer | No | Output tokens, which may include reasoning. | | `usage.output_tokens_details` | object | No | Output breakdown. | | `usage.output_tokens_details.reasoning_tokens` | integer | No | Reasoning subset; do not double-count it. | | `usage.total_tokens` | integer | No | Reported total tokens. | | `error` | object | No | Failure details; it may be null on success. | | `error.message` | string | No | Readable error explanation. | | `error.code` | string | No | Error code. | ### Error response structure | Field path | Type | Required in its object | Meaning | |---|---|---|---| | `error` | object | No | Failure details; it may be null on success. | | `error.message` | string | No | Readable error explanation. | | `error.type` | string | No | Content-block type. | | `error.code` | string | No | Error code. |

Request example

curl --request POST https://api.router.ai/v1/responses \
  --header "Authorization: Bearer $API_KEY" \
  --header "Content-Type: application/json" \
  --data-raw '{
  "model": "gpt-6.1-terra",
  "input": [
    {
      "role": "user",
      "content": [
        {
          "type": "input_text",
          "text": "Describe a fictional blue paper boat in one sentence."
        }
      ]
    }
  ],
  "stream": false,
  "store": false
}'