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 azure_openai openai_completions anthropic gemini llmsim

Provider created

Wrapper that adds self_url and view_url to a serialized resource.

Uses self_url (not url) for the API link to avoid collision with resources that already have a url field (e.g. McpServer).

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 azure_openai openai_completions anthropic gemini llmsim
status
required

LLM provider status

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

Full API endpoint URL for this resource.

string
view_url
required

Full UI URL for viewing this resource.

string

Invalid request

Internal error