Skip to main content

ChatCompletionObject

id string
Example: chatcmpl-B9MHDbslfkBeAs8l4bebGdFOJ6PeG
object string
Example: chat.completion
created number
Example: 1741570283
model string
Example: Llama-3.2-1B-Instruct
choices object[]
  • Array [
  • index number
    Example: 0
    message object
    role string
    Example: assistant
    content string
    Example: How can I help you today?
    refusal string
    finish_reason string
    Example: stop
  • ]
  • usage object
    prompt_tokens number
    Example: 36
    completion_tokens number
    Example: 8
    total_tokens number
    Example: 44
    prompt_tokens_details object
    cached_tokens number
    Example: 0
    audio_tokens number
    Example: 0
    completion_tokens_details object
    reasoning_tokens number
    Example: 0
    audio_tokens number
    Example: 0
    accepted_prediction_tokens number
    Example: 0
    rejected_prediction_tokens number
    Example: 0
    service_tier string
    Example: default
    system_fingerprint string
    Example: fp_fc9f1d7035
    ChatCompletionObject
    {
    "id": "chatcmpl-B9MHDbslfkBeAs8l4bebGdFOJ6PeG",
    "object": "chat.completion",
    "created": 1741570283,
    "model": "Llama-3.2-1B-Instruct",
    "choices": [
    {
    "index": 0,
    "message": {
    "role": "assistant",
    "content": "How can I help you today?"
    },
    "finish_reason": "stop"
    }
    ],
    "usage": {
    "prompt_tokens": 36,
    "completion_tokens": 8,
    "total_tokens": 44,
    "prompt_tokens_details": {
    "cached_tokens": 0,
    "audio_tokens": 0
    },
    "completion_tokens_details": {
    "reasoning_tokens": 0,
    "audio_tokens": 0,
    "accepted_prediction_tokens": 0,
    "rejected_prediction_tokens": 0
    }
    },
    "service_tier": "default",
    "system_fingerprint": "fp_fc9f1d7035"
    }