List LLM Providers
GET /api/v1/agents/llm-providers — LLM configurations available to your agents.
Returns the LLM provider configurations your organization (or project) has connected, along with the models available under each one. Use this to populate config.model.primary.llm_config_id and config.model.primary.model_id when creating or updating an agent.
GET /api/v1/agents/llm-providersNo query parameters. Org-scoped keys see every connected configuration in the organization, plus every project-level configuration in the org. Project-scoped keys see org-level configurations plus only their own project's configurations.
Response
200 OK
{
"data": [
{
"id": "8b1e2f4a-...",
"name": "Production OpenAI",
"providerId": "openai",
"status": "connected",
"availableModels": [
{
"modelId": "gpt-4o",
"displayName": "GPT-4o",
"contextLength": 128000,
"maxOutputTokens": 16384
}
]
}
]
}Returns { "data": [] } if no LLM configuration is visible to your key.
No credentials in this response
Only connection metadata and available models are returned — API keys, secrets, and other credentials for the underlying provider are never included in this or any other Public API response.
Errors
| Status | error | When |
|---|---|---|
401 | unauthorized | X-API-Key header missing, malformed, invalid, expired, or revoked |
Example
curl https://api.elizon.com/api/v1/agents/llm-providers \
-H "X-API-Key: elz_your_key_here"