Skip to content
GridRouterhome

Search

Search providers, capabilities and pages

Extract JSON API

ai.extract

A typed JSON object from messy text, validated against your schema.
providers document it
14

Providers

14 providers document extract json in their own API docs. None routes it through GridRouter yet. Scores appear as calls are routed.

Show all 14 providers
What counts as a hit:
A schema-valid object.

API

Same input for every provider. Set provider.sort to route by price, reliability or latency, or provider.only to pin providers; X-Grid-Max-Cost caps what one call can spend.

Inputs for ai.extract
InputDescription
text*Source text (required)
schema*JSON Schema for the output (required)
Request
curl https://api.gridrouter.io/v1/run/ai.extract \
  -H "Authorization: Bearer $GRID_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-Grid-Max-Cost: 0.05" \
  -d '{"input":{"text":"Dana joined Northwind as VP Sales in March.","schema":"person"},"provider":{"sort":"price"}}'

Fields

The normalized output every provider maps into. Suppliers come from integrated endpoint mappings (verified) or field names in each provider's API docs (claimed by the provider).

Every capability's fields
Output fields for Extract JSON
FieldTypePIIDescriptionSupplied by
fieldsobjectNoneStructured output per schemaClayMistral AI APIOpenRouterParallel Web Systems
modelstringNoneModel idDeepSeek APIMistral AI APIOpenRouterTogether AI
confidencenumberNoneExtraction confidenceClay