Skip to content

Update an LLM provider

PATCH
/v1/llm-providers/{id}
id
required
string

Provider ID (prefixed, e.g., prov_…)

Request to update an LLM provider. Only provided fields will be updated.

object
api_key

API key for authenticating with the provider. Will be encrypted at rest if encryption is configured.

string | null
base_url

Base URL for the provider’s API.

string | null
Example
https://api.openai.com/v1
name

Display name for the provider.

string | null
Example
OpenAI Development
provider_type
One of:
null
status
One of:
null

Provider updated

LLM Provider entity (API keys never exposed) Note: This is the entity struct, separate from the LlmProvider trait in llm.rs

object
api_key_set
required

Whether an API key is configured (key is never returned)

boolean
base_url
string | null
created_at
required
string format: date-time
id
required
string
Example
provider_01933b5a00007000800000000000001
last_synced_at

When models were last synced from provider API

string | null format: date-time
name
required
string
provider_type
required

LLM provider type

string
Allowed values: openai openai_completions anthropic llmsim
status
required

LLM provider status

string
Allowed values: active disabled
updated_at
required
string format: date-time

Invalid provider ID

Provider not found