GPT-4o、Claude 4、Gemini 2.5、DeepSeek R1 等,持续更新
标准 OpenAI 接口格式,SDK / 第三方客户端即插即用
用多少扣多少,余额不足自动提示,透明可查
https://shiyiaierer.top/api/v1/chat/completionsfrom openai import OpenAI
client = OpenAI(
base_url="https://shiyiaierer.top/api/v1",
api_key="sk-你的APIKey"
)
response = client.chat.completions.create(
model="gpt-4.1-mini",
messages=[{"role": "user", "content": "你好"}]
)
print(response.choices[0].message.content)curl https://shiyiaierer.top/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-你的APIKey" \
-d '{"model":"gpt-4.1-mini","messages":[{"role":"user","content":"你好"}]}'