AI APIs for Developers: Pricing, Keys and Errors
Per-token price comparisons, OpenAI-compatible gateways that give you one key for many models, and fixes for 401, 429 and quota errors.
All APIs guides
- OpenRouter Pricing (2026): Plans, Fees and BYOK
How OpenRouter pricing works: Free vs Standard vs Business vs Enterprise, platform fees, credits and BYOK. Official rates linked, no reprinted prices.
Updated November 24, 2026 - Gemini API Pricing (2026): Free Tier and Billing
How Gemini Developer API pricing works: Free vs Paid vs Enterprise, billing tiers, batch and caching. Official rates linked, no reprinted prices.
Updated November 19, 2026 - Grok API Pricing (2026): Credits, Invoices, Plans
How Grok API billing works: prepaid credits, invoiced billing, and why a Grok or X subscription does not cover API usage. Official rates linked.
Updated November 18, 2026 - How to Get an OpenAI API Key (2026): Create, Store and Use
Step-by-step: create an OpenAI API key at platform.openai.com/api-keys, add billing credits, store it safely and make a first Responses API call.
Updated November 9, 2026 - DeepSeek API 2026: Pricing, Flash vs V4 Pro, Off-Peak Hours
How DeepSeek's API tiers compare: deepseek-flash vs deepseek-v4-pro, peak vs off-peak hours in UTC, cache hits vs misses, and where to find official rates.
Updated October 25, 2026 - Fix AI API Errors: 401, 429, 529 and insufficient_quota
What each OpenAI and Anthropic API error code means, which ones retries can fix, and a copy-paste retry pattern that respects Retry-After.
Updated October 25, 2026 - How to Get a Gemini API Key (2026): Free and Paid
Get a Gemini API key in Google AI Studio: default project, auth keys vs standard keys, free tier vs paid tier, environment variables and a first test call.
Updated October 25, 2026 - How to Get a Grok API Key (xAI API) in 2026
Create a Grok API key in the xAI console, set XAI_API_KEY, call grok-4.7 with the OpenAI SDK or xai-sdk, and see how API billing works with subscriptions.
Updated October 25, 2026 - OpenAI API Pricing 2026: GPT-6 Model Tiers Explained
How OpenAI's API tiers compare: GPT-6 Astra, GPT-6.1 Sol and Luna, Batch, Flex, Fast, Ultrafast and usage tiers, with links to the official price list.
Updated October 18, 2026