GPT · Mid-tier · 922K context window

GPT 5.6 Terra pricing for api generation

$0.0780 per call at 3,000 input / 6,000 output tokens.

Per call

$0.0780

10K calls/mo

$780

Cache savings

90% off input

Batch savings

50% off all

Calculate your GPT 5.6 Terra costs

Adjust token counts, volume, and discount toggles to model your api generation spend. Prices verified daily against provider pricing pages.

Configure your usage

3,000
100100K
6,000
5050K
10,000
1001M

Estimated cost

Monthly cost
$780
10,000 calls/month
Cost per call$0.078
Daily cost$26
Input rate$2.00/MTok
Output rate$12.00/MTok
Analyze your real spend

Quick start

Call GPT 5.6 Terra with the OpenAI Python SDK:

from openai import OpenAI

client = OpenAI()
response = client.chat.completions.create(
    model="gpt-5.6-terra",
    max_tokens=6000,
    messages=[{"role": "user", "content": "Your prompt here"}]
)
# Cost: ~$0.0780 per call at standard rates
# Input:  $2.00/MTok
# Output: $12.00/MTok

What drives api generation cost

Endpoint generation is the most output-heavy code task tracked here: 3K in for the spec, 6K out for handlers, types, validation, and error paths. Output pricing is therefore the whole ballgame, and the gap between a flagship and a mid-tier model at 6K output tokens compounds fast across a large API surface. Generating one resource at a time costs less than one giant multi-resource prompt.

For GPT 5.6 Terra specifically, that means output tokens cost 6.0x more than input, at $12.00 vs $2.00 per MTok. At this use case’s 3,000/6,000 token split, output accounts for 92% of the $0.0780 per-call cost.

Complete GPT 5.6 Terra pricing breakdown

Standard token rates

Direction$/MTokTokens per call
Input$2.003,000
Output$12.006,000

Prompt caching: 90% off input tokens

Caching drops input cost from $2.00 to $0.20/MTok. For repeated system prompts, that saves $0.005400 per call.

Batch API: 50% off all tokens

Submit requests asynchronously and receive 50% off all token costs. This works best for offline pipelines where latency requirements are flexible.

Monthly cost projections

Monthly volumeCost per callStandard monthlyCached monthlyYou save with caching
10,000 calls$0.0780$780$726$54
50,000 calls$0.0780$3,900$3,630$270
100,000 calls$0.0780$7,800$7,260$540
500,000 calls$0.0780$39,000$36,300$2,700
1,000,000 calls$0.0780$78,000$72,600$5,400

GPT 5.6 Terra quality benchmarks for api generation

Consider alternatives for api generation

Scores 64/100 (rank #11 of 88). Better options exist at similar price points for api generation.

Top-ranked: Claude Opus 5.5 (79/100) at $0.1320/call

Performance across all task types

GPT 5.6 Terra scores by task type. API Generation highlighted.

Q&A92Reasoning91Classification89Code Review84Extraction75Creative Writing67Code Generation *64Summarization64
Task typeConfidence scoreRank out of 88
Q&A92/100#1
Reasoning91/100#5
Classification89/100#1
Code Review84/100#4
Extraction75/100#5
Creative Writing67/100#23
Code Generation(current page)64/100#11
Summarization64/100#22

Confidence scores are a third-party benchmark snapshot from week 26 of 2026. This snapshot is 17 weeks old, so treat the scores as directional and validate against your own evals.

Alternative models for api generation

5 models score 80+ on api generation benchmarks, sorted by input rate. Cheapest: Claude Haiku 4.5 (58% less, 72/100 quality).

ModelProviderInput $/MTokOutput $/MTokQualityPer callvs GPT
Claude Haiku 4.5Claude$1.00$5.0072/100$0.033058% cheaper
Claude Opus 5.5Claude$4.00$20.0079/100$0.132069% more
Claude Opus 5Claude$5.00$25.0072/100$0.1650112% more
Claude Fable 5.1Claude$10.00$50.0074/100$0.3300323% more
Claude Fable 5Claude$10.00$50.0072/100$0.3300323% more

About GPT 5.6 Terra

Provider

GPT

Tier

Mid-tier

Context

922K tokens

Released

Jul 2026

Other models from GPT

ModelTierInput $/MTokOutput $/MTokContext
GPT 5.5Flagship$5.00$30.001.1M
GPT 5.4Mid-tier$2.50$15.001.1M
GPT 5.6 SolFlagship$4.00$20.00922K
GPT 5.6 LunaFast / Budget$0.20$1.20922K
GPT 3.5 TurboFast / Budget$0.50$1.5016K
GPT 3.5 Turbo (0125)Fast / Budget$0.50$1.5016K
GPT 4 (0613)Flagship$30.00$60.008K
GPT 4 Turbo (2024-04-09)Flagship$10.00$30.00128K
GPT 4Flagship$30.00$60.008K
GPT 4 TurboFlagship$10.00$30.00128K
GPT 4.1Mid-tier$2.00$8.001.0M
GPT 4.1 MiniFast / Budget$0.40$1.601.0M
GPT 4.1 NanoFast / Budget$0.10$0.401.0M
GPT 4oMid-tier$2.50$10.00128K
GPT 4o (2024-05-13)Flagship$5.00$15.00128K
GPT 4o MiniFast / Budget$0.15$0.60128K
GPT 5Mid-tier$1.25$10.00272K
GPT 5 MiniFast / Budget$0.25$2.00272K
GPT 5 NanoFast / Budget$0.05$0.40272K
GPT 5 ProFlagship$15.00$120.00400K
GPT 5.1Mid-tier$1.25$10.00272K
GPT 5.2Mid-tier$1.75$14.00272K
GPT 5.2 ProFlagship$21.00$168.00272K
GPT 5.4 MiniFast / Budget$0.75$4.50272K
GPT 5.4 NanoFast / Budget$0.20$1.25272K
GPT 5.4 ProFlagship$30.00$180.001.1M
GPT 5.5 ProFlagship$30.00$180.001.1M
GPT 6 AstraFlagship$10.00$50.00922K
GPT 6 LunaFast / Budget$0.10$0.50922K
GPT 6 SolFlagship$2.00$10.00922K
o1Flagship$15.00$60.00200K
o1 ProFlagship$150.00$600.00200K
o3Mid-tier$2.00$8.00200K
o3 MiniFast / Budget$1.10$4.40200K
o3 ProFlagship$20.00$80.00200K
o4 MiniFast / Budget$1.10$4.40200K
GPT 6.1 SolFlagship$2.00$10.00922K

You can compare GPT 5.6 Terra head-to-head against any other model on our model comparison pages, or track how pricing has changed over time on the pricing history tracker.

Frequently asked questions

How much does GPT 5.6 Terra cost for api generation per API call?

A typical api generation call using GPT 5.6 Terra costs about $0.0780 per call. This estimate uses 3,000 input tokens and 6,000 output tokens at standard rates. Standard rates are $2.00 per million input tokens and $12.00 per million output tokens.

Is GPT 5.6 Terra the best model for api generation?

GPT 5.6 Terra scores 64 out of 100 on api generation benchmarks overall. It ranks #11 across all 88 models in our cross-provider registry. The highest-ranked model for this task is Claude Opus 5.5 from Claude. That model scores 79/100 on this task type. Confidence scores are a third-party benchmark snapshot from week 26 of 2026. This snapshot is 17 weeks old, so treat the scores as directional and validate against your own evals.

What is the cheapest model for api generation with good quality?

The most affordable model for api generation above 80/100 quality is Claude Haiku 4.5. It comes from Claude at $1.00 per million input tokens. Output costs $5.00 per million tokens with a quality score of 72/100. Switching from GPT 5.6 Terra to Claude Haiku 4.5 saves about 58% per API call.

How can I reduce my GPT 5.6 Terra costs for api generation?

Three strategies lower GPT 5.6 Terra costs for this task type effectively. Prompt caching gives a 90% discount on input tokens when reusing system prompts. The batch API gives 50% off all tokens for asynchronous processing workloads. Prompt optimization reduces token counts through more concise instructions and context windows. Combining caching with batching brings your cost from $0.0780 to about $0.003900 per call.

How does GPT 5.6 Terra pricing compare to other GPT models?

GPT has 37 other models alongside GPT 5.6 Terra today: GPT 5.5 at $5.00/$30.00 per million tokens (flagship), GPT 5.4 at $2.50/$15.00 per million tokens (mid-tier), GPT 5.6 Sol at $4.00/$20.00 per million tokens (flagship), GPT 5.6 Luna at $0.20/$1.20 per million tokens (fast / budget), GPT 3.5 Turbo at $0.50/$1.50 per million tokens (fast / budget), GPT 3.5 Turbo (0125) at $0.50/$1.50 per million tokens (fast / budget), GPT 4 (0613) at $30.00/$60.00 per million tokens (flagship), GPT 4 Turbo (2024-04-09) at $10.00/$30.00 per million tokens (flagship), GPT 4 at $30.00/$60.00 per million tokens (flagship), GPT 4 Turbo at $10.00/$30.00 per million tokens (flagship), GPT 4.1 at $2.00/$8.00 per million tokens (mid-tier), GPT 4.1 Mini at $0.40/$1.60 per million tokens (fast / budget), GPT 4.1 Nano at $0.10/$0.40 per million tokens (fast / budget), GPT 4o at $2.50/$10.00 per million tokens (mid-tier), GPT 4o (2024-05-13) at $5.00/$15.00 per million tokens (flagship), GPT 4o Mini at $0.15/$0.60 per million tokens (fast / budget), GPT 5 at $1.25/$10.00 per million tokens (mid-tier), GPT 5 Mini at $0.25/$2.00 per million tokens (fast / budget), GPT 5 Nano at $0.05/$0.40 per million tokens (fast / budget), GPT 5 Pro at $15.00/$120.00 per million tokens (flagship), GPT 5.1 at $1.25/$10.00 per million tokens (mid-tier), GPT 5.2 at $1.75/$14.00 per million tokens (mid-tier), GPT 5.2 Pro at $21.00/$168.00 per million tokens (flagship), GPT 5.4 Mini at $0.75/$4.50 per million tokens (fast / budget), GPT 5.4 Nano at $0.20/$1.25 per million tokens (fast / budget), GPT 5.4 Pro at $30.00/$180.00 per million tokens (flagship), GPT 5.5 Pro at $30.00/$180.00 per million tokens (flagship), GPT 6 Astra at $10.00/$50.00 per million tokens (flagship), GPT 6 Luna at $0.10/$0.50 per million tokens (fast / budget), GPT 6 Sol at $2.00/$10.00 per million tokens (flagship), o1 at $15.00/$60.00 per million tokens (flagship), o1 Pro at $150.00/$600.00 per million tokens (flagship), o3 at $2.00/$8.00 per million tokens (mid-tier), o3 Mini at $1.10/$4.40 per million tokens (fast / budget), o3 Pro at $20.00/$80.00 per million tokens (flagship), o4 Mini at $1.10/$4.40 per million tokens (fast / budget), GPT 6.1 Sol at $2.00/$10.00 per million tokens (flagship). The right choice depends on whether your api generation workload prioritizes quality, cost, or speed.

What context window does GPT 5.6 Terra support?

GPT 5.6 Terra supports a context window of 922K tokens per API call. This sets the maximum combined length of your input prompt and generated response. For api generation, typical calls use 3,000 input and 6,000 output tokens. That is well within this limit, leaving room for longer prompts or multi-turn conversations.

Track what you spend on AI

This calculator estimates costs based on published rates only. Connect your API usage to see where your money goes and which models drive your spend.