aiapicompareaiapicompare
aiapicompare › All providers › DeepInfra

DeepInfra: API prices & models

DeepInfra offers 237 models in our daily price check (237 text). Below: the cheapest models, the best-rated models in the Arena leaderboard and how to connect DeepInfra.

Models237
Free models0
Cheapest text model$0.0050 / 1M
Base URLhttps://api.deepinfra.com/v1/openai
Go to DeepInfra ↗Setup guidePrice comparison

At a glance

Company and locationDeep Infra Inc. · Palo Alto (California), USA
Payment methodsCard or prepayment; invoice
Minimum top-upNot stated
FeesNot stated
Stores promptsNo (per provider)
Training on your dataNo (with exceptions)
Data handlingAccording to the provider, requests are not stored (only metadata such as cost); exceptions: image outputs briefly, batch jobs. No training – except for Google and Anthropic models, where their policies apply.
Sourcesdeepinfra.com/terms · deepinfra.com/pricing · docs.deepinfra.com/account/data-privacy

Based on the provider’s own information, checked on 2026-11-23 – without guarantee. Terms may change; the provider’s pages prevail. Report an error

Cheapest text models at DeepInfra

ModelInput / output per 1M
Llama 3.2 1B Instruct
meta-llama/Llama-3.2-1B-Instruct
$0.0050 / $0.010Go to provider ↗
Qwen3.5 0.8B
Qwen/Qwen3.5-0.8B
$0.010 / $0.050Go to provider ↗
Llama 3.2 3B Instruct
meta-llama/Llama-3.2-3B-Instruct
$0.020 / $0.020Go to provider ↗
Meta Llama 3.1 8B Instruct
meta-llama/Meta-Llama-3.1-8B-Instruct
$0.020 / $0.050Go to provider ↗
Meta Llama 3.1 8B Instruct Turbo
meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo
$0.020 / $0.040Go to provider ↗
Qwen3.5 2B
Qwen/Qwen3.5-2B
$0.020 / $0.100Go to provider ↗
gemma 4 E4B it
google/gemma-4-E4B-it
$0.020 / $0.100Go to provider ↗
Qwen2.5 Coder 7B
Qwen/Qwen2.5-Coder-7B
$0.025 / $0.050Go to provider ↗
Mistral 7B Instruct v0.3
mistralai/Mistral-7B-Instruct-v0.3
$0.028 / $0.054Go to provider ↗
Mistral Nemo Instruct 2407
mistralai/Mistral-Nemo-Instruct-2407
$0.029 / $0.030Go to provider ↗
DeepSeek OCR
deepseek-ai/DeepSeek-OCR
$0.030 / $0.100Go to provider ↗
L3 8B Lunaris v1
Sao10K/L3-8B-Lunaris-v1
$0.030 / $0.060Go to provider ↗
Meta Llama 3 8B Instruct
meta-llama/Meta-Llama-3-8B-Instruct
$0.030 / $0.040Go to provider ↗
Qwen3.5 4B
Qwen/Qwen3.5-4B
$0.030 / $0.150Go to provider ↗
gemma 2 9b it
google/gemma-2-9b-it
$0.030 / $0.060Go to provider ↗

Best-rated models available at DeepInfra

ModelInput / output per 1MArena (overall)
claude opus 5 5
anthropic/claude-opus-5-5
$4.00 / $20.00#5Go to provider ↗
claude fable 5
anthropic/claude-fable-5
$10.00 / $50.00#6Go to provider ↗
claude opus 4 7
anthropic/claude-opus-4-7
$5.00 / $25.00#10Go to provider ↗
gemini 3.7 flash
google/gemini-3.7-flash
$0.750 / $3.75#16Go to provider ↗
claude opus 5
anthropic/claude-opus-5
$5.00 / $25.00#17Go to provider ↗
Kimi K3
moonshotai/Kimi-K3
$2.85 / $14.25#19Go to provider ↗
gemini 3.1 pro
google/gemini-3.1-pro
$2.00 / $12.00#20Go to provider ↗
Qwen3.8 Max
Qwen/Qwen3.8-Max
$1.65 / $4.95#23Go to provider ↗
Kimi K3.1 Pro
moonshotai/Kimi-K3.1-Pro
$2.00 / $10.00#24Go to provider ↗
claude opus 4 8
anthropic/claude-opus-4-8
$5.00 / $25.00#27Go to provider ↗
MiMo V2.6 Pro
XiaomiMiMo/MiMo-V2.6-Pro
$0.430 / $0.870#28Go to provider ↗
GLM 5.3
zai-org/GLM-5.3
$0.900 / $4.00#30Go to provider ↗
gemini 3.5 flash
google/gemini-3.5-flash
$1.50 / $9.00#31Go to provider ↗
GLM 5.3 Flash
zai-org/GLM-5.3-Flash
$0.150 / $0.500#32Go to provider ↗
GLM 5.2
zai-org/GLM-5.2
$0.750 / $2.40#35Go to provider ↗

Rankings: Arena (arena.ai, formerly LMArena), dataset lmarena-ai/leaderboard-dataset, licensed under CC BY 4.0, as of 2026-11-23. Excerpt; variants with different reasoning effort merged and matched to our prices by aiapicompare. Not affiliated with Arena and not a recommendation.

Connect DeepInfra

OpenAI-compatible: use the base URL below with your DeepInfra API key. Step-by-step guides for VS Code, Cline, Cursor, Hermes and more: Setup guide →

from openai import OpenAI
import os

client = OpenAI(base_url="https://api.deepinfra.com/v1/openai", api_key=os.environ["DEEPINFRA_API_KEY"])

Other providers with the same models

NanoGPT · 106 shared modelsOpenRouter · 100 shared modelsUplinkSwitch · 79 shared modelsNovita AI · 60 shared modelsKyma API · 40 shared modelsCometAPI · 33 shared modelsAnyModel · 23 shared modelsChutes · 6 shared models

Facts from our own daily price check. Prices without guarantee – the provider’s website is authoritative. Data as of 2026-11-25 09:03 UTC. Prices in USD, excluding taxes. No guarantee.