Get Chat Completion
Last updated
Was this helpful?
Last updated
Was this helpful?
Completion ID
The ID of the chat completion to retrieve.
object
The type of the response object, indicating a conversational reply from GPT.
id
Unique identifier of the get chat completion request
model
The name of the GPT model used to generate the response.
created
The Unix timestamp (in seconds) when the response was generated.
request_id
Unique identifier of the response request
tool_choice
The tool_choice value used (null if not used)
usage
Object about the number of tokens used
usage.total_tokens
The total number of tokens used, including both the input prompt and the generated response.
usage.completion_tokens
The number of tokens used in the generated response (completion).
usage.prompt_tokens
The number of tokens used in the input prompt.
seed
Random seed value
top_p
Probability value for token sampling (nucleus sampling)
temperature
Temperature value for sampling (controls randomness)
presence_penalty
Penalty value for introducing new topics in the conversation
frequency_penalty
Penalty value for restricting repeated word usage
system_fingerprint
Unique identifier of the system
input_user
User input (this value may be optional or absent)
service_tier
Service Tier value
tools
Information about the tool used (null if not used)
metadata
Metadata information (may be an empty object)
choices[]
List of responses
choices[].index
The index of the response, used to distinguish between multiple responses in a single request.
choices[].message.role
The role of the entity that generated the message.
choices[].message.content
The content of the generated response.
choices[].message.refusal
Indicates whether the request was denied.
choices[].logprobs
Log probabilities used during response generation.
choices[].finish_reason
The reason why the response generation was stopped.