Published onJune 26, 2026OpenAI structured outputs with Zod in JavaScriptUse OpenAI structured outputs with a Zod schema to get typed JSON back from an LLM in JavaScript.javascriptsnippetsopenaillmzod