---
title: "Update a custom provider"
method: PATCH
path: "/api/providers/{provider_id}/"
tags: ["models"]
---

# Update a custom provider

`PATCH /api/providers/{provider_id}/`

Partially update editable fields for a custom provider. The `provider_id` field is read-only.

## Path parameters

- `provider_id` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `provider_name` string — Human-readable provider name.
  - `api_key` string — Provider API key. This field is write-only and is never returned.
  - `extra_kwargs` object — Additional provider configuration.

## Response `200`

Updated provider.

- ModelsUpdateCustomProviderResponse200
  - `id` string, required — Provider string ID. Same value as `provider_id`.
  - `provider_id` string, required — Unique provider identifier within your organization.
  - `provider_name` string, required — Human-readable provider name.
  - `extra_kwargs` object — Provider configuration such as `base_url` and timeout values. Secret values are not returned here.
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable

## Other responses

- `400` — Bad Request
- `401` — Unauthorized - Missing or invalid authentication
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/77d94e49bc7a/schema)
