v8

latestOpenAPI 3.1.02026-08-08156219298.8 KB
Chat Completions

Anthropic Messages

post/anthropic/v1/messages

Headers

anthropic-versionstring nullable
anthropic-betastring nullable
x-deepinfra-sourcestring nullable
x-deepinfra-service-tierstring nullable
xi-api-keystring nullable
x-api-keystring nullable

Request body

service_tier'default' | 'priority' | 'flex'
fail_fastboolean

If true, the request is rejected immediately with HTTP 429 when the model has no spare capacity, instead of waiting in the queue. Opt-in; the default (false) keeps standard queueing behavior.

modelstring required
max_tokensinteger nullable
messagesobject[] required
stop_sequencesstring[] nullable
streamboolean nullable
temperaturenumber nullable
top_pnumber nullable
top_kinteger nullable
metadataobject nullable
tool_choiceobject nullable

Response

Successful Response

{"stackTrail":"paths:/anthropic/v1/messages:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}