Skip to content

Claude Messages ​

http
POST /v1/messages

The request format is close to Anthropic Messages. The platform converts the format based on the request headers, model, and channel. Common fields include model, messages, system, max_tokens, temperature, tools, and thinking-related fields.

Request Example ​

bash
curl https://api.cloudaikit.com/v1/messages \
  -H "x-api-key: sk-your-token" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-3-5-sonnet","max_tokens":256,"messages":[{"role":"user","content":"你好"}]}'

Use the authentication headers and model names supported by the current compatible implementation. If the request returns 401 or 404, first confirm that the client sends Claude's authentication method, path, and model name as required by the platform.

Conversion Limitations ​

Format conversion cannot guarantee a one-to-one mapping for all fields. Images, audio, tool calls, structured outputs, reasoning content, and safety parameters may differ significantly between service providers.