POST
/v1/chat/completions

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/chat/completions" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "messages": [      {        "role": "string"      }    ]  }'
{
  "property1": null,
  "property2": null
}
{
  "status_code": 400,
  "detail": "Bad Request",
  "extra": {}
}