product · inferred from evidence
grok-4
A model for which structured outputs were broken in the API.
- xAI chat.parse() structured outputs not working with grok-4
That was a bug on the API side, not in the SDK or your code. Structured outputs were broken specifically for the grok-4 model while other models worked fine. It has been fixed server-side, so the same chat.parse() code that failed before wo