1. 3. Developer Code Integration
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
      • Responses Format
    • 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. 3. Developer Code Integration

Native Claude Format

开发中
POST
https://dmc.cc/v1/messages
Anthropic Claude Messages API format request.
Requires anthropic-version header in the request.

请求参数

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/messages' \
--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

示例
{}
修改于 2026-05-13 18:47:28
上一页
Responses Format
下一页
OpenCode Configuration Guide
Built with