Calculadora de Costos y Tokens de IA

Modela tu factura mensual exacta entre proveedores con proporción entrada/salida, caché y Batch.

Respuesta directa

¿Cómo calcular con precisión el costo mensual de una API LLM?

Multiplica los tokens de entrada mensuales por la tarifa por 1M, suma los tokens de salida por su tarifa y aplica los descuentos de caché de prompts (75%–95%) y API Batch (50%).

Active Gateway: Direct Provider API
0 shared

Estimates use catalog prices and a 30-day month. Prompt-cache share, batch eligibility, reasoning-token volume, and gateway adjustments are assumptions; FX conversions use fixed rates, not live exchange data. Actual provider bills vary.

Quick Workload Presets

Pick a scenario or fine-tune token parameters and cloud host below.

</>EmbedFixed FX

Token & Usage ParametersLLM API

tokens
Quick:
tokens
Quick:
req/day
Up to 90% Off
Flat 50% Off
DeepSeek R1 & o1
Prompt Depth Tier (Long-Context Cliffs)
1
Executive Savings LedgerDirect Provider API
$186.00/ month saved

Switching from GPT-4o ($195.00/mo) to GPT-6 Luna ($9.00/mo) saves 95%.

$2,232.00 / year ROI
Annualized capital savings
Sort:
Provider:
GPT-6 LunaOpenAILowest CostNot disclosed by provider

High-volume summarization, routing, classification, extraction pipelines

$0.10/1M in$0.50/1M out103 t/s1050k ctx
$9.00/ mo
$0.30 / day · $109.50 / yr
Specs & Hardware →
Claude Haiku 5.5AnthropicNot disclosed by provider

High-volume classification, extraction, routing (prompts ≤ 100K tokens; >100K input/output billed $0.50/$2.50)

$0.10/1M in$0.50/1M out256 t/s1000k ctx
$9.00/ mo
$0.30 / day · $109.50 / yr
Specs & Hardware →
DeepSeek FlashDeepSeekOpen weights (Hugging Face)

Open-weights MIT-licensed workhorse: agents, extraction, long-doc analysis (off-peak pricing; weekday peak hours 01:00-04:00 & 06:00-10:00 UTC double rates; cache hit $0.003)

$0.15/1M in$0.60/1M out170 t/s1000k ctx
$11.70/ mo
$0.39 / day · $142.35 / yr
Specs & Hardware →
GPT-4o MiniOpenAIMicrosoft Azure NVIDIA H100

High-volume text processing, fast chatbots, structured JSON extraction

$0.15/1M in$0.60/1M out— t/s128k ctx
$11.70/ mo
$0.39 / day · $142.35 / yr
Specs & Hardware →
Qwen 2.5 72BAlibabaNVIDIA H100 SXM5

Top open-weights coding, math, and multilingual benchmark performance

$0.35/1M in$0.40/1M out— t/s128k ctx
$15.30/ mo
$0.51 / day · $186.15 / yr
Specs & Hardware →
Llama 3.3 70B (Groq/Together)MetaGroq LPU / Cerebras CS-3

Open-weights privacy, self-hosting or ultra-cheap hosted inferencing

$0.59/1M in$0.79/1M out— t/s128k ctx
$27.18/ mo
$0.91 / day · $330.69 / yr
Specs & Hardware →
Gemini 3.5 Flash-LiteGoogleGoogle TPU (not disclosed in detail)

Ultra-cheap high-frequency classification, translation, extraction at scale

$0.30/1M in$2.50/1M out317 t/s1000k ctx
$39.00/ mo
$1.30 / day · $474.50 / yr
Specs & Hardware →
DeepSeek V4 ProDeepSeekOpen weights (Hugging Face)

Open-weights frontier-style reasoning at low cost (MIT license; off-peak pricing; peak hours double rates; cache hit $0.022)

$0.66/1M in$1.98/1M out80 t/s1000k ctx
$43.56/ mo
$1.45 / day · $529.98 / yr
Specs & Hardware →
Gemini 3.8 FlashGoogleGoogle TPU (not disclosed in detail)

Long-horizon agentic tasks and multimodal general workloads (promo price through 2026-12-31; rises to $1.50/$7.50 on 2027-01-01)

$0.75/1M in$3.75/1M out113 t/s1000k ctx
$67.50/ mo
$2.25 / day · $821.25 / yr
Specs & Hardware →
Grok 4.3xAIColossus cluster (not disclosed in detail)

High-volume reasoning and coding at frontier-adjacent pricing (prompts ≥ 200K tokens bill $2.50/$5.00)

$1.25/1M in$2.50/1M out79 t/s1000k ctx
$67.50/ mo
$2.25 / day · $821.25 / yr
Specs & Hardware →
GPT-5.4 MiniOpenAINot disclosed by provider

High-throughput chat, tool calling, structured output at low cost

$0.75/1M in$4.50/1M out212 t/s400k ctx
$76.50/ mo
$2.55 / day · $930.75 / yr
Specs & Hardware →
Grok 4.7xAIColossus cluster (not disclosed in detail)

Real-time information synthesis, large codebases; prompts ≥ 200K tokens bill $4.00/$12.00

$2.00/1M in$6.00/1M out72 t/s500k ctx
$132.00/ mo
$4.40 / day · $1,606.00 / yr
Specs & Hardware →
Mistral Large 2MistralNVIDIA H100 Cluster

Multilingual tasks, European compliance, enterprise code generation

$2.00/1M in$6.00/1M out— t/s128k ctx
$132.00/ mo
$4.40 / day · $1,606.00 / yr
Specs & Hardware →
GPT-6.1 SolOpenAINot disclosed by provider

Near-frontier intelligence at flagship cost; complex work with tool use

$2.00/1M in$10.00/1M out55 t/s1050k ctx
$180.00/ mo
$6.00 / day · $2,190.00 / yr
Specs & Hardware →
Claude Sonnet 5.5AnthropicDeveloper FavoriteNot disclosed by provider

Best balance of speed and intelligence; coding, agents, enterprise RAG

$2.00/1M in$10.00/1M out156 t/s1000k ctx
$180.00/ mo
$6.00 / day · $2,190.00 / yr
Specs & Hardware →
Gemini 4 NeonGoogleGoogle TPU v6e (Trillium)

Ranked #1 on Models Engineering Index; frontier coding, complex logic, multimodal engineering, and 2M token context

$2.50/1M in$10.00/1M out135 t/s2000k ctx
$195.00/ mo
$6.50 / day · $2,372.50 / yr
Specs & Hardware →
GPT-4o (Omni)OpenAIIndustry BaselineMicrosoft Azure NVIDIA H100

Complex multimodal reasoning, coding, and production enterprise apps

$2.50/1M in$10.00/1M out— t/s128k ctx
$195.00/ mo
$6.50 / day · $2,372.50 / yr
Specs & Hardware →
Command R+ (Cohere)CohereAWS Bedrock / Cohere Custom Cloud

Enterprise RAG, citation grounding, 128k context multilingual tool use

$2.50/1M in$10.00/1M out— t/s128k ctx
$195.00/ mo
$6.50 / day · $2,372.50 / yr
Specs & Hardware →
Gemini 3.1 Pro (Preview)GoogleGoogle TPU (not disclosed in detail)

Multimodal understanding, vibe-coding, agentic tool use (prompts > 200K tokens bill $4.00/$18.00)

$2.00/1M in$12.00/1M out124 t/s1000k ctx
$204.00/ mo
$6.80 / day · $2,482.00 / yr
Specs & Hardware →
Claude Opus 5.5AnthropicNot disclosed by provider

Long-running agentic coding and knowledge work at near-frontier quality

$4.00/1M in$20.00/1M out112 t/s1000k ctx
$360.00/ mo
$12.00 / day · $4,380.00 / yr
Specs & Hardware →
Gemini 4 ArgonGoogleGoogle TPU (not disclosed in detail)

Frontier reasoning for complex software engineering and multi-step agents (launch price $2.00/$10.00 through 2026-11-30; rises to $4.00/$20.00 2026-12-01)

$4.00/1M in$20.00/1M out56 t/s1000k ctx
$360.00/ mo
$12.00 / day · $4,380.00 / yr
Specs & Hardware →
GPT-5.5OpenAINot disclosed by provider

Previous flagship generation; still strong general-purpose reasoning

$5.00/1M in$30.00/1M out79 t/s922k ctx
$510.00/ mo
$17.00 / day · $6,205.00 / yr
Specs & Hardware →
GPT-6 AstraOpenAINot disclosed by provider

Most demanding reasoning and coding workloads, frontier agentic systems

$10.00/1M in$50.00/1M out47 t/s1050k ctx
$900.00/ mo
$30.00 / day · $10,950.00 / yr
Specs & Hardware →
Claude Fable 5.1AnthropicNot disclosed by provider

Demanding reasoning and long-horizon agentic work, extended thinking

$10.00/1M in$50.00/1M out88 t/s1000k ctx
$900.00/ mo
$30.00 / day · $10,950.00 / yr
Specs & Hardware →
Enterprise System Architect (Economize Cloud)

Production Workload Cost Architect

Simulate end-to-end multi-turn chat sessions and complete RAG pipelines with embeddings, rerankers, and prompt caching.

Multi-Turn Conversation History Caching

In multi-turn chat, previous turns are cached after turn 1 at up to 90% discount on Claude Sonnet 5.5, DeepSeek Flash, and Gemini.

GPT-6 LunaCheapest
$144.29/ mo
$0.0016 / chat
90,000 chats/mo · 103 t/s stream
Claude Haiku 5.5
$144.29/ mo
$0.0016 / chat
90,000 chats/mo · 256 t/s stream
DeepSeek Flash
$181.87/ mo
$0.0020 / chat
90,000 chats/mo · 170 t/s stream
GPT-4o Mini
$181.87/ mo
$0.0020 / chat
90,000 chats/mo · unrated
Qwen 2.5 72B
$193.97/ mo
$0.0022 / chat
90,000 chats/mo · unrated
Llama 3.3 70B (Groq/Together)
$353.64/ mo
$0.0039 / chat
90,000 chats/mo · unrated

Preguntas frecuentes

¿Qué API de IA es la más barata por millón de tokens ahora?

Los niveles económicos de DeepSeek, Google Gemini Flash-Lite y OpenAI mini lideran el precio por token. Compara siempre el costo combinado según tu proporción real de entrada y salida.

¿Cuándo conviene una suscripción de $20/mes frente a la API por uso?

Si envías menos de ~25 prompts cortos al día, la API directa suele costar $3–$8/mes, ahorrando 60%–85% frente a ChatGPT Plus o Claude Pro. La suscripción fija gana en sesiones largas de programación diaria.

¿Cuánto ahorran el caché de prompts y las APIs Batch?

El caché de prompts reduce el costo de instrucciones y contexto repetido en un 75%–95%. Las APIs Batch asíncronas reducen tanto entrada como salida en un 50%.

¿Por qué los agentes de programación consumen tantos tokens?

Cada turno reenvía el prompt del sistema, esquemas de herramientas e historial acumulado. Reiniciar sesiones y activar caché de prefijos reduce el gasto drásticamente.