How to get structured output from any LLM: JSON Schema, tool calls, or decision models
OpenRouter tested three methods for obtaining structured outputs from LLMs, validated on nine models supporting structured outputs and only tool-supported GLM 5.3 FlashX, where 209/216 responses matched strict JSON Schema.



















