---
docId: doc_5e9f7b74877b4b5f8a52bce62453f7a3
title: List AI providers
description: "Read the four providers, their key status, and available models."
api:
  group: proveedores-de-ia
  auth: bearer
  operations:
    - operationId: listAiProviders
      method: GET
      path: /v1/ai-providers
      postmanName: List AI providers
---

<script>
  import { Ways, Collapsible } from '$lib/components';
</script>

# List AI providers

Read all four AI providers, whether or not a key is connected. Check the workspace's key status and available models.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl https://api.platic.ai/v1/ai-providers \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.aiProviders.list();
```

</Ways.Way>
</Ways>

## Response

`200 OK`. `data` is the list, in this order: `openai`, `google`, `anthropic`, and `xai`. The example shows two.

```json
{
  "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

<Collapsible summary="Show all fields">



| 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](/api-reference/ai-providers#states) |
| `health` | string \| null | Why the key fails: `ok`, `key_rejected`, `no_credit`, or `no_model_access`. `null` without a key. See [states](/api-reference/ai-providers#states) |
| `fallback` | string \| null | `platform` or `none`. `null` without a key. See [the fallback](/api-reference/ai-providers#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](/api-reference/secrets) 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 |

</Collapsible>

## Notes

- No response includes the key.
- From an AI agent, the tool is [`list_ai_providers`](/mcp/tools#ai-providers).
