Create a message (Anthropic)
POST/v1/messages
Accepts an Anthropic Messages request and runs it through the same proxium loop as /v1/chat/completions: proxium translates the request to the OpenAI chat shape, routes it to any provider, and translates the answer back to the Anthropic shape. With stream: true, the answer is Anthropic server-sent events. Each error body is in the Anthropic shape. The virtual key goes in Authorization: Bearer, or in x-api-key as the Anthropic SDKs send it.
Request
Responses
- 200
- 400
- 401
- 402
- 403
- 413
- 415
- 429
- 502
- 503
The answer in the Anthropic shape.
The body is not valid JSON, model or max_tokens is missing, the request cannot be translated, a memory header has a bad value, or no model of the route is available to this key (invalid_request_error).
The bearer virtual key is missing (missing_key), or it is not valid or it is revoked (invalid_key).
The project may not send calls (subscription_required). proxium.tech is in open beta and does not return this answer.
A content rule of the project blocked the request (guardrail_blocked). The message names the class and the field. It never holds the matched value. proxium.tech has no content rule on for a project today.
The body is larger than the request body limit, 32 MiB on proxium.tech. The body of this answer is plain text.
The content-type is not application/json.
The key or the source used its budget window (tenant_capped or source_capped, retry-after: 60), or the project reached a monthly cap (credits_exhausted, retry-after: 3600). No project on proxium.tech has a monthly cap during the open beta.
Response Headers
Seconds to wait before the next call.
Each attempt of the failover chain failed. The message gives the reason of the last attempt.
The key store or the limits store is not available (keystore_unavailable, limits_unavailable). A deployment that refuses calls while its budget store is down answers budget_unavailable with retry-after: 5; proxium.tech lets the call through.
Response Headers
Seconds to wait before the next call.