Models

models

Methods

Create Model ->
post/v5/models

Create Model

List Models -> CursorPage<>
get/v5/models

List Models

query Parameters
ending_before: string
Optional
limit: number
Optional
(maximum: 10000, minimum: 1, default: 100)
model_vendor:
Optional
name: string
Optional
sort_by: string
Optional
sort_order:
Optional
starting_after: string
Optional
Response fields
has_more: boolean

Whether there are more items left to be fetched.

items: Array<>
total: number

The total of items that match the query. This is greater than or equal to the number of items returned.

limit: number
Optional
(default: 100)

The maximum number of items to return.

object: "list"
Optional
(default: "list")
Request example
200Example
Update Model ->
patch/v5/models/{model_id}

Update Model

Delete Model -> { id, deleted, object }
delete/v5/models/{model_id}

Delete Model

Get Model ->
get/v5/models/{model_id}

Get Model

Domain types

InferenceModel = { id, created_at, created_by_identity_type, 9 more... }
InferenceModelAvailability = "unknown" | "available" | "unavailable"
InferenceModelType = "generic" | "completion" | "chat_completion"
LaunchVendorConfiguration = { model_image, model_infra }
LlmEngineVendorConfiguration = { model, checkpoint_path, cpus, 19 more... }
ModelDeleteResponse = { id, deleted, object }