Skip to main content

ChatCompletionObject

idstring
Example: chatcmpl-B9MHDbslfkBeAs8l4bebGdFOJ6PeG
objectstring
Example: chat.completion
creatednumber
Example: 1741570283
modelstring
Example: Llama-3.2-1B-Instruct
choices object[]
  • Array [
  • indexnumber
    Example: 0
    message object
    rolestring
    Example: assistant
    contentstring
    Example: How can I help you today?
    refusalstring |
    finish_reasonstring
    Example: stop
  • ]
  • usage object
    prompt_tokensnumber
    Example: 36
    completion_tokensnumber
    Example: 8
    total_tokensnumber
    Example: 44
    prompt_tokens_details object
    cached_tokensnumber
    Example: 0
    audio_tokensnumber
    Example: 0
    completion_tokens_details object
    reasoning_tokensnumber
    Example: 0
    audio_tokensnumber
    Example: 0
    accepted_prediction_tokensnumber
    Example: 0
    rejected_prediction_tokensnumber
    Example: 0
    service_tierstring
    Example: default
    system_fingerprintstring
    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?"
    },
    "refusal": "string",
    "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"
    }