Free AI token cost calculator. Estimate monthly API costs for OpenAI GPT, Anthropic Claude, Google Gemini and other LLM providers.
Learn prompt engineering, AI development, and machine learning with bestselling tech books.
Large Language Model APIs are priced per token — roughly 4 characters or 0.75 words. Pricing is split between input tokens (your prompt) and output tokens (the model's response). Output tokens are typically 3–5× more expensive.