POST
/
api
/
v1
/
chat
/
completions
{
  "id": "<string>",
  "created": "1720712536",
  "choices": [
    {
      "index": 1,
      "message": {
        "role": "<string>",
        "content": "<string>"
      },
      "finish_reason": "<string>",
      "completion_id": "<string>",
      "model": "<string>"
    }
  ],
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "usage": {
    "completion_tokens": 1,
    "prompt_tokens": 1,
    "total_tokens": 1
  }
}

Body

application/json

Response

200
application/json

a stream will be returned if streaming = true in the request

The response is of type object.