Remove an AI provider key
Destroy your organisation’s saved key for one provider. Answers on your own keys that need it are then refused, never moved to MITHUNAI’s. Beta.
Remove an AI provider key
curl --request DELETE \
--url https://app.mithunai.com/mithunai/api/v1/model-keys/{provider} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.mithunai.com/mithunai/api/v1/model-keys/{provider}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.mithunai.com/mithunai/api/v1/model-keys/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Destroys your organisation’s saved key for one provider. If your plan answers on your own keys, a question that needs this provider is then refused with
409 and the code model_key_missing until a key is saved again: it is never answered on MITHUNAI’s keys instead. Beta.
Owner or admin only (credential.manage), from a signed-in console session. No key saved for the provider returns 404.
string
required
openai, anthropic or google.Response
Returns204 with no body.Last modified on November 12, 2026
Remove an AI provider key
curl --request DELETE \
--url https://app.mithunai.com/mithunai/api/v1/model-keys/{provider} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.mithunai.com/mithunai/api/v1/model-keys/{provider}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.mithunai.com/mithunai/api/v1/model-keys/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));