DocumentRequest - TypeScript SDK

DocumentRequest type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

A structured document with optional text and/or image content. At least one of text or image must be provided.

Example Usage

1import { DocumentRequest } from "@openrouter/sdk/models/operations";
2
3let value: DocumentRequest = {};

Fields

FieldTypeRequiredDescriptionExample
imagestringAn image associated with the document, as a remote URL (http/https) or a base64-encoded data URI (data:image/…).https://upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Phytogenic.png
textstringThe document textAI enables robots to perceive, plan, and act autonomously.