DeepInfra

DeepInfra

Ultra-low-cost serverless ML inference API hosting open-weight LLMs like DeepSeek, Qwen, GLM, and Llama 4 with prompt caching and OpenAI compatibility.

When an AI feature scales to millions of daily users, paying $3 to $15 per million tokens on closed proprietary APIs can wipe out your SaaS gross margins overnight. DeepInfra provides one of the lowest-cost serverless inference APIs on the market for open-weight language, vision, embedding, and speech models. Through a single OpenAI-compatible endpoint, developers can run DeepSeek V4 and R1, Qwen 3.8 and Qwen 4, GLM 5.3, Kimi, and Llama 4 with automatic prompt caching and zero minimum monthly commitments.

Key serverless inference capabilities

  • Aggressive per-token open-model pricing: Serves high-volume models like DeepSeek-V4-Flash ($0.09 in / $0.18 out per 1M tokens), Llama-4-Scout ($0.10 / $0.30), and GLM-5.3-Flash ($0.15 / $0.50).
  • Deep prompt cache discounts: Drops cached input token costs down to $0.0029 to $0.018 per 1M tokens on supported DeepSeek and Qwen models for repetitive agent prompts.
  • Multimodal model catalog: Hosts text LLMs, embeddings, rerankers, Whisper speech-to-text, and image generation endpoints under one unified billing ledger.
  • Dedicated custom container deployments: Lets high-volume teams graduate from shared serverless endpoints to dedicated autoscaling GPU deployments when needed.

Pricing and limitations

DeepInfra operates strictly on pay-as-you-go usage billing with no permanent free monthly tier (you add a payment method or prepaid balance to call the API). Token pricing spans from under $0.10 per 1M input tokens on compact models (such as Qwen3.5-9B at $0.10/$0.15 and DeepSeek-V4.1-Flash promo rates around $0.098/$0.294) up to $1.30/$2.60 for DeepSeek-V4-Pro and $1.65/$4.95 for Qwen3.8-Max, with zero idle infrastructure costs. The main trade-off for budget serverless rates is that peak-hour token throughput can fluctuate more than custom silicon providers like Groq or Cerebras, and you have fewer managed fine-tuning pipelines than Together AI. Route your high-volume background summarization, classification, and RAG extraction jobs to DeepInfra’s OpenAI-compatible endpoint to cut inference spend immediately.

Ready to try DeepInfra?

Experience the full capabilities on their official website.

Visit Official Website