v40

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-01108178385.8 KB
chat

Create a chat completion

post/v1/chat/completions

Request body

max_tokensinteger
modelstring
parallel_tool_callsboolean
providerstring

Gateway routing hint; stripped before upstream execution.

service_tierstring
streamboolean
temperaturenumber
{"stackTrail":"components:schemas:core.ChatRequest:properties:tool_choice","oasType":"schema","type":"unknown","description":"string or object"}
toolsobject[]
top_pnumber
userstring

Response

JSON response or SSE stream when stream=true

createdinteger
idstring
modelstring
objectstring
providerstring
system_fingerprintstring