ImageModelListItem - TypeScript SDK
ImageModelListItem - TypeScript SDK
ImageModelListItem type definition
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
A single image model in the discovery listing.
Example Usage
1 import { ImageModelListItem } from "@openrouter/sdk/models"; 2 3 let value: ImageModelListItem = { 4 architecture: { 5 inputModalities: [ 6 "text", 7 "image", 8 ], 9 outputModalities: [ 10 "image", 11 ], 12 }, 13 created: 1692901234, 14 description: "A text-to-image model.", 15 endpoints: "/api/v1/images/models/bytedance-seed/seedream-4.5/endpoints", 16 id: "bytedance-seed/seedream-4.5", 17 name: "Seedream 4.5", 18 supportedParameters: { 19 "resolution": { 20 type: "enum", 21 values: [ 22 "1K", 23 "2K", 24 "4K", 25 ], 26 }, 27 "seed": { 28 type: "boolean", 29 }, 30 }, 31 supportsStreaming: false, 32 };
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
architecture | models.ImageModelArchitecture | ✔️ | N/A | {"input_modalities": ["text","image"],"output_modalities": ["image"]} |
created | number | ✔️ | Unix timestamp (seconds) of when the model was created | 1692901234 |
description | string | ✔️ | N/A | A text-to-image model. |
endpoints | string | ✔️ | Relative URL to the full per-endpoint records for this model | /api/v1/images/models/bytedance-seed/seedream-4.5/endpoints |
id | string | ✔️ | Model slug | bytedance-seed/seedream-4.5 |
name | string | ✔️ | Display name | Seedream 4.5 |
supportedParameters | Record<string, *models.CapabilityDescriptor*> | ✔️ | Union of supported parameters across every endpoint of this model. Coarse discovery aid; the definitive per-endpoint set is behind the endpoints URL. | {"output_compression": {"max": 100,"min": 0,"type": "range"},“resolution”: {"type": "enum","values": ["1K","2K","4K"]},“seed”: {"type": "boolean"}} |
supportsStreaming | boolean | ✔️ | Whether any endpoint of this model supports native SSE streaming on the dedicated Image API (i.e. stream: true in the request). OR across endpoints. | false |