List AI providers
SDK platic.aiProviders.list()
Read all four AI providers, whether or not a key is connected. Check the workspace's key status and available models.
Example
curl https://api.platic.ai/v1/ai-providers \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.aiProviders.list(); Response
200 OK. data is the list, in this order: openai, google, anthropic, and xai. The example shows two.
{
"status": "success",
"data": [
{
"provider": "google",
"name": "Google",
"status": "connected",
"health": "ok",
"fallback": "platform",
"lastVerifiedAt": "2026-11-13T16:20:00.000Z",
"lastError": null,
"secretName": "Google key",
"models": [
{ "id": "gemini-4-argon", "name": "Gemini 4 Argon", "status": "available", "code": null, "ownKeyOnly": true },
{ "id": "gemini-3.8-flash", "name": "Gemini 3.8 Flash", "status": "available", "code": null, "ownKeyOnly": false },
{ "id": "gemini-3.5-flash-lite", "name": "Gemini 3.5 Flash-Lite", "status": "unavailable", "code": "MODEL_OR_DEPLOYMENT_NOT_FOUND", "ownKeyOnly": false }
]
},
{
"provider": "anthropic",
"name": "Anthropic",
"status": "not_connected",
"health": null,
"fallback": null,
"lastVerifiedAt": null,
"lastError": null,
"secretName": null,
"models": [
{ "id": "claude-sonnet-5-5", "name": "Claude Sonnet 5.5", "status": "unverified", "code": null, "ownKeyOnly": true },
{ "id": "claude-haiku-5-5", "name": "Claude Haiku 5.5", "status": "unverified", "code": null, "ownKeyOnly": true },
{ "id": "claude-opus-5-5", "name": "Claude Opus 5.5", "status": "unverified", "code": null, "ownKeyOnly": true }
]
}
]
} The provider
| Field | Type | Description |
|---|---|---|
provider | string | openai, google, anthropic, or xai |
name | string | The provider's name |
status | string | not_connected, verifying, connected, invalid, or disabled. See states |
health | string | null | Why the key fails: ok, key_rejected, no_credit, or no_model_access. null without a key. See states |
fallback | string | null | platform or none. null without a key. See the fallback |
lastVerifiedAt | string | null | When the key was last tested, in ISO 8601 |
lastError | string | null | Why the key does not work, as a code: AUTH_INVALID, NO_CREDIT, QUOTA_OR_RATE_LIMIT… |
secretName | string | null | The name of the secret that holds the key. Only appears if the credential can view secrets |
models | array | The provider's models |
models[].id, models[].name | string | Id and name of the model |
models[].status | string | available: your key runs it. unavailable: it does not run it. unverified: it has not been tested |
models[].code | string | null | With unavailable, why |
models[].ownKeyOnly | boolean | true if the model only works with your own key |
Notes
- No response includes the key.
- From an AI agent, the tool is
list_ai_providers.