# safe_prompt on POST /v1/chat/completions is deprecated

Mistral deprecated POST /v1/chat/completions, body parameter safe_prompt without giving a shutdown date yet.

Mistral deprecated the body parameter safe_prompt on POST /v1/chat/completions without a shutdown date. Requests relying on this parameter will eventually fail once it is removed. Update your chat completion payloads to avoid interruptions when the parameter is turned off.

## What to use instead

Use Custom Guardrails in the request instead of safe_prompt.

- API: Mistral (api.mistral.ai)
- Kind: Parameter removal
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `POST /v1/chat/completions`, `body parameter safe_prompt`
- Source: [Announcement](https://docs.mistral.ai/resources/deprecated/guardrailing/safe_prompt)
- Verified: November 6, 2026, against Mistral's own pages
- Page: https://www.okapi.bot/providers/mistral/breaking-changes/safe-prompt-on-post-v1-chat-completions-is-deprecated/

## Mistral's words

> safe_prompt is deprecated. We recommend using Custom Guardrails instead, which provides more control over moderation categories and thresholds directly in your API requests.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
