Skip to content

Sync models from an LLM provider

POST
/v1/llm-providers/{id}/sync-models

Fetches the list of available models from the provider’s API and updates the database. Only works for providers with standard base URLs (not custom).

id
required
string

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

Models synced

One of:

Sync completed successfully

object
created
required

Number of new models discovered

integer
stale
required

Number of models marked as stale (not seen in this sync)

integer
status
required
string
Allowed values: success
updated
required

Number of existing models updated

integer

Invalid provider ID

Provider not found

Sync failed