← Claude and GPT API models

GPT-6.1 Terra API

Model ID gpt-6.1-terra · OpenAI · Prices as of

Short answer

GPT-6.1 Terra is available through APIVAI at $0.15 per million input tokens and $0.77 per million output tokens as of 2026-10-27, 85% below OpenAI's official list price of $1.00 / $5.00. Use the model ID gpt-6.1-terra with an APIVAI key in the OpenAI format at https://api.apivai.com/v1 (Chat Completions and the Responses API). Billing is pay-as-you-go from a prepaid balance, from $10, with no subscription.

GPT-6.1 Terra API pricing

Per 1M tokensAPIVAIOfficial list price
Input$0.15$1.00
Output$0.77$5.00

Prompt caching: cache writes cost $0.19 and cache reads $0.008 per million tokens. Context window: 1M tokens. Prices are checked against the price list every 6 hours; see all model prices.

OpenAI describes each model's abilities and limits in its model documentation.

How much does GPT-6.1 Terra cost per request?

Each request is billed for its input and output tokens. Coding agents resend the conversation and files with every step, so their requests are much larger than a chat message.

ExampleInput / output tokensAPIVAIOfficial price
One chat message2,000 / 500 each$0.000685$0.0045
One coding-agent step30,000 / 1,500 each$0.00566$0.0375
1,000 chat messages2,000 / 500 each$0.685$4.50
A month of agent use (100 steps a day, 22 days)30,000 / 1,500 each$12.44$82.50
One coding-agent step with prompt caching (25,000 of the 30,000 input tokens read from cache)30,000 / 1,500, 25,000 cached$0.00211—

Thinking and reasoning tokens are billed as output, so when the model thinks, the output count can be higher than the text you see.

To price your own workload, use the cost calculator; to choose between models, see Sonnet vs Opus vs GPT: API cost compared; for how this compares with buying from OpenAI directly, see APIVAI vs the OpenAI API.

How do you call GPT-6.1 Terra?

cURL (OpenAI format)

curl https://api.apivai.com/v1/chat/completions \
  -H "Authorization: Bearer $APIVAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-6.1-terra",
    "max_tokens": 4096,
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Python (OpenAI SDK)

from openai import OpenAI

client = OpenAI(api_key="YOUR_APIVAI_API_KEY", base_url="https://api.apivai.com/v1")
resp = client.chat.completions.create(
    model="gpt-6.1-terra",
    max_tokens=4096,
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)

Codex CLI

# ~/.codex/config.toml
model = "gpt-6.1-terra"
model_provider = "apivai"

[model_providers.apivai]
name = "APIVAI"
base_url = "https://api.apivai.com/v1"
env_key = "OPENAI_API_KEY"
wire_api = "responses"

Codex uses the Responses API, which APIVAI supports. More tools: API documentation and OpenAI-compatible API.

Other OpenAI models

ModelInput / output per 1MBelow official price
GPT-6 Astra$1.52 / $7.6085%
GPT-5.6 Sol$0.61 / $3.6585%
GPT-5.6 Terra$0.30 / $1.8285%
GPT-6.1 Sol$0.30 / $1.5285%
GPT-6 Sol$0.30 / $1.5285%
GPT-5.6 Luna$0.0304 / $0.1885%
GPT-6 Luna$0.0144 / $0.076886%

Setup guides

FAQ

Is this the same GPT-6.1 Terra model?

Yes. Requests with the model ID gpt-6.1-terra are answered by GPT-6.1 Terra; only the price and the way you pay differ. The thinking-signature test that shows a Claude backend has no GPT equivalent, so we make no further claim here. What you can check yourself is the model field in each response and the tokens billed for each request (listed per request in the dashboard's usage log); Is your Claude API relay serving the real model? explains what such checks can and cannot prove.

What is the model ID for GPT-6.1 Terra?

gpt-6.1-terra. The list of models changes over time, so check GET https://api.apivai.com/v1/models with your key before hard-coding a name.

Which tools can use GPT-6.1 Terra?

Codex CLI and any OpenAI-compatible tool or SDK (Cursor, Cline, Continue, Aider and others) through https://api.apivai.com/v1.

How is GPT-6.1 Terra billed?

Per token, from a prepaid balance: $0.15 per million input tokens and $0.77 per million output tokens, with thinking tokens counted as output. The minimum top-up is $10 by card or crypto, or ¥20 by Alipay or WeChat Pay, and there is no subscription.

How many requests can I send?

Each key allows 60 requests per minute; each key has its own limit, so use several keys for more.

Create an account, top up from $10 and use gpt-6.1-terra with your key.

Ready to start?

Get your API key in 30 seconds. Pay as you go for Claude and GPT.

Get Started