Structured output
Enforce a JSON schema so AI responses always follow a specific format.
Build with the Respan MCP
We recommend installing the Respan MCP so your AI coding tool can work with your prompts, logs, and traces directly. Authenticate with your Respan API key from the API keys page:
See the MCP docs for OAuth setup and other clients.
New to prompts? Start with the Quickstart.
For schema, deployment, streaming, and logging, see Advanced features.
Define structured output using JSON schema to ensure AI responses follow a specific format, following the OpenAI Structured Outputs specification.
Setup
Use in code
Configure JSON schema in the prompt editor or the playground:
Add schema
Define and save

You can generate schemas using the AI generator or browse examples in the editor.