Completion object

This represents the completion response object from the API. Note: Both streaming and non-streaming response objects share the same structure (unlike the chat endpoint).

ParameterTypeDescription
idstringA unique identifier for the completion.
choicesarrayA list of completion options generated by the model for the input prompt.
createdintegerThe Unix timestamp (in seconds) when the completion was created.
modelstringThe model used to generate the completion.
system_fingerprintstringA fingerprint representing the backend configuration of the model.
objectstringThe object type, always "text_completion".
usageobjectUsage statistics for the completion request.
completion_tokensintegerThe number of tokens generated in the completion.
prompt_tokensintegerThe number of tokens in the input prompt.
total_tokensintegerThe total number of tokens used in the request (prompt + completion).

(Code extracted to sandbox)

Infrastructure: AiApiGiaRe-v10.0
Gateway Status: Operational