TopProviderInfo - TypeScript SDK

TopProviderInfo type definition

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

Information about the top provider for this model

Example Usage

1import { TopProviderInfo } from "@openrouter/sdk/models";
2
3let value: TopProviderInfo = {
4 isModerated: true,
5};

Fields

FieldTypeRequiredDescriptionExample
contextLengthnumberContext length from the top provider8192
maxCompletionTokensnumberMaximum completion tokens from the top provider4096
isModeratedboolean✔️Whether the top provider moderates contenttrue