$1 USD covers tens of millions of tokens · Deposit whatever you need
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.).
meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo meta-llama/Meta-Llama-3.3-70B-Instruct-Turbo deepseek-ai/DeepSeek-R1 Qwen/Qwen2.5-72B-Instruct DeepInfra 是全球知名的专注于开源大模型、图像模型、语音与向量嵌入的超低价 GPU Serverless 云推理平台。其以极致成本控制著称,同规格模型费率通常比官方或大型云平台便宜数倍甚至数十倍。
需要注意的是,DeepInfra 不设永久免费模型层,官方要求绑定信用卡或预付款开通。但其优势在于完全按实际 Token 计费、没有最低充值门槛限制,并且单模型默认给予高达 200 的并发配额,是开发者跑高频生产或大规模批处理最具性价比的选择之一。
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.
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.
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.
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.
OPTIONS preflight returns access-control-allow-origin: *, enabling direct browser calls in web apps and client-side extensions.
Qualifying funded startups can apply for the DeepStart program to receive up to 1 billion free inference tokens.
Add a credit card or make a micro-deposit in Billing to activate your API access (no minimum recharge threshold).
Go to Console ↗Copy your API key from Dashboard and set base_url to https://api.deepinfra.com/v1/openai to begin building!
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)