Shipping an AI-powered SaaS feature in 2026 rarely means committing every prompt to a single flagship model. Frontier reasoning models now sit alongside sub-dollar workhorse tiers, prompt caching cuts repeated system-prompt input costs by 90% to 97.5%, and asynchronous batch endpoints slash token bills in half for background jobs. At the same time, unified gateways like OpenRouter and ultra-fast open-weight inference clouds like Groq and Together AI let builders mix frontier coding models with penny-per-million-token open models behind an OpenAI-compatible SDK. Here are six LLM APIs with verified live token schedules.
All per-million-token rates, caching multipliers, batch discounts, and tool fees were checked directly on each provider's official API pricing or model documentation page on 27 Nov 2026.
Anthropic's Claude platform is the go-to primary API for code generation, tool-heavy agents, and nuanced writing workflows. Its current lineup spans Claude Haiku 5.5 ($0.10/$0.50 per MTok up to 100K tokens), Claude Sonnet 5.5 ($2/$10 per MTok), Claude Opus 5.5 ($4/$20 per MTok), and Claude Fable 5.2 ($8/$40 per MTok), with 1M-token context included at standard rates on Sonnet, Opus, and Fable. Prompt caching cuts repeated context reads down to $0.10/MTok on Sonnet 5.5 and $0.20/MTok on Opus 5.5, while Batch processing halves all token charges.
Best for
AI coding assistants, autonomous multi-step agents, and document analysis apps with large shared system prompts.
Pricing
Pay-as-you-go per 1M tokens: Claude Haiku 5.5 $0.10 input / $0.50 output (<=100K tokens; $0.50 / $2.50 >100K); Claude Sonnet 5.5 $2.00 / $10.00 (cache hit $0.10); Claude Opus 5.5 $4.00 / $20.00 (cache hit $0.20); Claude Fable 5.2 $8.00 / $40.00; Batch API 50% off; Web search $10/1K searches; US-only residency 1.1x multiplier; Managed Agents $0.08/session-hr
OpenAI's developer platform pairs its flagship GPT-6.2 family with native realtime audio, live voice sessions, image generation, and managed container sandboxes inside the Responses API. Standard rates place gpt-6.2-sol at $2.00/$10.00 per MTok (with $0.10 cached input) and gpt-6.2-astra at $8.00/$40.00 per MTok, while cost-sensitive tasks can tap gpt-6-luna or background completion windows (30%-40% off). For ultra-low-latency UX, Fast (2x) and Ultrafast (3x promotional rate through Feb 2027) let you trade margin for speed per request.
Best for
Apps combining frontier text reasoning with realtime WebRTC voice, image generation, or hosted tool/file-search pipelines.
Pricing
Pay-as-you-go per 1M tokens (Standard): gpt-6.2-sol $2.00 input / $10.00 output ($0.10 cached); gpt-6.2-astra $8.00 / $40.00 ($0.40 cached); gpt-6-astra $10.00 / $50.00; Flex tier gpt-6.1-terra $0.50 / $2.50 and gpt-6-luna $0.05 / $0.25; Batch API 50% off; Fast 2x / Ultrafast 3x (6x from Mar 2027); Web search $10/1K calls; File search $0.10/GB/day + $2.50/1K calls
Google's Gemini Developer API via AI Studio gives indie builders the easiest $0 starting ramp in the market: Flash models such as gemini-3.5-flash-lite, gemini-3.8-flash, and gemini-4-hydrogen run free of charge for prototyping (noting Google uses free-tier content to improve products). Upgrading to the Paid tier guarantees your prompts are not used for training while keeping rates aggressive ($0.30/$2.50 per MTok on gemini-3.5-flash-lite and $1.50/$7.50 on gemini-4-hydrogen), and adds 5,000 free monthly Google Search grounding requests plus 50% Batch and Flex discounts.
Best for
Bootstrapped builders testing for free in AI Studio and production apps needing multimodal video/audio or Google Search grounding.
Pricing
Free tier $0 on Flash/Hydrogen models (content used to improve products); Paid tier per 1M tokens (no training on data): gemini-3.5-flash-lite $0.30 input / $2.50 output; gemini-3.8-flash $0.75 / $3.75 through Dec 31, 2026 ($1.50 / $7.50 Jan 2027); gemini-4-hydrogen $1.50 / $7.50; gemini-4-carbon & argon $2.00 / $10.00 through Nov 30 ($4.00 / $20.00 Dec 1); gemini-4-neon $3.00 / $15.00; Batch & Flex 50% off; Grounding 5,000 free/mo then $14/1K
OpenRouter solves vendor lock-in and uptime headaches by unifying Claude, GPT, Gemini, DeepSeek, Qwen, and Llama endpoints behind one OpenAI-compatible URL. Inference itself is billed at each underlying provider's list price with zero per-token markup; instead, OpenRouter charges a 5.5% platform fee when purchasing credits on Standard (8% on Business), or lets you route up to $25,000/month through your own provider API keys (BYOK) for free. Automatic provider fallback and Zero Completion Insurance mean failed or empty responses never drain your balance.
Best for
Indie apps offering users a model switcher, SaaS products needing automatic cross-provider failover, and unified cost tracking.
Pricing
Free $0 (25+ free models across 4 providers, 20 req/min and 50 req/day, rising to 1,000/day after $10 credit purchase); Standard pay-as-you-go (600+ models, 5.5% fee on credit top-ups, list-price tokens, $25K/mo free BYOK then 5%); Business pay-as-you-go (8% fee on credit top-ups, EU/US in-region routing, 1,000 workspaces); Enterprise custom
Together AI gives developers one of the broadest catalogs of serverless open-weight models, including DeepSeek V4.1 Flash ($0.30/$1.20 per MTok), Qwen3.8 Flash ($0.15/$0.47), GLM-5.3-Flash ($0.15/$0.50), gpt-oss-120B ($0.15/$0.60), and free Ternary Bonsai 27B, alongside image, video, speech, and reranking APIs. Unlike pure inference wrappers, Together lets you graduate seamlessly from pay-per-token serverless endpoints to Provisioned Throughput, dedicated H100/H200/B200 hardware (from $5.49/hr dedicated), or managed LoRA fine-tuning starting at $0.34 per million tokens.
Best for
Teams building on DeepSeek, Qwen, GLM, or Llama open weights who also want fine-tuning, media models, or dedicated GPU paths.
Pricing
Serverless per 1M tokens: Ternary Bonsai 27B $0 (free); Qwen3.8 Flash $0.15 / $0.47; gpt-oss-120B $0.15 / $0.60; GLM-5.3-Flash $0.15 / $0.50; DeepSeek V4.1 Flash $0.30 / $1.20; GLM-5.3 $1.40 / $4.40; Kimi K3.1 Pro $2.00 / $10.00; Batch API & cached input discounts available; Dedicated GPUs from $5.49/hr (H100); LoRA fine-tuning from $0.34/1M tokens ($4 min)
When perceived latency determines whether a user feels like they are talking to a real-time assistant or waiting on a spinner, Groq's custom LPU hardware stands apart. Its self-serve Developer tier delivers GPT-OSS 20B at roughly 1,000 tokens per second for $0.075/$0.30 per million tokens and GPT-OSS 120B at 500 tokens per second for $0.15/$0.60 per million tokens, alongside Qwen3.8-27B at 450 tokens per second and Whisper Large V3 Turbo speech-to-text at $0.04 per audio hour. Note that several popular Llama and enterprise models on Groq are gated behind Contact Sales.
Best for
Voice agents, autocomplete, real-time classification, and interactive UIs where sub-second completion speed is mandatory.
Noticeably snappier time-to-complete than standard GPU clouds for voice and multi-step chains
Sub-dime GPT-OSS 20B and $0.15/$0.60 GPT-OSS 120B rates keep unit economics tiny
250K tokens-per-minute self-serve Developer limits handle substantial early SaaS concurrency
Cons
Much smaller self-serve model catalog than OpenRouter or Together AI
Production Llama 3.1 8B, Llama 3.3 70B, and several new models require Enterprise Contact Sales
131K context window across self-serve production text models is smaller than 1M-context frontier APIs
07
How to Control LLM API Margins in Production SaaS
Route requests by task complexity instead of sending every user click to a flagship reasoning model. Classification, extraction, moderation, and query rewriting run reliably on lightweight models like Claude Haiku 5.5 ($0.10/$0.50 per MTok), Gemini 3.5 Flash-Lite ($0.30/$2.50 per MTok), or GPT-OSS 20B on Groq ($0.075/$0.30 per MTok), saving frontier models for multi-step coding, synthesis, and customer-facing reasoning.
Enable prompt caching and asynchronous batching as soon as your prompt templates stabilize. Anthropic's cache reads drop to 0.025x-0.1x of base input rates (with 5-minute writes at 1.25x), OpenAI discounts cached inputs by up to 95% on GPT-6.2 models, and Anthropic, OpenAI, and Google Gemini all offer a 50% Batch API discount for offline document processing, evals, and nightly summaries.
Watch hidden ancillary costs beyond text tokens: built-in web search tools on Claude API and OpenAI API both charge $10 per 1,000 searches on top of retrieved content tokens (while Gemini includes 5,000 free Google Search grounding requests per month before charging $14 per 1,000), and data-residency pinning on Claude or OpenAI applies a 1.1x regional uplift.
Finally, consider adding a fallback or routing layer early so a single provider outage or rate-limit wall never breaks your app. OpenRouter gives you 600+ models across 80+ providers behind one API key (or lets you bring your own provider keys fee-free up to $25,000/month), while OpenAI-compatible open-weight hosts like Together AI and Groq make switching providers a two-line base-URL change.
08
Frequently asked questions
Should I integrate Anthropic or OpenAI directly, or start with OpenRouter?
If your product centers on one frontier model family and uses provider-specific features like Anthropic's Managed Agents or OpenAI's Realtime WebRTC voice API, integrate directly to avoid OpenRouter's 5.5%-8% credit-purchase fee. If your app lets users switch models or needs instant fallback across providers, OpenRouter's unified endpoint and $25K/month free BYOK allowance are hard to beat.
Which LLM API has the best free tier for prototyping in 2026?
Google Gemini API offers the strongest permanent free tier on its Flash and Hydrogen models inside AI Studio, though Google uses free-tier data to improve products until you switch to Paid. OpenRouter also provides 25+ free open models (expanding to 1,000 requests/day after a $10 credit top-up).
How much money does prompt caching actually save?
For RAG apps, coding agents, or chatbots that send a long system prompt and tool schema on every turn, prompt caching cuts repeated input costs by 90% to 97.5%. On Claude Sonnet 5.5, base input tokens cost $2.00 per million while cache hits cost $0.10 per million; on OpenAI gpt-6.2-sol, cached inputs drop from $2.00 to $0.10 per million.
When should I use Groq or Together AI instead of frontier models?
Use Groq when latency matters most (such as voice pipelines, autocomplete, or fast routing), and use Together AI when you want low-cost open-weight models like DeepSeek or Qwen, LoRA fine-tuning, or media APIs at a fraction of frontier token prices.
Submit it to Hauntboard. Free listings show the Hauntboard badge and get human review in about 72 hours. Launching on Hauntboard doesn't affect these rankings.