Okapi Okapi

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.

xAI, Announcement

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

  1. grok-3Model retirement Redirected
  2. grok-4Model retirement Stopped working
  3. grok-2Model retirement Stopped working
  4. grok-2-1212Model retirement Stopped working
  5. grok-2-image-1212Model retirement Stopped working
  6. grok-2-latestModel retirement Stopped working
  7. grok-2-vision-1212Model retirement Stopped working
  8. grok-3-miniModel retirement Stopped working
  9. grok-betaModel retirement Stopped working
  10. 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.

Add to GitHub

Get notifications

Subscribe to xAI

Hear about each breaking change xAI announces, in your feed reader, calendar or Slack.

1What to follow

Provider
  • xAI

2Where to get it

/breaking-changes/feed.xml

Paste it into Feedly, Inoreader, NetNewsWire or any reader. New changes show up as they're announced.