POST
/
v1
/
chat
/
completions
{
  "choices": [
    {
      "finish_reason": "<string>",
      "index": 1,
      "logprobs": "<any>",
      "message": {
        "annotations": "<any>",
        "audio": "<any>",
        "content": "<string>",
        "refusal": "<string>",
        "role": "<string>",
        "tool_calls": [
          {
            "function": {
              "arguments": "<string>",
              "name": "<string>"
            },
            "id": "<string>",
            "type": "<string>"
          }
        ]
      }
    }
  ],
  "created": 1,
  "id": "<string>",
  "model": "<string>",
  "object": "<string>",
  "service_tier": "<string>",
  "system_fingerprint": "<string>",
  "usage": {
    "completion_tokens": 1,
    "completion_tokens_details": "<any>",
    "prompt_tokens": 1,
    "prompt_tokens_details": "<any>",
    "total_tokens": 1
  }
}

Body

application/json

Response

200
application/json

Chat completion created successfully

The response is of type object.