Skip to main content

CompletionObject

idstring
Example: cmpl-8565e8d5db17438291a189255c36c558
objectstring
Example: text_completion
creatednumber
Example: 1741570283
modelstring
Example: Llama-3.2-1B-Instruct
choices object[]
  • Array [
  • indexnumber
    Example: 0
    textstring
    Example: Paris. The French language is a Romance language and the official language of France.
    logprobsstring |
    prompt_logprobsstring |
    stop_reasonstring |
    finish_reasonstring
    Example: length
  • ]
  • usage object
    prompt_tokensnumber
    Example: 6
    completion_tokensnumber
    Example: 16
    total_tokensnumber
    Example: 44
    prompt_tokens_detailsstring |
    CompletionObject
    {
    "id": "cmpl-8565e8d5db17438291a189255c36c558",
    "object": "text_completion",
    "created": 1741570283,
    "model": "Llama-3.2-1B-Instruct",
    "choices": [
    {
    "index": 0,
    "text": " Paris. The French language is a Romance language and the official language of France.",
    "logprobs": "string",
    "prompt_logprobs": "string",
    "stop_reason": "string",
    "finish_reason": "length"
    }
    ],
    "usage": {
    "prompt_tokens": 6,
    "completion_tokens": 16,
    "total_tokens": 44,
    "prompt_tokens_details": "string"
    }
    }