Create message (Anthropic format)
Create a response in Anthropic Messages format. Supports native Anthropic dispatch and conversion to other supported providers; it is not restricted to the Anthropic provider. Native dispatch preserves provider-specific JSON fields when the destination supports the caller’s format. Cross-format routing converts through the Gateway’s shared representation: provider-only features are not guaranteed to survive. Support for reasoning, images, built-in tools and structured outputs depends on the destination model.
Request
- Base URL: https://edgee.io
- URL: https://edgee.io/v1/messages
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Headers
Comma-separated analytics tags. Trimmed and merged with body tags.
Enable debug capture for this request. Does not add a debug object to the API response.
Turn tool-result trimming on or off. Overrides the API key setting for this request only. Values are case-insensitive, and a missing or invalid value keeps the key's setting.
Turn MCP tool surface reduction on or off. The threshold and resolver mode still come from the API key. Overrides the API key setting for this request only. Values are case-insensitive, and a missing or invalid value keeps the key's setting.
Turn output brevity on or off. Overrides the API key setting for this request only. Values are case-insensitive, and a missing or invalid value keeps the key's setting.
Session identifier used to group request usage.
Anthropic API version header. Forwarded on the native Anthropic path; not a cross-provider capability switch.
Provider beta feature flags for native Anthropic requests. Availability depends on the upstream provider.
Request body
Response
Message created successfully
Changes
No recorded changes to this operation across all 1 revision of this API.