Chat
chat
Chat
Completions
chat.completions
Methods
List Chat Completion Models -> { items, object }
get/v5/chat/completions/models
List Chat Completion Models
query Parameters
ending_before: string
Optional
limit: number
(maximum: 10000, minimum: 1, default: 100)Optional
sort_by: string
Optional
starting_after: string
Optional
Response fields
object: "list"
(default: "list")Optional
Request example
200Example
post/v5/chat/completions
Chat Completions
Domain types
ChatCompletion = { id, choices, created, 5 more... }
ChatCompletionChunk = { id, choices, created, 5 more... }
ChatCompletionTokenLogprob = { token, logprob, top_logprobs, 1 more... }
ChoiceLogprobs = { content, refusal }
Log probability information for the choice.
CompletionModelsResponse = { items, object }
InferenceModelVendor = "openai" | "cohere" | "vertex_ai" | 9 more...
ModelDefinition = { model_name, model_type, model_vendor, 1 more... }
SortOrder = "asc" | "desc"