POST
/
v1
/
chat
/
completions
/
{completion_id}
{
  "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
  }
}

Path Parameters

completion_id
string
required

ID of the chat completion

Body

application/json · object

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

The body is of type object.

Response

200
application/json

Chat completion updated successfully

The response is of type object.