The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { TopProviderInfo } from "@openrouter/sdk/models";
let value: TopProviderInfo = {
isModerated: true,
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
contextLength | number | :heavy_minus_sign: | Context length from the top provider | 8192 |
isModerated | boolean | :heavy_check_mark: | Whether the top provider moderates content | true |
maxCompletionTokens | number | :heavy_minus_sign: | Maximum completion tokens from the top provider | 4096 |