# POST /v1/messages is deprecated

xAI deprecated POST /v1/messages without giving a shutdown date yet.

xAI has deprecated the POST /v1/messages endpoint without a shutdown date. xAI notes that Anthropic SDK compatibility is fully deprecated. Calls sent to this endpoint will fail.

## What to use instead

Use POST /v1/responses (Responses API) or the gRPC API instead.

- API: xAI (api.x.ai)
- Kind: Endpoint removal
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `POST /v1/messages`
- Source: [Announcement](https://docs.x.ai/developers/rest-api-reference/inference/legacy)
- Verified: November 6, 2026, against xAI's own pages
- Page: https://www.okapi.bot/providers/xai/breaking-changes/post-v1-messages-is-deprecated/

## xAI's words

> The Anthropic SDK compatibility is fully deprecated. Please migrate to the Responses API or the gRPC API.

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