API pricing

FriendliAI Pricing

FriendliAI charges from $0.400 per 1 million output tokens, depending on the model. Gemma 4 31B IT is the cheapest at $0.400/1M output and $0.140/1M input; its current flagship GLM-5.2 costs $4.40/1M output. The largest context window is 1.0M tokens (GLM-5.2). Prices are USD, current as of October 12, 2026.

Last updated · synced weekly from the upstream model catalog

Cheapest input

$0.140/1M

Gemma 4 31B IT

Cheapest output

$0.400/1M

Gemma 4 31B IT

Longest context

1.0M

GLM-5.2

Models priced

14

Avg $2.34/1M output

Pricing by model

All prices in USD per 1 million tokens. All 14 priced models, cheapest first.

ModelInput / 1MOutput / 1MContext
Gemma 4 31B IT
VisionReasoningTools
$0.140$0.400262K
Google Gemma 4 31B It$0.140$0.400262K
GLM-5.3-Flash
VisionReasoningToolsCache
$0.150$0.5001.0M
Zai Org Glm 5.3 Flash$0.150$0.5001.0M
MiniMax-M2.5
ReasoningToolsCache
$0.300$1.20197K
Minimaxai Minimax M2.5$0.300$1.20197K
DeepSeek Ai DeepSeek V3.2$0.500$1.50164K
DeepSeek V3.2
ReasoningToolsCache
$0.500$1.50164K
GLM-5.3
ReasoningToolsCache
$1.26$3.961.0M
Zai Org Glm 5.3$1.26$3.961.0M
GLM-5.1
ReasoningToolsCache
$1.40$4.40203K
GLM-5.2
ReasoningToolsCache
$1.40$4.401.0M
Zai Org Glm 5.1$1.40$4.40203K
Zai Org Glm 5.2$1.40$4.401.0M

Frequently asked questions

How much does FriendliAI cost per 1M tokens?

FriendliAI pricing starts at $0.400 per 1 million output tokens (Gemma 4 31B IT) across 14 models, with its current flagship GLM-5.2 at $4.40. Older premium models in the catalog list higher. Rates current as of October 12, 2026.

What is the cheapest FriendliAI model?

Gemma 4 31B IT is the cheapest FriendliAI model on both axes — $0.140 per 1M input tokens and $0.400 per 1M output. It is the right default for high-volume, low-complexity work such as classification, extraction and routing.

What is the largest FriendliAI context window?

GLM-5.2 has the largest context window in the FriendliAI catalog at 1.0M input tokens, with up to 131K output tokens per response.

Does FriendliAI support prompt caching?

Yes. GLM-5.3-Flash reads cached input at $0.030 per 1M tokens, against $0.150 per 1M uncached. Caching pays off when a long system prompt or document is reused across many requests.

Which FriendliAI models support reasoning or vision?

The FriendliAI catalog includes 7 reasoning models, 2 vision models, 7 with tool calling. Reasoning models bill their internal thinking as output tokens, so they cost more per visible response than the headline rate suggests.

How do I calculate my actual FriendliAI bill?

Multiply your input tokens by the input rate and your output tokens by the output rate, both per million, then add retries and any conversation history resent on each turn. Calcaas does this against your real usage pattern and shows the margin left at your price point.

Other providers

What will this actually cost you?

Per-token rates only tell you half the story. Calcaas multiplies them by your real usage — prompt size, response length, retries and conversation history — then shows the margin left at your price point.

Open the free cost calculator