DocumentResponse - TypeScript SDK

DocumentResponse type definition

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

The document object echoing the original input (text and/or image)

Example Usage

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

Fields

FieldTypeRequiredDescriptionExample
imagestringThe image (URL or data URI) from the original documenthttps://example.com/image.png
textstringThe document textParis is the capital of France.