Submit an Extractions request
Changed onExtracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable.
Request
- Base URLhttps://openrouter.ai
- AuthHTTP bearer
Request body
Assets keyed by reference string. Write a reference wherever the asset belongs in state or a field instructions; every asset must be referenced at least once, unless state is empty or omitted, in which case the assets are read without a reference. A state that is exactly the sole asset's key carries no text of its own and is read as file-only. A model that reads either text or a document per request, not both (ScaleDown Extract with a PDF), takes that form or an empty or omitted state: any other text around the key is state text and is rejected with 400.
Map of field name to typed field spec.
Provider routing preferences for the request.
ISO date that anchors dates written without a year.
A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
The text to read from. May be empty or omitted only when the request carries assets, which are then read without being referenced by key.
Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
Example request
{
"provider": {
"allow_fallbacks": true
},
"session_id": "session-1234",
"trace": {
"trace_id": "trace-abc123",
"trace_name": "my-app-trace"
}
}Response
Extractions response
The text that spans index into, when requested through provider options.
True when the provider read only a prefix of the state.
Changes
- info
added the new optional request property
provider/allOf[#/components/schemas/ProviderPreferences]/options/celeris - info
added the new
Celerisenum value to the request propertyprovider/allOf[#/components/schemas/ProviderPreferences]/ignore/items/anyOf[#/components/schemas/ProviderName] - info
added the new
Celerisenum value to the request propertyprovider/allOf[#/components/schemas/ProviderPreferences]/only/items/anyOf[#/components/schemas/ProviderName]
1 more change in this revision
- info