Skip to content

Create a new LLM provider

POST
/v1/llm-providers

Request to create a new LLM provider

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. Required for custom endpoints. For standard providers, this can be omitted to use the default URL.

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

Display name for the provider.

string
Example
OpenAI Production
provider_type
required

The type of LLM provider (e.g., openai, anthropic).

string
Allowed values: openai openai_completions anthropic llmsim

Provider created

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 request

Internal error