---
title: "GET /ai/providers"
method: GET
path: "/ai/providers"
tags: ["AI Gateway Admin"]
---

# GET /ai/providers

`GET /ai/providers`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/providers`
- Auth: HTTP bearer

## Response `200`

List of provider keys

- ProviderKeyResponse[]
  - `api_key_masked` string, required: Masked API key (only last 4 chars visible)
  - `base_url` string, nullable
  - `capabilities` SelfHostedCapabilities, nullable: Capabilities an administrator declared for a self-hosted key. Requests needing an undeclared capability are refused before anything is sent.
    - `embeddings` boolean: The `/embeddings` endpoint.
    - `responses_api` boolean: The OpenAI Responses API (`/responses`).
    - `streaming` boolean: Streaming chat completions (`"stream": true`). Required by AI chat.
    - `tools` boolean: Function/tool calling in chat completions.
  - `created_at` string, required
  - `default_model` string, nullable: Model id this provider serves (NULL → per-provider default).
  - `display_name` string, required
  - `id` integer, required
  - `is_active` boolean, required
  - `provider` string, required
  - `trusted_private_address` string, nullable: Exact private `ip:port` this key may reach without that address being in the instance-wide trusted private networks. `None` when not set.
  - `trusted_private_address_set_at` string, nullable: When the per-key trust was set (ISO 8601).
  - `trusted_private_address_set_by` integer, nullable: User who set the per-key trust.
  - `updated_at` string, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions

## Changes

- **2026-11-09** `12896146b193`: 2 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
- **2026-10-12** `6c202edbdbf6`: 4 info
  - added the optional property `items/capabilities` to the response with the `200` status
  - added the optional property `items/trusted_private_address` to the response with the `200` status
  - added the optional property `items/trusted_private_address_set_at` to the response with the `200` status
  - added the optional property `items/trusted_private_address_set_by` to the response with the `200` status
- **2026-10-05** `4b228ebed583`: 2 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
- **2026-10-05** `63a80791dc58`: 2 warning
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
- **2026-09-23** `f4efc4d5c7b7`: 2 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/providers/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
