LMArena Bridge implementsDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/cloudwaddie/lmarenabridge/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/v1/messages as an Anthropic Messages API–compatible endpoint. This lets Anthropic-native clients — such as tools built with the Anthropic SDK, Cursor in Claude mode, or any app that calls the Anthropic API — route requests through LMArena without changing their client code.
Authentication
Bearer token. Pass the API key you created in the dashboard:
Authorization: Bearer <api_key>. If no API keys are configured, omit the header or pass any value.Request body
Model ID. Use any model ID returned by
GET /api/v1/models.Array of message objects. Each must have a
role ("user" or "assistant") and a content field (string or array of content blocks).Optional system prompt. Prepended as a
role: "system" message before the conversation.Maximum tokens to generate. Passed through to the underlying chat completions handler.
When
true, returns an Anthropic-format SSE stream with message_start, content_block_start, content_block_delta, content_block_stop, message_delta, and message_stop events.Sampling temperature. Passed through when provided.
How translation works
The bridge converts the Anthropic request to OpenAI format internally, routes it through the samechat/completions pipeline, then converts the response back:
system→ prepended{"role": "system", "content": "..."}message- Content blocks of
type: "text"are joined with newlines into a single string - Streaming OpenAI SSE chunks are re-wrapped as Anthropic
content_block_deltaevents
Image content blocks are not currently supported through this endpoint. To send images, use
POST /api/v1/chat/completions directly with the OpenAI vision format.Example
Non-streaming response
200
Streaming response events
SSE stream
Error responses
| Status | Meaning |
|---|---|
400 | Missing or invalid model or messages field. |
401 | Missing or invalid API key. |
429 | Rate limit exceeded for your API key. |
503 | LMArena unavailable or bridge failed to acquire a token. |