Free modelsExplainedDaily archiveLive dashboard
LLM API guide

What Is an LLM API? A Plain-English Guide, With Prices

An LLM API lets your own code send text to an AI model like Claude, GPT or Gemini and get its answer back, paying a tiny amount per word instead of a monthly subscription. Here is how it works, what it costs today, and how to start.

The short answer

LLM stands for large language model, the kind of AI behind ChatGPT, Claude and Gemini. API stands for application programming interface: a web address your program can send requests to. Put together, an LLM API is a way for your app, script or website to ask an AI model a question and get the answer back as data, without anyone typing into a chat window.

You send a request with your prompt and an API key (a secret password that identifies you). The provider runs the model and sends back the reply, along with how many tokens it used. You are billed for those tokens.

What one API call looks like

This request asks a model a question through OpenRouter, which uses the same format as OpenAI and works with hundreds of models:

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "inclusionai/ling-3.0-tiny", "messages": [{"role": "user", "content": "Explain APIs in one sentence."}]}'

The reply is JSON: the model's answer plus a usage block counting input and output tokens. That count is what you pay for.

What an LLM API costs

APIs charge per million tokens (a token is about three quarters of a word), with separate prices for what you send and what comes back. Today: Claude Fable 5.2 (Claude) costs $8 in and $40 out; GPT-6.2 Astra Pro (OpenAI) costs $8 in and $40 out; Gemini 4 Neon (Gemini) costs $3 in and $15 out; DeepSeek V4.1 Flash 1017 (DeepSeek) costs $0.3 in and $1.2 out; Grok 4.7 (Grok) costs $2 in and $6 out, all per million tokens. A typical chatbot reply costs $0.03 on Claude Fable 5.2 and $0.000041 on inclusionAI: Ling 3.0 Tiny, the cheapest model on the list.

API or subscription?

A chat subscription such as Claude Pro ($20 a month) is for a person using the app. The API is for software: you pay only for what your code uses, which can be pennies for a small project or far more for a busy app. Subscriptions and API usage are billed separately, though Anthropic's Max ($100) and Ultra ($200) plans now include $100 and $200 a month of API credits (checked 22 November 2026).

Who offers LLM APIs

How to start

1. Get an API key from one provider. 2. Learn how tokens are counted so the bill makes sense. 3. Make your first call in Python. If you want to try it for nothing first, the free LLM API guide lists providers with free tiers.

Next: compare prices

Ready to pick a model? See the LLM API pricing table for all 360 models, the cheapest LLM APIs, and the cost calculator. By lab: Claude, OpenAI, Gemini, DeepSeek, Grok, Mistral, Qwen, Kimi, Meta Llama.

Questions

What does LLM API mean?

An LLM API is a web service that lets programs send prompts to a large language model and receive its responses, usually billed per token.

What is an LLM API call?

One request to the model: your prompt goes in, the answer comes back, and the provider records the input and output tokens for billing.

What is an LLM API key?

A secret string that identifies your account. Every request sends it, so keep it out of public code and websites.

What is an LLM API gateway?

A service such as OpenRouter that sits in front of many providers, so one key and one request format reach models from different labs.

Is an LLM API free?

Some are, with limits. Gemini, Groq, OpenRouter's free models and others have free tiers; paid use is billed per token.

Get this in your inbox at 7am

One free email each morning with the AI repos, models and stories that are picking up speed, including new free models. Your own time zone, no spam.

See today's email