← Library
Structured output and JSON mode with Token Factory
Official Token Factory docs showing how to force JSON responses via json_object mode or a strict JSON schema (e.g. a Pydantic BaseModel), with Python, cURL and JavaScript samples.tokenfactory
The full write-up lives on the original source — use the link above to read it.