Structured output

Enforce a JSON schema so AI responses always follow a specific format.

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:

$claude mcp add \
> --transport http \
> --header "Authorization: Bearer YOUR_RESPAN_API_KEY" \
> respan \
> https://mcp.respan.ai/mcp

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.

Configure JSON schema in the prompt editor or the playground:

In the model settings, set Response format to JSON Schema and click Add schema.

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