DeepInfra

● 24h Uptime 99.8% (Rock-Bottom GPU Cloud)

$1 USD covers tens of millions of tokens · Deposit whatever you need

💡 HIGHLIGHT

The world's most economical GPU serverless inference cloud: Llama 8B starting at $0.02/1M tokens, default 200 concurrency, and zero minimum deposit.

⚡ Speed & Latency
220ms ~ 550ms
Global distributed GPU serverless clusters · Full CORS wildcard (*) support
🎁 Free Quota & Policy
No permanent free tier · Pure pay-as-you-go (no min deposit)
Llama 8B starts at $0.02/1M · Default 200 concurrency per model
🛡️ Auth & Access Requirements
Generate Bearer API Key in dashboard
Native /v1/openai compatible endpoint; zero code change required
📊 Concurrency & Context
Default 200 concurrent requests/model (thousands of RPM)
Industry's most affordable pay-as-you-go rates for heavy production

🔌 OpenAI-Compatible Base URL

https://api.deepinfra.com/v1/openai

💡 Directly paste the address above as Base URL into any OpenAI-compatible client (NextChat, Cherry Studio, Immersive Translate, etc.).

📋 Featured Models:

Click Model ID to copy
极致低价 meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo
$0.02/1M 极低输入费率,128K 上下文
70B旗舰 meta-llama/Meta-Llama-3.3-70B-Instruct-Turbo
$0.10 in / $0.32 out 极致性价比
满血推理 deepseek-ai/DeepSeek-R1
DeepSeek-R1 满血深度逻辑思考旗舰
通义增强 Qwen/Qwen2.5-72B-Instruct
通义千问 72B 高智力开源标杆

🎁 Free Tier Reality & Limits

无永久免费层(部分渠道报告 $1-5 体验金,官方未承诺);纯按量计费无最低充值
🔄 Reset Cycle 纯按量计费;充多少用多少
🛡️ Overage Behavior 并发超限返回 HTTP 429,余额不足返回 HTTP 402,无自动透支扣费
📋 Access Requirements

DeepInfra 是全球知名的专注于开源大模型、图像模型、语音与向量嵌入的超低价 GPU Serverless 云推理平台。其以极致成本控制著称,同规格模型费率通常比官方或大型云平台便宜数倍甚至数十倍。

需要注意的是,DeepInfra 不设永久免费模型层,官方要求绑定信用卡或预付款开通。但其优势在于完全按实际 Token 计费、没有最低充值门槛限制,并且单模型默认给予高达 200 的并发配额,是开发者跑高频生产或大规模批处理最具性价比的选择之一。

⚠️ Worth Knowing & Gotchas

Payment Card or Prepayment Required

DeepInfra requires adding a credit card or prepaying balance to activate your API keys. While there is no minimum top-up requirement, a valid payment method is required.

No Permanent Free Tier

All models are billed on pay-as-you-go token rates. Informal reports of $1-5 trial credits are unconfirmed; rely on your deposited balance.

Rock-Bottom Rates ($0.02/1M tokens)

Pricing is DeepInfra's killer advantage: Llama 3.1 8B costs just $0.02/1M input tokens. A single $1 deposit can power millions of tokens.

High Throughput: 200 Concurrency / Model

Unlike platforms capped at 5–20 RPM, DeepInfra defaults to 200 concurrent requests per model, making it ideal for web scrapers and bulk data jobs.

Full CORS Wildcard (*)

OPTIONS preflight returns access-control-allow-origin: *, enabling direct browser calls in web apps and client-side extensions.

DeepStart for Startups (1 Billion Tokens)

Qualifying funded startups can apply for the DeepStart program to receive up to 1 billion free inference tokens.

🚀 30-Second Quick Setup Guide

01

Register on DeepInfra

Visit deepinfra.com and sign up with GitHub or email.

Go to Console ↗
02

Add Payment Method

Add a credit card or make a micro-deposit in Billing to activate your API access (no minimum recharge threshold).

Go to Console ↗
03

Generate Key & Call

Copy your API key from Dashboard and set base_url to https://api.deepinfra.com/v1/openai to begin building!

💻 Quick Python OpenAI SDK Example

from openai import OpenAI

client = OpenAI(
    api_key="your_api_key_here",  # 填入申请的 Key
    base_url="https://api.deepinfra.com/v1/openai"
)

response = client.chat.completions.create(
    model="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
    messages=[
        [object Object]
    ]
)

print(response.choices[0].message.content)

📖 Related In-Depth Tutorials & Strategies

Guides →
← Radar 🚀 Toolbox