A recent analysis of API calls revealed that a significant number of structured output requests failed not due to model errors, but because the API providers rejected the JSON schema itself. Toolkit Labs found that 28 out of 72 calls resulted in HTTP 400 errors, with Google AI Studio's Gemini 3.1 Flash-Lite rejecting all 18 of its test schemas. Other providers like Groq also encountered schema rejections, often due to strict requirements for fields like 'required' or 'additionalProperties' that differ from standard JSON Schema drafts. The study also highlighted that while plain prompting might appear successful, many responses were not directly parseable without additional extraction steps. AI
IMPACT Highlights potential integration challenges and the need for schema validation before model inference.
RANK_REASON Analysis of API call failures related to JSON schema adherence. [lever_c_demoted from research: ic=1 ai=1.0]
- Gemini 3.1 Flash-Lite
- Google AI Studio
- Groq
- json-schema
- OpenAI GPT OSS 120B
- OpenAI GPT-OSS-20B
- Qwen/Qwen3.6-27B
- Toolkit Labs
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →