Vibeleaderboard
← All Intel
Intel / article

Structured Outputs And Free Gemini Flash 20

Source
openrouter.ai
Author
OpenRouter
Date

Context

OpenRouter's December 2024 update added structured outputs for OpenAI GPT-4o and Fireworks models. The feature lets an specify the shape of a response through JSON , so its code can expect particular fields and data types. Original announcement.

The documentation illustrates this with a weather response that requires a location as text and a as a number. The application supplies that schema with its request instead of relying only on a prose instruction about formatting. The documentation says support is determined per endpoint, not just per model, so developers need a compatible provider endpoint for the constraint to apply. The announcement dates from 2024 and the documentation has since evolved, so current provider coverage should be checked there. Structured-output documentation.

Terms in this piece · Glossary
  • Application — Software arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.
  • Schema — A written description of a data format: which fields exist, what kind of value each holds and which are required.
  • Sampling controls — Parameters that shape how deterministic or varied model generation becomes.
  • time to first token — The delay between sending a model request and receiving the first piece of its response.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source openrouter.ai
Tools in this story
More from OpenRouter
Recommended reads