AIght

All LLM prices / OpenAI

gpt-4.1-nano price per 1M tokens

gpt-4.1-nano costs $0.10 per 1M input tokens and $0.40 per 1M output tokens, and $0.025 per 1M cached input tokens read.

Per 1M tokensInputOutputCache readCache write
gpt-4.1-nano$0.10$0.40$0.025—

What a call costs

A typical agent step of 20,000 input and 1,500 output tokens costs $0.00260 on gpt-4.1-nano, so 10,000 of them a month is $26.00. Serving the repeated part of the prompt from cache cuts the input side to $0.025 per 1M.

gpt-4.1-nano on other providers

Listed asInputOutputCache readCache write
azure/eu/gpt-4.1-nano$0.11$0.44$0.028—
azure/gpt-4.1-nano$0.10$0.40$0.025—
azure/us/gpt-4.1-nano$0.11$0.44$0.028—
openrouter/openai/gpt-4.1-nano$0.10$0.40$0.025—
replicate/openai/gpt-4.1-nano$0.10$0.40——
vercel_ai_gateway/openai/gpt-4.1-nano$0.10$0.40$0.025—

Price history

No change to the listed rates since this log began on 2026-10-04.

Price a call with the free API

No key, no account. It uses this same table, and with "usage_shape": "openai" it takes the cached tokens out of prompt_tokens first, so they aren't billed twice.

curl -s https://api.aight.studio/api/cost \
  -H 'content-type: application/json' \
  -d '{"model": "gpt-4.1-nano", "input_tokens": 20000, "output_tokens": 1500, "cache_read_tokens": 12000}'

Returns cost_usd, a breakdown per token type, the rates per 1M, and when the table last changed. Rates only: GET https://api.aight.studio/api/pricing?models=a,b. Rate-limited per client; an unknown model is a 404, never $0. Full API docs.

Which line of your agent spends it? AIght traces each gpt-4.1-nano call to the line of code that made it. For coding agents, pip install aight && aight-collect --report prices your Claude Code, Codex or Gemini CLI history locally with no account.