---
title: "Delete encrypted credentials for one AI model provider"
method: DELETE
path: "/api/user/model-providers/{provider_id}"
tags: ["Model Providers"]
---

# Delete encrypted credentials for one AI model provider

`DELETE /api/user/model-providers/{provider_id}`

## Request

- Base URL: `https://foresea.ink` (the document declares no server; this is the origin it was published from)
- URL: `https://foresea.ink/api/user/model-providers/{provider_id}`
- Auth: none declared

Delete encrypted credentials for the specified provider.

## Path parameters

- `provider_id` string, required

## Response `200`

Successful Response

- UserModelProviderStatus
  - `provider_id` string, required
  - `name` string, required
  - `category` string, required
  - `description` string, required
  - `connected` boolean, required
  - `default_model` string, required
  - `popular_models` string[], required
  - `default_base_url` string, required
  - `custom_base_url` string, nullable
  - `docs_url` string
  - `updated_at` string, nullable
  - `key_prefix` string
  - `masked_key` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/foresea/apis/foresea-intelligence-api.md) · [All operations](https://skmtc.dev/foresea/apis/foresea-intelligence-api/llms.txt) · [OpenAPI document](https://skmtc.dev/foresea/apis/foresea-intelligence-api/revisions/b03e49f4385d?raw)
