> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ExtractionsRequest

## Fields

| Field | Type | Required | Description | Example |
| - | - | - | - | - |
| `Assets` | map\[string][components.ExtractionAsset](../../models/components/extractionasset.mdx) | ➖ | 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. 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), needs that form: any other text around the key is state text and is rejected with 400. | |
| `Fields` | map\[string][components.Fields](../../models/components/fields.mdx) | ✔️ | Map of field name to typed field spec. | |
| `Model` | `string` | ✔️ | N/A | |
| `Provider` | optionalnullable.OptionalNullable\[[components.ProviderPreferences](../../models/components/providerpreferences.mdx)] | ➖ | N/A | \{ "allow\_fallbacks": true } |
| `ReferenceDate` | `*string` | ➖ | ISO date that anchors dates written without a year. | |
| `SessionID` | `*string` | ➖ | 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. | session-1234 |
| `State` | `string` | ✔️ | The text to read from. May be empty only when the request carries image assets. | |
| `Trace` | [\*components.TraceConfig](../../models/components/traceconfig.mdx) | ➖ | 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. | \{ "trace\_id": "trace-abc123", "trace\_name": "my-app-trace" } |
| `User` | `*string` | ➖ | N/A | |
