已退役停服 · 推荐迁移至百度千帆、商汤日日新、Google AI Studio 或 Azure AI Foundry
https://models.inference.ai.azure.com 💡 在任何支持 OpenAI API 的客户端(如 NextChat、Cherry Studio、沉浸式翻译等)中,直接填入上方地址作为 Base URL 即可。
gpt-4o gpt-4o-mini DeepSeek-R1 Meta-Llama-3.3-70B-Instruct 微软与 GitHub 官方正式宣布:GitHub Models 已于 2026 年 7 月 30 日完全退役停服(GitHub Models has been fully retired as of July 30, 2026)。
目前其在线试玩 Playground、模型目录 Model Catalog、推理接口 Inference API (models.inference.ai.azure.com) 以及 BYOK 自带 Key 功能均已彻底关闭下线。
原 GitHub Models 用户如需寻找平替,官方推荐使用 Azure AI Foundry;如果需要继续享受免绑卡、每日自动回血的免费算力,推荐迁移至百度千帆(送 1700万 Tokens 含 DeepSeek R1)、Google AI Studio(19款免费模型)、商汤日日新(双池6万回血)或 SiliconFlow。
2026-07-30 起,所有向 https://models.inference.ai.azure.com 发送的推理请求均会报错失效,请停止在项目中使用原有 PAT 密钥。
微软官方推荐的原厂平替是 Azure AI Foundry,支持更完整的企业级模型托管,但需要注册 Azure 账号并完成实名绑定。
如果需要免绑卡零门槛的免费 API,首选 Google AI Studio(Gemini 3.8 Flash 1M 上下文)、百度千帆(送 1700万 Tokens 含 DeepSeek R1)、或商汤日日新。
请检查代码与客户端中的 Base URL,移除 https://models.inference.ai.azure.com,避免无效报错。
推荐前往 FreeAI Dog 首页或厂商列表,领取百度千帆(1700万 Tokens)、Google AI Studio 或商汤日日新的免费 Key。
只需在 NextChat、ChatBox 或代码中将 Base URL 与 API Key 换成新平台,几秒钟即可恢复满血调用!
from openai import OpenAI
client = OpenAI(
api_key="your_api_key_here", # 填入申请的 Key
base_url="https://models.inference.ai.azure.com"
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[
[object Object]
]
)
print(response.choices[0].message.content)