API Reference›Anthropic›Messages

Messages

POSThttps://api.routing.run/v1/messages

Create a message using the Anthropic-compatible format. Works with any model in the routing.run catalog — ideal for Claude Code and other Anthropic clients.

Body

modelstringrequired

Model ID from the routing.run catalog (e.g. deepseek-v4-pro).

messagesarrayrequired

Input messages for the model.

max_tokensintegerrequired

Maximum number of tokens to generate.