Input2 - TypeScript SDK

Input2 type definition

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

Example Usage

1import { Input2 } from "@openrouter/sdk/models";
2
3let value: Input2 = {
4 messages: [
5 {
6 "content": "What is the meaning of life?",
7 "role": "user",
8 },
9 ],
10};

Fields

FieldTypeRequiredDescriptionExample
messagesany[]✔️N/A[
{"content": "What is the meaning of life?","role": "user"}
]