xAI
POST /v1/messages endpoint removal
Deprecated, no dateSubscribe to xAIShare
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.
Calls it hits
POST /v1/messages
What to use instead of these calls
Use POST /v1/responses (Responses API) or the gRPC API instead.
In xAI's words
The Anthropic SDK compatibility is fully deprecated. Please migrate to the Responses API or the gRPC API.
Facts
- API
- xAI
api.x.ai - Kind
- Endpoint removal
- Takes effect
- No date given yet
- Calls after that day
- Fail
- Source
- Announcement
- Last updated
- Verified
- , against xAI's own pages
Questions
When does this change take effect?
xAI deprecated POST /v1/messages without giving a shutdown date yet.
Do these calls still work?
Yes, they still work: xAI has not given a shutdown date yet.
How do I find the calls this hits in my code?
Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.
More from xAI 10
-
grok-3Model retirement Redirected -
grok-4Model retirement Stopped working -
grok-2Model retirement Stopped working -
grok-2-1212Model retirement Stopped working -
grok-2-image-1212Model retirement Stopped working -
grok-2-latestModel retirement Stopped working -
grok-2-vision-1212Model retirement Stopped working -
grok-3-miniModel retirement Stopped working -
grok-betaModel retirement Stopped working -
grok-vision-betaModel retirement Stopped working
Is your code calling this?
Okapi finds the calls this change hits in your repo and opens the pull request with the fix.