AI Cloud Architect

Improving Structured Outputs in the Gemini API

GoogleAnnouncement by Gemini API TeamGoogle AI (The Keyword)

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Gemini API structured outputs now accept full JSON Schema (anyOf, $ref, minimum/maximum, prefixItems and more) and keep the schema's key order in responses.

Who it is for

Developers using Pydantic or Zod with the Gemini API to extract data or pass structured output between agents.

Key points

  • Key order preservation is supported for Gemini 2.5 models and later, and also applies to the OpenAI compatibility API.
  • Post says the updates are available in the API today; no pricing is mentioned.

The same at other vendors

Timeline

Posts about Gemini on Gemini API, oldest first.

  1. Update to an existing featureGemini Batch API now supports Embeddings and OpenAI Compatibility · Google · Announcement
  2. Generally availableGemini 2.5 Flash Image now ready for production with new aspect ratios · Google · Announcement
  3. New featureIntroducing Veo 3.1 and new creative capabilities in the Gemini API · Google · Announcement
  4. Generally availableGrounding with Google Maps: Now available in the Gemini API · Google · Announcement
  5. This postImproving Structured Outputs in the Gemini API
  6. New modelStart building with Gemini 3 · Google · Announcement
  7. New modelNew Gemini API updates for Gemini 3 · Google · Announcement
  8. Update to an existing featureImproving Gemini Text-to-Speech models for better control and capabilities · Google · Announcement
  9. New featureBuild with Gemini Deep Research · Google · Announcement
Show all 40 posts
  1. Update to an existing featureGemini Batch API now supports Embeddings and OpenAI Compatibility · Google · Announcement
  2. Generally availableGemini 2.5 Flash Image now ready for production with new aspect ratios · Google · Announcement
  3. New featureIntroducing Veo 3.1 and new creative capabilities in the Gemini API · Google · Announcement
  4. Generally availableGrounding with Google Maps: Now available in the Gemini API · Google · Announcement
  5. This postImproving Structured Outputs in the Gemini API
  6. New modelStart building with Gemini 3 · Google · Announcement
  7. New modelNew Gemini API updates for Gemini 3 · Google · Announcement
  8. Update to an existing featureImproving Gemini Text-to-Speech models for better control and capabilities · Google · Announcement
  9. New featureBuild with Gemini Deep Research · Google · Announcement
  10. New featureInteractions API: A unified foundation for models and agents · Google · Announcement
  11. New modelBuild with Gemini 3 Flash, frontier intelligence that scales with you · Google · Announcement
  12. Update to an existing featureIncreased file size limits and expanded inputs support in Gemini API · Google · Announcement
  13. Update to an existing featureEnhanced Veo 3.1 capabilities are now available in the Gemini API. · Google · Announcement
  14. PreviewBringing Nano Banana 2 to enterprise · Google · Announcement
  15. Update to an existing featureGiving you more transparency and control over your Gemini API costs · Google · Announcement
  16. New featureGemini API tooling updates: context circulation, tool combos and Maps grounding for Gemini 3 · Google · Announcement
  17. PreviewBuild real-time conversational agents with Gemini 3.1 Flash Live · Google · Announcement
  18. New featureImprove coding agents’ performance with Gemini API Docs MCP and Agent Skills. · Google · Announcement
  19. Update to an existing featurePrepay for the Gemini API to get more control over your spend · Google · Announcement
  20. New modelGemini 3.1 Flash TTS: the next generation of expressive AI speech · Google · Announcement
  21. New featureDeep Research Max: a step change for autonomous research agents · Google · Announcement
  22. New featureReduce friction and latency for long-running jobs with Webhooks in Gemini API · Google · Announcement
  23. New featureIntroducing Managed Agents in the Gemini API · Google · Announcement
  24. New featureBringing the latest Gemini models to Apple developers · Google · Announcement
  25. Generally availableInteractions API: our primary interface for Gemini models and agents · Google · Announcement
  26. New modelStart building with Nano Banana 2 Lite and Gemini Omni Flash · Google · Announcement
  27. New modelIntroducing Gemini 3.6 Flash, 3.5 Flash-Lite, and 3.5 Flash Cyber · Google · Announcement
  28. New modelIntroducing Gemini 3.7 Flash · Google · AnnouncementAlso published by Google DeepMind Blog
  29. New modelIntelligent transcription with Gemini 3.5 Transcribe · Google · Announcement
  30. New featureIntroducing agentic video understanding with Gemini · Google · Announcement
  31. Generally availableAnnouncing the Google Gen AI SDK for Kotlin 1.0: Idiomatic multiplatform access to Gemini · Google · Announcement
  32. New modelGemini 3.8 text-to-speech says hello · Google · AnnouncementAlso published by Google DeepMind Blog
  33. New modelGemini 4 Argon is now available for developers. · Google · Announcement
  34. New modelGemini 4 Carbon is now available for developers. · Google · Announcement
  35. New serviceGemini Decisions API: Fast, calibrated multimodal decisions · Google · Announcement
  36. New modelIntroducing Gemini 4 Hydrogen · Google · Announcement
  37. New modelGemini 4 Hydrogen: a faster model for general purpose robotics · Google · Announcement
  38. Generally availableGenie 4 is now available on the Gemini API. · Google · Announcement
  39. PreviewIntroducing Tool Retrieval in the Gemini API · Google · Announcement
  40. New featureIntroducing file slicing controls in the Gemini API · Google · Announcement