DeepInfra
Serverless inference for open-source LLMs and generative models. Pay-per-token with fast cold starts.
At a glance: DeepInfra has 115 models listed on Inference Hub: 95 LLMs, 7 multimodal models, 4 embedding models, 3 coding models, 3 video models, 2 image models and 1 text-to-speech model. The cheapest text model is Llama 3.2 1B Instruct at $0.0050 input and $0.010 output per 1M tokens, and the most expensive is Claude Fable 5 at $10.00 input and $50.00 output per 1M tokens. Image generation starts at $0.070 per image with Flux 2 Max. Free tier: available. Prices are checked against DeepInfra's own pricing every week.
Features
Compliance
None listed
Pricing Model
per tokenDetails
https://api.deepinfra.com/v1/openai Model Catalog (115)
DeepInfra guides
Zero Data Retention for AI APIs: Which Providers Store Your Prompts, and How to Turn It Off
Which AI API providers store prompts, for how long, and how to get zero data retention at OpenAI, Anthropic, Google, Azure, Bedrock, OpenRouter and 20 hosts.
Nov 2026Gemini API Pricing 2026: Every Model, the Free Tier and the Cheapest Provider
Gemini API pricing per 1M tokens: Gemini 4, 3.8 Flash, 3.1 Pro, 2.5 and Gemma. What the free tier covers, 50% Batch/Flex discounts, cheapest providers.
Nov 2026Alibaba Cloud Qwen API Pricing in 2026: Free Tier, Model Studio Costs, and Cheapest Alternatives
Qwen API prices for Qwen3.8 Max, Qwen3.8 Flash and Qwen3.7 on Alibaba Cloud Model Studio, the free quota, and cheaper third-party Qwen API providers.
Nov 2026Together AI Pricing in 2026: Serverless, Dedicated Endpoints and Fine-Tuning
Together AI API pricing: serverless from $0.15/1M tokens, Kimi K3 $3/$15, H100 clusters $3.99/hr, dedicated $5.49/hr, fine-tuning from $0.34/1M. No free trial.
DeepInfra API FAQ
Is the DeepInfra API free?
Yes, DeepInfra has a free tier. Paid usage is billed per model.
What is the cheapest DeepInfra model?
Llama 3.2 1B Instruct at $0.005 in / $0.01 out per 1M tokens, based on the 115 models we track for DeepInfra.
How many models does DeepInfra offer?
We track 115 DeepInfra models: 95 LLM, 7 multimodal, 4 embedding, 3 coding, 3 video generation, 2 image generation, 1 text-to-speech.
Is the DeepInfra API OpenAI-compatible?
Yes. DeepInfra exposes an OpenAI-compatible endpoint, so you can use the OpenAI SDKs by changing the base URL and API key.
Run DeepInfra? Add a "Prices tracked on Inference Hub" badge to your site, or email hello@inferencehub.org if a price here is wrong.