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

# POST /ai/providers/{id}/models/refresh

`POST /ai/providers/{id}/models/refresh`

## 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}/models/refresh`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required

## Response `200`

- ProviderModelResponse[]
  - `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 `items/details` to the response with the `200` status
- **2026-10-23** `24af93ff5379`: 1 warning
  - removed the optional property `items/details` from the response with the `200` status
- **2026-10-22** `842d42ed4659`: 1 info
  - added the optional property `items/details` to the response with the `200` status
- **2026-10-22** `1a12a50b75ee`: 1 warning
  - removed the optional property `items/details` from the response with the `200` status

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