1. Native OpenAI Format
DMC GATEWAY DOCS EN
  • Welcome
  • 1. Quick Start Guide
    • Registration & Login
    • Token Management
    • Account Settings
    • Pricing
    • Quota & Top-up
  • 3. Developer Code Integration
    • Native OpenAI Format
      • Chat Completions Format
        POST
      • Responses Format
        POST
    • Native Claude Format
      POST
  • 4. Common Client Configuration
    • OpenCode Configuration Guide
    • OpenAI Codex Installation & Configuration Guide
    • AnythingLLM Configuration Guide
    • Claude Code Configuration Guide
    • TypingMind Configuration Guide
    • n8n Configuration Guide
    • OpenClaw Installation & Configuration Guide
    • Hermes Agent Configuration Guide
  • 6. Troubleshooting
    • Common Misconceptions
    • Common Usage FAQ
  1. Native OpenAI Format

Chat Completions Format

开发中
POST
https://dmc.cc/v1/chat/completions
Creates model responses based on conversation history. Supports both streaming and non-streaming responses.
Compatible with OpenAI Chat Completions API.

请求参数

Header 参数

Body 参数application/json必填

示例
{"model":"DeepSeek-V3.2","messages":[{"role":"user","content":"Say hello in one sentence."}]}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://dmc.cc/v1/chat/completions' \
--header 'Authorization: Bearer sk-nnd8Z5vv9iEn8e1GI0lOqEHOQ40sIQlIiN40siwCFO80IZcT' \
--header 'Content-Type: application/json' \
--data '{"model":"DeepSeek-V3.2","messages":[{"role":"user","content":"Say hello in one sentence."}]}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{"choices":[{"finish_reason":"stop","index":0,"logprobs":null,"message":{"content":"Hello, it's a pleasure to meet you.","role":"assistant"}}],"created":1778681604,"id":"0217786816022244b73f3a7fd65ebccde087806b0ec253924d23d","model":"deepseek-v3-2-251201","service_tier":"default","object":"chat.completion","usage":{"completion_tokens":10,"prompt_tokens":10,"total_tokens":20,"prompt_tokens_details":{"cached_tokens":0},"completion_tokens_details":{"reasoning_tokens":0}}}
修改于 2026-05-13 18:47:28
上一页
Quota & Top-up
下一页
Responses Format
Built with