---
id: "google-gemini-structured-output"
title: "Structured outputs (Gemini API)"
creator: "Google"
creator_url: "https://ai.google.dev/gemini-api/docs/structured-output"
url: "https://ai.google.dev/gemini-api/docs/structured-output"
level: "intermediate"
level_max: null
category: "prompting"
subcategory: "reasoning-and-structured-output"
region: "West"
license: "open"
license_scope: "linked-resource"
models: ["gemini"]
source_date: null
date_added: "2026-10-18"
---

[Prompting](/prompting/index.md)

# Structured outputs (Gemini API)

by [Google](https://ai.google.dev/gemini-api/docs/structured-output)

[Read the original →](https://ai.google.dev/gemini-api/docs/structured-output)

Gemini's equivalent: constrain responses to a JSON schema.

Gemini's documentation shows how to request machine-readable responses with a declared schema. This is relevant when another program consumes the result and cannot rely on informal formatting.

Level: [Intermediate](/levels/index.md#intermediate)
Models: gemini
Category: [Prompting](/prompting/index.md)
Tags: [structured-output](/tags/structured-output/index.md)
Source date: date not stated
Added: 2026-10-18
Last verified: 2026-10-18
Status: ok
Prerequisites: Assumes basic LLM familiarity or the ability to read examples and configure a workflow.
Subcategory: [reasoning and structured output](/prompting/reasoning-and-structured-output/index.md)
Region: West
Original language: en
Access: free
Resource reuse: open: Source states CC-BY-4.0. Applies to the linked resource, not every referenced model or dataset. [Facet definitions](/about/index.md#facets)

Summary in our own words. Rights remain with the original creator. [Credit and correction policy](/about/index.md#credit-policy).

[Plain-text Markdown copy](/prompting/reasoning-and-structured-output/google-gemini-structured-output/index.md)
