GitHub ModelsGitHub Models (Azure AI)
Official GitHub & Azure playground. Free daily rate limits across GPT-4o, Claude 3.5, and DeepSeek R1.
Core Free Tier
150 次 / 天 Requests (高阶模型) + 50次/天 (思考模型)每日刷新
只要有 GitHub 个人访问令牌(PAT),即可免费调用 GPT-4o 与 DeepSeek R1。
Reset Cycle: 每日刷新
Eligibility & Verification Requirements
Phone VerificationNo Phone Needed
Credit CardNo Card Needed
Network / RegionGlobal Direct
Concurrency RateStandard Tier
10-Second Drop-in Integration Code (OpenAI Compatible)
curl https://models.inference.ai.azure.com/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "gpt-4o",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'from openai import OpenAI
client = OpenAI(
base_url="https://models.inference.ai.azure.com",
api_key="YOUR_API_KEY",
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://models.inference.ai.azure.com",
apiKey: "YOUR_API_KEY",
});
const response = await client.chat.completions.create({
model: "gpt-4o",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);Gotchas & Risk Precautions
- 使用 GitHub Personal Access Token 作为 API Key。
