Skip to main content
POST
Create Model

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Project-ID
string | null

Body

application/json

Request body for creating a model configuration.

name
string
required
Required string length: 1 - 255
litellm_model
string
required
Required string length: 1 - 500
credentials
Credentials · object
required

Credentials for the model provider. Stored as secrets.

resource_uri
string | null

Custom kebab-case name for the resource URI. Auto-generated from name if omitted.

Pattern: ^[a-z0-9-]+$
provider
string | null
Maximum string length: 100
description
string | null
Maximum string length: 1000
tags
string[]
api_base
string | null
Maximum string length: 1000
api_version
string | null
Maximum string length: 50
mode
enum<string> | null

Supported model modes.

Available options:
chat,
completion,
embedding,
image_generation,
audio_transcription
max_input_tokens
integer | null
max_output_tokens
integer | null
rpm
integer | null
tpm
integer | null
default_temperature
number | null
Required range: 0 <= x <= 9.99
default_max_tokens
integer | null
timeout
integer | null

Response

Successful Response

Full model representation.

id
string
required
resource_uri
string
required
name
string
required
litellm_model
string
required
status
enum<string>
required

Status of a model configuration.

Available options:
PENDING,
ACTIVE,
ERROR,
DEPRECATED,
DISABLED
organization_id
string
required
project_id
string
required
owner_id
string
required
deprecated

Deprecated: use created_by instead. Will be removed in a future release.

created_at
string<date-time>
required
updated_at
string<date-time>
required
created_by
string
required
updated_by
string
required
description
string | null
tags
string[]
provider
string | null
api_base
string | null
api_version
string | null
mode
enum<string> | null

Supported model modes.

Available options:
chat,
completion,
embedding,
image_generation,
audio_transcription
max_input_tokens
integer | null
max_output_tokens
integer | null
rpm
integer | null
tpm
integer | null
default_temperature
number | null
default_max_tokens
integer | null
timeout
integer | null
status_message
string | null