即將推出
複製可用的端點與程式碼範例,需要完整參數時再開啟完整 API 參考文件。
存取完整的範例程式碼和 API 資源,以簡化您的 DeepSeek R2 整合流程。我們詳盡的文件提供逐步指引,協助您在專案中充分發揮 DeepSeek R2 的潛力。
curl "https://api.cometapi.com/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COMETAPI_KEY" \
-d '{
"model": "deepseek-r2",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Explain one practical use in two sentences."
}
]
}'將 DeepSeek R2 用於符合其 text 能力的正式工作流程,並在長期整合前比較其他選項。
正式環境聊天與 Agent 工作流程
程式撰寫、分析與結構化生成
透過單一 API 進行大量自動化
比較 CometAPI 提供的其他模型,在品質、延遲、功能與價格間取得平衡。
CometAPI Auto API 是一項智慧型模型路由功能,讓開發人員無需為每次請求指定特定的模型 ID,即可存取合適的 AI 模型。
GPT-6 Astra, the flagship model for complex reasoning and coding. Choose GPT-5.6 Terra to balance intelligence and cost,
Gemini 3.8 Flash is a new-generation lightweight Gemini model, with the goal of achieving a better balance among speed, cost, and coding capability.
claude-fable-5-1 為長時間執行的智能體提供下一代智能
GLM-5.3-Flash is the first native multimodal model in the GLM-5 series, delivering stronger intelligence than GLM-5.2 while maintaining an exceptionally cost-efficient architecture.
探索 gpt-oss-20b(free) API。
在正式上線前,查看即時心跳資料、端點可用性與實測回應時間。