Skip to main content
Use the bare API host for Anthropic-native tools:
Claude Code and the Anthropic SDK append /v1/messages automatically.

Messages

POST /v1/messages is the Anthropic Messages endpoint. It is the native path for Claude models and the protocol Claude Code expects. Use Claude model ids on this surface; use the OpenAI-compatible or Gemini-native surfaces for GPT and Gemini.

Claude Code

Claude Code uses the same Anthropic-native base URL:
See Claude Code API Key for the full setup.