Chat Completions (OpenAI-compatible)
OpenAI-compatible chat completions endpoint. Accepts the standard OpenAI request schema and returns the standard OpenAI response schema. Supports both streaming (SSE) and non-streaming modes. Works as a drop-in replacement with the OpenAI Python and TypeScript SDKs.
Headers
Request body
Response
Successful Response
Changes
Changed in 4 of the 80 revisions of this API.246
- ▲
response property
choices/items/finish_reasonlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
///to the response with the statusresponse-optional-property-added
- ○
added the optional property
///to the response with the statusresponse-optional-property-added
- ▲
- ▲
the
/request property's max was decreased to50.00request-property-max-decreased
- ▲
- ●
the
/request property's max was set to100.00request-property-max-set
- ●
the
/request property's min was set to1.00request-property-min-set
- ●
- ●
the
/request property's max was set to2.00request-property-max-set
- ●
the
/request property's min was set to0.00request-property-min-set
- ●