---
id: "google-gemini-structured-output"
title: "Structured outputs (Gemini API)"
creator: "Google"
url: "https://ai.google.dev/gemini-api/docs/structured-output"
level: "intermediate"
category: "prompting"
models: ["gemini"]
source_date: null
date_added: "2026-10-18"
---

[Prompting](/prompting/index.md)

# Structured outputs (Gemini API)

by Google

[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

Summary in our own words. All rights with the original creator. Correction or removal: DM on X.
