Go to example tasks

Return strict JSON from a schema

Ask a compatible model for a tiny JSON object that matches a caller-supplied JSON Schema.

Try for free
OpenRouter for Agents - Tools & Fallbacks
OpenRouter for Agents - Tools & Fallbacksautoma-flow/openrouter-agent-gateway
Request id
Status
Model requested
Model used
+4 fields
Text
Number
Boolean
List
Object

Input

Agent requests(required)
Request id(required):city-json
Primary model:openai/gpt-4o-mini
Chat messages(required)
Response format
Max tokens:64
Provider routing

Output fields

Request id
Status
Model requested
Model used
Fallback used
Finish reason
Latency (ms)
Error

How it works

Sign up on Apify or log in

The OpenRouter for Agents - Tools & Fallbacks Actor is ready to run with the inputs already set for "Return strict JSON from a schema". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Return strict JSON from a schema" task

The OpenRouter for Agents - Tools & Fallbacks Actor will start running based on the input automatically. You can also change all the input fields, like agent requests, to match your specific use case.

Receive the "Return strict JSON from a schema" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as request id, status, model requested, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Return strict JSON from a schema" task via API.

Image

Integrate "Return strict JSON from a schema" into your workflow

Connect "Return strict JSON from a schema" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay