Anthropic and OpenAI API pricing
Haiku 5.5 vs Luna 6: API Pricing and Use Cases
Compare Claude Haiku 5.5 with GPT-6 Luna by prompt length, caching, context limits, and the kind of production work each model is designed to handle.
Pricing checked: 2026-10-09. Rates are in USD per million tokens.
Haiku 5.5 vs Luna 6: Standard API Pricing
At the standard tier, Claude Haiku 5.5 and GPT-6 Luna have the same published input, cached-input, and output prices: $0.10, $0.01, and $0.50 per million tokens. Cache writes are separate: Haiku lists five-minute and one-hour options, while Luna publishes one cache-write rate. These matching base rates make the prompt-length breakpoints and task results more useful decision points than a headline price alone.
| Model | Input | Cached input | Cache writes | Output | Context / max output |
|---|---|---|---|---|---|
| Claude Haiku 5.5 | $0.10 standard $0.50 above 100,000 input tokens | $0.01 standard $0.05 above threshold | 5-minute cache write: $0.125; 1-hour cache write: $0.20 Over threshold: 5-minute cache write: $0.625; 1-hour cache write: $1.00 | $0.50 standard $2.50 above threshold | 1,000,000 / 128,000 tokens |
| GPT-6 Luna | $0.10 standard $0.20 above 272,000 input tokens | $0.01 standard $0.02 above threshold | Cache write: $0.125 Over threshold: | $0.50 standard $0.75 above threshold | 1,050,000 / 128,000 tokens |
Both providers publish a 128,000-token maximum output. Haiku lists a 1,000,000-token context window; Luna lists 1,050,000. The higher-price tiers apply to requests whose input exceeds the model-specific threshold shown above.
Haiku 5.5 vs Luna 6: What a Request Costs
For a request with 60,000 uncached input tokens and 12,000 output tokens, the shared official rates estimate $0.012 on either model. At 150,000 input and 30,000 output tokens, Haiku has crossed its 100,000-token threshold while Luna has not: the estimates become $0.15 for Haiku and $0.03 for Luna. This example isolates the effect of the tier; it does not predict model quality or latency.
At 300,000 input tokens and 60,000 output tokens, both models use their higher tier. The estimate is $0.30 for Haiku and $0.105 for Luna. The gap remains because the published over-threshold rates differ. Estimates use uncached input and exclude cache writes, tools, retries, taxes, and provider-specific discounts.
Haiku 5.5 vs Luna 6: Best-Fit Workloads
Consider Claude Haiku 5.5 for high-volume, latency-sensitive classification, extraction, routing, and subagent work when your stack already uses the Anthropic API. Anthropic describes Haiku as suited to these smaller, fast-turnaround tasks and lists adaptive thinking. Its standard token rates match the Luna rates, so validate whether its response quality, latency, and integration behavior improve your actual pipeline before choosing it.
GPT-6 Luna is a practical candidate for focused, repeated text workloads where predictable low cost matters. OpenAI positions Luna as an efficient model for high-volume tasks. Its standard rates match Haiku, but the 100,000-to-272,000 input range stays on the Luna standard schedule while Haiku has moved to higher rates. For long prompts, this can make Luna materially cheaper before either model reaches its context limit.
Compare both on representative requests for correctness, format compliance, latency, and accepted-result cost. Include failures, retries, and human corrections: cheaper tokens can still create more downstream work.
Haiku 5.5 vs Luna 6: A Practical Selection Rule
Use the expected prompt length as an early routing signal. If most requests stay below 100,000 input tokens, compare the models on output quality, response time, and provider integration because their base token rates are equal. If prompts often fall between 100,000 and 272,000 tokens, Luna has a price advantage on the listed token rates. If prompts exceed 272,000, calculate both higher-tier totals rather than extrapolating from the standard column.
For mixed workloads, route requests to the lower-cost model that clears your quality gate; reserve the alternative for task classes where tests show an advantage. Keep prompts, tools, output budgets, and acceptance checks fixed. Set a retry ceiling, and keep usage logs in your own system. ToolPilot does not receive token counts or prompt text.
Haiku 5.5 vs Luna 6: Caching, Context, and Limits
Prompt caching changes the input portion of a bill only when the provider recognizes reusable prompt content. Both models list cached input at $0.01 per million tokens on their standard schedules. Above the respective thresholds, Haiku lists $0.05 cached input and Luna $0.02. Compare cache-hit rates from your provider response metadata, and use the applicable tier rather than assuming every repeated token is cached.
Cache writes are also billed separately. Anthropic publishes five-minute and one-hour write options for Haiku, with different rates in its higher prompt tier. The OpenAI Luna record lists a single cache-write rate. The calculator and comparison tool exclude cache-write charges because they do not ask how many tokens are written; include those charges separately when estimating a cache-heavy workload.
The context window is a maximum capacity, not a recommendation to send a full window on every request. Haiku has a documented 1,000,000-token input context and Luna has 1,050,000; each lists a 128,000-token output limit. Long prompts can also incur higher prices well before the context ceiling. Recheck provider terms and your own usage before budgeting. This comparison reports vendor-published rates and model descriptions, not an independent benchmark or a universal winner.