gpt-6.1-terra API
gpt-6.1-terra delivers text chat on Openrouter API with large input limits and prompt-cache support.
gpt-6.1-terragpt-6.1-terra API pricing
All prices in USD. Openrouter API rates compared with the official list price for the same unit.
| Token type | Openrouter API | Official | Save |
|---|---|---|---|
| Input per 1M tokens | $0.88 | $1.00 | −12% |
| Cached input per 1M tokens | $0.044 | $0.05 | −12% |
| Cache write per 1M tokens | $1.10 | $1.25 | −12% |
| Cache write (1 hour) per 1M tokens | $2.20 | $2.50 | −12% |
| Output per 1M tokens | $4.40 | $5.00 | −12% |
Tiered pricing by prompt length
| Token type | Up to 272,000 tokens | Above previous tier |
|---|---|---|
| Input | $0.88$1.00 | $1.76$2.00 |
| Cached input | $0.044$0.05 | $0.088$0.10 |
| Cache write | $1.10$1.25 | $2.20$2.50 |
| Cache write (1 hour) | $2.20$2.50 | $4.40$5.00 |
| Output | $4.40$5.00 | $6.60$7.50 |
What is gpt-6.1-terra?
gpt-6.1-terra is an OpenAI GPT-6 family chat model available through Openrouter API. It gives developers a text-generation option for document-heavy conversations, drafting workflows, and assistants that carry conversation history. Requests use messages with role and content fields, and responses contain generated assistant text. The model supports up to 922,000 input tokens and up to 128,000 output tokens. The unified Chat Completions interface offers streaming or complete responses, plus controls for randomness, output length, repetition, and stop sequences.
Call the model through Openrouter API’s OpenAI-compatible base URL, https://openrouterapi.ru/v1, using one API key. Openrouter API uses pay-as-you-go pricing and bills only successful requests. For the tier up to 272,000 input tokens, input costs $0.88 per 1M tokens and output costs $4.40 per 1M tokens; higher-input requests use higher rates. Prompt-cache reads and writes are supported, with separate pricing. The default configuration is about 12% below the developer's list price.
gpt-6.1-terra highlights
Large Input Capacity
Send up to 922,000 input tokens for text-heavy prompts and conversation context.
Long Output Allowance
The maximum output is 128,000 tokens. Use max_tokens to set the generation budget for each request.
Prompt Cache Support
The model supports prompt-cache reads and cache writes. Openrouter API lists separate rates for cached input, cache writes, and 1-hour TTL cache writes.
Configurable Chat Responses
Choose streaming or complete responses through the Chat Completions interface. Adjust temperature, top_p, repetition penalties, and stop sequences.
How to call the gpt-6.1-terra API in 4 steps
- 01
Get an API key
Sign in to Openrouter API, top up from $50, and create an sk-ora key in the console.
- 02
Set the base URL
Use https://openrouterapi.ru/v1 as the base URL in your SDK or HTTP client.
- 03
Send the request
Call POST /v1/chat/completions with "model": "gpt-6.1-terra" and the parameters below.
- 04
Handle the response
Read the response (or stream tokens with stream: true). Usage and cost appear in your console.
Request examples
Documentation: General Chat API (Default Streaming)curl https://openrouterapi.ru/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTERAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6.1-terra",
"messages": [
{"role": "system", "content": "You are a concise assistant."},
{"role": "user", "content": "Explain what an AI API gateway does in two sentences."}
],
"stream": false
}'Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Required | gpt-5 | Model name |
messages | array | Required | — | List of conversation messages |
role | string | Required | user | Role type |
content | string | Required | — | Message content |
temperature | number | Optional | — | Controls output randomness, range 0-2 |
max_tokens | integer | Optional | — | Maximum number of tokens to generate |
stream | boolean | Optional | — | Whether to use streaming output |
top_p | number | Optional | — | Nucleus sampling parameter, range 0-1 |
frequency_penalty | number | Optional | — | Frequency penalty, range -2.0 to 2.0 |
presence_penalty | number | Optional | — | Presence penalty, range -2.0 to 2.0 |
stop | string or array | Optional | — | Stop sequences |
n | integer | Optional | — | Number of completions to generate |
What you can build with gpt-6.1-terra
Document-Based Assistants
Build text assistants that receive substantial reference material alongside user questions. Keep supplied documents within the input limit and request answers grounded in that material.
Multi-Turn Support Chat
Pass prior user and assistant messages to maintain conversation context. Use a system message to define the assistant’s role and response style.
Long-Form Drafting
Generate reports, guides, or other extended text from supplied instructions and source material. Set an explicit output budget for each draft.
Repeated Reference Workflows
Design workflows that reuse common prompt material, such as editorial instructions or reference text. Evaluate supported cache reads and writes against their separate costs.
Tips for better results
- 01
Set the Model Explicitly
Set the model field to
gpt-6.1-terrarather than relying on the general API’s default model. Send messages with role and content fields. - 02
Budget for Input Tiers
Up to 272,000 input tokens, input is $0.88 per 1M tokens and output is $4.40 per 1M tokens. Above that tier, input is $1.76 per 1M tokens and output is $6.60 per 1M tokens.
- 03
Account for Cache Writes
Cached input costs $0.044 per 1M tokens, while cache writes cost $1.10 per 1M tokens. The listed 1-hour TTL cache-write rate is $2.20 per 1M tokens; include write costs when estimating reuse benefits.
- 04
Control Response Generation
Use max_tokens to limit output and set stream explicitly to choose response delivery. The docs recommend adjusting either temperature or top_p to control generation diversity.
Limits and things to know
Maximum input is 922,000 tokens, and maximum output is 128,000 tokens.
Requests above 272,000 input tokens use the higher input and output pricing tier.
The supplied model facts do not establish image input, tool support, or Responses API compatibility.
gpt-6.1-terra API FAQ
How much does gpt-6.1-terra cost on Openrouter API?
For up to 272,000 input tokens, input costs $0.88 per 1M tokens and output costs $4.40 per 1M tokens. Above that tier, input costs $1.76 per 1M tokens and output costs $6.60 per 1M tokens. Openrouter API bills only successful requests, and the default configuration is about 12% below the developer's list price.
How do I call gpt-6.1-terra through the API?
Use https://openrouterapi.ru/v1 as your OpenAI-compatible base URL and send a POST request to /chat/completions. Authenticate with your Openrouter API key as a Bearer token, set model to gpt-6.1-terra, and provide a messages array.
Which generation parameters can I use?
The unified Chat Completions documentation lists temperature, max_tokens, stream, top_p, frequency_penalty, presence_penalty, stop, and n. Set stream to true for streaming responses or false for a complete response.
What are the input and output token limits?
gpt-6.1-terra supports a maximum of 922,000 input tokens and 128,000 output tokens. Use max_tokens to set a request’s output budget within the model’s maximum.
Does gpt-6.1-terra support prompt caching?
Yes, prompt-cache reads and writes are supported. Cached input costs $0.044 per 1M tokens, cache writes cost $1.10 per 1M tokens, and 1-hour TTL cache writes cost $2.20 per 1M tokens.
Can I use gpt-6.1-terra commercially?
Commercial use is subject to the model developer’s terms. Review OpenAI’s applicable terms and Openrouter API’s terms before deploying your application.
Related models
gpt-6-astra
gpt-6-luna
gpt-6-sol
gpt-6.1-sol
gpt-6.2-astra
gpt-6.2-sol
gpt-4.1
gpt-4.1-2025-04-14
Start building with gpt-6.1-terra
One key, pay as you go from $50, billed only for successful requests.
