Which LLM reliably returns valid structured output for agents?
There is no universally reliable JSON model: reliability changes with the schema and the application parser. Test the exact schema more than once, then compare pass rate before cost. AI NetCafé publishes live-app benchmarks where a single format failure makes the run fail.
👋 Human reading this? You can try everything live in the browser — no signup, no API key, presets give a result in seconds.
Agent 需要稳定 JSON 时该选哪个模型?
不存在对所有 JSON 都最稳的模型。可靠性会随 schema 和应用解析器变化,必须用真实格式重复测试,先看通过率,再比较成本。
Measured evidence: gpt-researcher
Updated 2026-09-16; 3 models measured, 3 passed every task; the lowest measured cost among complete passes was gpt-5.6-luna at $0 per benchmark run.
Measured evidence: presenton
Updated 2026-09-16; 3 models measured, 3 passed every task; the lowest measured cost among complete passes was gpt-5.6-luna at $0 per benchmark run.
Agent workflow
- Paste the exact schema and forbid prose outside JSON.
- Run each candidate more than once.
- Treat any parse failure as a failed production run.
- Choose the cheapest model among those with a complete pass rate.
Recommended tool: compare_models
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "compare_models",
"arguments": {
"prompt": "Return only valid JSON matching this schema: {\"title\":\"string\",\"risks\":[\"string\"]}."
}
}
}
MCP endpoint: https://ainetcafe.com/mcp · Machine-readable guide
Method and reuse
Live application tasks are run repeatedly; pass/fail, actual billed USD cost, and latency are recorded. Upstream-unavailable models are excluded from quality conclusions.
Data license: CC BY 4.0. Cite the page URL and measurement date.