几分钟内即可接入 DeepNorth AI API,开始使用全球领先的 AI 模型
https://api.deepnorth.ai/v1Authorization: Bearer sk-xxxxxxxxxxxxfrom openai import OpenAI
client = OpenAI(
base_url="https://api.deepnorth.ai/v1",
api_key="sk-xxxxxxxxxxxx"
)
response = client.chat.completions.create(
model="claude-sonnet-4-6",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
],
stream=True
)
for chunk in response:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")DeepNorth AI API Key 以 sk- 开头,在控制台的「API Keys」页面创建和管理。每个 Key 可以设置独立的速率限制和模型访问权限。
所有 API 请求都需要在 Header 中携带 Bearer Token 进行认证:
Authorization: Bearer sk-xxxxxxxxxxxx
Content-Type: application/jsonAnthropic 官方命令行编程助手
export ANTHROPIC_BASE_URL=https://api.deepnorth.aiexport ANTHROPIC_API_KEY=sk-xxxxxxxxxxxxAI 驱动的代码编辑器
https://api.deepnorth.ai/v1VS Code 中的 AI 编程助手扩展
https://api.deepnorth.ai/v1", "apiKey": "sk-xxxxxxxxxxxx" }