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

# GET /ai/providers/{id}

`GET /ai/providers/{id}`

## Request

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

## Path parameters

- `id` integer, required

## Response `200`

- ProviderDetailResponse
  - `key` ProviderKeyResponse, required
    - `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
  - `models` ProviderModelResponse[], required
    - `details` ModelDetails, nullable: What a provider's model catalogue says about one model, kept so a user can choose between models without leaving the console. Every field is optional because catalogues differ: OpenRouter publishes all of them, others few.
      - `cache_read_price_per_million` number, double, nullable: USD per one million input tokens read from the provider's prompt cache.
      - `cache_write_price_per_million` number, double, nullable: USD per one million input tokens written to the provider's prompt cache.
      - `context_length` integer, nullable: Maximum context window in tokens.
      - `input_modalities` string[]: What the model accepts: `text`, `image`, `file`, `audio`, ...
      - `input_price_per_million` number, double, nullable: USD per one million input (prompt) tokens.
      - `name` string, nullable: Human-readable name, when it differs from the model id.
      - `output_modalities` string[]: What the model produces: `text`, `image`, ...
      - `output_price_per_million` number, double, nullable: USD per one million output (completion) tokens.
      - `supports_tools` boolean, nullable: Whether the catalogue lists tool calling. The Temps assistant needs it.
    - `display_name` string, required
    - `id` integer, required
    - `is_available` boolean, required
    - `is_enabled` boolean, required
    - `last_seen_at` string, nullable
    - `model_id` string, required
    - `owned_by` string, nullable
    - `provider_key_id` integer, required
    - `source` string, required
    - `updated_at` string, required

## Other responses

- `404`

## Changes

- **2026-11-09** `12896146b193`: 1 breaking
  - removed the required property `extensions` from the response with the `404` status
- **2026-10-23** `7d41b820a372`: 1 info
  - added the optional property `models/items/details` to the response with the `200` status
- **2026-10-23** `24af93ff5379`: 1 warning
  - removed the optional property `models/items/details` from the response with the `200` status
- **2026-10-22** `842d42ed4659`: 1 info
  - added the optional property `models/items/details` to the response with the `200` status
- **2026-10-22** `1a12a50b75ee`: 1 warning
  - removed the optional property `models/items/details` from the response with the `200` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/providers/:id/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)
