Skip to main content
PUT

Authorizations

Authorization
string
header
required

Your SLNG consumer API key.

Path Parameters

client_model_id
string<uuid>
required

The UUID of the client model to update. A model owned by another organisation returns 404.

Body

application/json

The fields to change on the client model. At least one must be supplied.

Fields to change on an existing client model. All are optional and at least one must be supplied; omitted fields keep their stored values. Write-only credential fields overwrite the stored secret when provided.

url
string | null
Required string length: 1 - 2000
api_key
string | null

A replacement upstream provider API key. Write-only: overwrites the stored key and is never returned. Required for openai-compat, openai-responses, and azure; rejected for vertex.

Minimum string length: 1
model_name
string | null

A new alias for the model. Sent upstream as-is unless model_id is set.

Required string length: 1 - 255
model_id
string | null

A new upstream provider-facing model id. Empty or null sends model_name as-is.

Maximum string length: 255
provider
enum<string> | null

The bring-your-own model provider to set. Changing it re-checks the per-provider field requirements against the merged record. Values: openai-compat and openai-responses (OpenAI-compatible endpoints), azure (Azure OpenAI), and vertex (Google Vertex AI).

Available options:
openai-compat,
openai-responses,
azure,
vertex
model_lab
string | null
Maximum string length: 100
azure_deployment
string | null

A new Azure OpenAI deployment name. Azure only.

Maximum string length: 255
api_version
string | null

A new Azure OpenAI API version. Azure only.

Maximum string length: 100
auth_header
string | null

openai-compat and openai-responses only: change the custom credential header name that replaces the default Authorization Bearer scheme. Rejected for azure and vertex.

Maximum string length: 64
vertex_credentials
Vertex Credentials · object | null

Vertex only: a replacement GCP service-account key JSON. Write-only; stored encrypted and never returned (responses expose has_vertex_credentials).

vertex_location
string | null
Maximum string length: 100
vertex_project
string | null
Maximum string length: 100
aws_credentials
Aws Credentials · object | null

Speech BYOK only: replacement AWS SigV4 credentials (access_key_id, secret_access_key, region). Write-only; stored encrypted and never returned (responses expose has_aws_credentials).

languages
string[] | null
regions
string[] | null
enabled
boolean | null
kwargs
Kwargs · object | null
fallbacks
LlmRouterConfigEntry · object[] | null
Maximum array length: 2

Response

The updated client model.

A client model as returned by the API. Credential values are never included; has_api_key, has_vertex_credentials, and has_aws_credentials report whether each secret is stored, and fallbacks lists the configured fallback cascade.

id
string<uuid>
required
org_id
string<uuid>
required
service_type
enum<string>
required

The kind of model: llm, stt, or tts.

Available options:
llm,
stt,
tts
provider
string | null
required

The configured provider. May be a legacy free-form label on records created before the current provider set.

model_lab
string | null
required
url
string | null
required
has_api_key
boolean
required

Whether an upstream API key is stored. The key value is write-only and never returned.

auth_header
string | null
required

The custom credential header name, or null for the default Authorization Bearer scheme. The credential value itself is never returned.

model_name
string
required

The configured alias for the model.

model_id
string | null
required

The upstream provider-facing model id, or null when model_name is sent as-is.

azure_deployment
string | null
required

The configured Azure OpenAI deployment name (Azure only).

api_version
string | null
required

The configured Azure OpenAI API version (Azure only).

has_vertex_credentials
boolean
required

Whether Vertex service-account credentials are stored. The value is write-only and never returned.

has_aws_credentials
boolean
required

Whether AWS SigV4 credentials are stored. The value is write-only and never returned.

vertex_location
string | null
required
vertex_project
string | null
required
languages
string[]
required
regions
string[] | null
required
enabled
boolean
required
kwargs
Kwargs · object | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
api_key_id
string<uuid> | null

Speech BYOK only: the API key id this credential is scoped to, or null for the organisation default. Non-secret.

fallbacks
LlmRouterConfigEntry · object[] | null