Messages
Create a message
Changed onCreates a message using the Anthropic-compatible Messages API. The request follows the Anthropic Messages API format with model, max_tokens, messages, optional system, tools, and streaming support.
Not every provider implements the Messages API. Requests routed to a provider that does not support it return 400 Bad Request with an explanatory error message; use /chat/completions for those providers.
post/messages
Request
- Base URLhttp://localhost:8080
- URLhttp://localhost:8080/messages
- AuthHTTP bearer
Query parameters
provider'ollama' | 'ollama_cloud' | 'groq' | 'llamacpp' | 'openai' | 'cloudflare' | 'cohere' | 'anthropic' | 'deepseek' | 'elevenlabs' | 'google' | 'mistral' | 'minimax' | 'moonshot' | 'nvidia' | 'zai' | 'webwright'
Specific provider to use (default determined by model)
Request body
Response
Successful response
Changes
- info
added the new enum value
webwrightto thequeryrequest parameterprovider
- info
- breaking
removed the enum value
webwrightfrom thequeryrequest parameterprovider
- breaking