The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { ModelArchitecture } from "@openrouter/sdk/models";
let value: ModelArchitecture = {
inputModalities: [
"text",
],
modality: "text->text",
outputModalities: [
"text",
],
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
inputModalities | models.InputModality[] | :heavy_check_mark: | Supported input modalities | |
instructType | models.ModelArchitectureInstructType | :heavy_minus_sign: | Instruction format type | chatml |
modality | string | :heavy_check_mark: | Primary modality of the model | text->text |
outputModalities | models.OutputModality[] | :heavy_check_mark: | Supported output modalities | |
tokenizer | models.ModelGroup | :heavy_minus_sign: | Tokenizer type used by the model | GPT |