/answer endpoint now takes a response_format parameter — the same OpenAI-style object /v1/chat/completions accepts. Under a JSON mode, the answer field carries a JSON string conforming to your schema instead of Markdown prose, and citations are returned exactly as before.
Highlights
- New
response_formatparameter —{"type": "json_object"}or{"type": "json_schema", ...} - Citations survive — Inline citations no longer appear in the answer text, but
citations[]is still populated - Fails fast — A malformed
response_formatis rejected with a400and not billed - Every tier — Works on
seltz-baseandseltz-pro, buffered and streaming - Available everywhere — Python SDK
1.7.0, TypeScript SDK2.5.0, and RESTPOST /v1/answer
Quick Start
Get Started
View the answer endpoint documentation