Completions
ModelsExpand Collapse
type Completion struct{…}
ID stringUnique object identifier.
Unique object identifier.
The format and length of IDs may change over time.
The resulting completion up to and excluding the stop sequences.
Model ModelThe model that will complete your prompt.
The model that will complete your prompt.
See models for additional details and options.
type Model stringThe model that will complete your prompt.
The model that will complete your prompt.
See models for additional details and options.
Most intelligent model for building agents and coding
Best combination of speed and intelligence
Fastest model with near-frontier intelligence
Fastest model with near-frontier intelligence
Premium model combining maximum intelligence with practical performance
Premium model combining maximum intelligence with practical performance
High-performance model for agents and coding
High-performance model for agents and coding
Exceptional model for specialized complex tasks
Exceptional model for specialized complex tasks
Powerful model for complex tasks
Powerful model for complex tasks
High-performance model with extended thinking
High-performance model with extended thinking
Fast and cost-effective model
StopReason stringThe reason that we stopped.
The reason that we stopped.
This may be one the following values:
"stop_sequence": we reached a stop sequence — either provided by you via thestop_sequencesparameter, or a stop sequence built into the model"max_tokens": we exceededmax_tokens_to_sampleor the model's maximum
Type CompletionObject type.
Object type.
For Text Completions, this is always "completion".