OpenAI兼容接口说明
业务侧可以使用 OpenAI-compatible SDK 或 HTTP 请求接入。模型字段使用抽象模型名,例如 auto-coding、auto-reasoning、auto-long-context。
API Docs
极简接入说明。第一版仅做文档展示,不提供后台、计费或 API Key 发放系统。
业务侧可以使用 OpenAI-compatible SDK 或 HTTP 请求接入。模型字段使用抽象模型名,例如 auto-coding、auto-reasoning、auto-long-context。
用于对话、代码、总结、长文本和推理任务。无需手动选择具体底层模型。
curl https://api.example.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "auto-coding",
"messages": [
{"role": "user", "content": "写一个Dockerfile"}
]
}'from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.example.com/v1"
)
response = client.chat.completions.create(
model="auto-coding",
messages=[
{"role": "user", "content": "写一个Dockerfile"}
]
)在请求头中加入 Authorization: Bearer $API_KEY。 当前官网仅提供咨询入口,不在页面内生成或展示真实 API Key。