# xAI chat.parse() structured outputs not working with grok-4
## The problem
When using the grok-4 model, chat.parse() for structured outputs fails, while the same code works fine with other models like grok-2-vision. Is structured output broken on grok-4? My schema is a straightforward Pydantic model and it parses fine on other models. Rolling back to grok-2-vision makes the same code work again.
## The verified fix
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 works now. If you still see failures, report it again, but a retry should go through. Source: https://github.com/xai-org/xai-sdk-python/issues/21