# Update account inference provider

```http
PUT /accounts/{account_id}/inference-providers/{provider}
```

Validate and save an account provider funding mode and optional replacement key at the expected revision. Requires account.settings.manage.

## Parameters

| Name         | In   | Required | Description |
| ------------ | ---- | -------- | ----------- |
| `account_id` | path | Yes      |             |
| `provider`   | path | Yes      |             |

## Request body

| Field               | Type    | Required | Description |
| ------------------- | ------- | -------- | ----------- |
| `expected_revision` | integer | Yes      |             |
| `mode`              | string  | Yes      |             |
| `api_key`           | string  |          |             |

## Responses

| Status | Description                  |
| ------ | ---------------------------- |
| 200    | Saved provider configuration |
| 400    | Bad request                  |
| 401    | Unauthorized                 |
| 403    | Forbidden                    |
| 404    | Not found                    |
| 409    | Conflict                     |
| 429    | Rate limit exceeded          |
| 500    | Server error                 |
| 503    | Service unavailable          |
