Structured JSON Output Response
A 3-step recipe with ChatGPT. We can help you get access.
Recipe · 3 steps
Structured JSON Output Response
with ChatGPT · Artificial Intelligence Management
Produce schema-constrained JSON from the Responses API and retrieve it.
- Create a stored response that constrains the output to the supplied JSON schema using strict formatting.
- Poll the response until it leaves the in_progress status.
- Retrieve the settled response and extract the structured JSON output text and token usage.
What you'll need to have ready
- apiKey: OpenAI API key used as the Bearer credential.
- model: Model ID used to generate the response (e.g. gpt-4o).
- input: The prompt describing the data to extract or generate.
- schemaName: The name of the JSON schema response format.
- jsonSchema: The JSON schema the output must conform to.
For your developer
Arazzo workflow chatgpt:structured-output-response, 3 operations: createResponse → getResponse → getResponse. Specs on APIs.io.