Skip to content

Sync models from an LLM provider

POST
/v1/llm-providers/{id}/sync-models
curl --request POST \
--url https://app.everruns.com/api/v1/llm-providers/example/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

Media type application/json
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
Example
{
"status": "success"
}

Invalid provider ID

Provider not found

Sync failed