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

1import { ImageModelListItem } from "@openrouter/sdk/models";
2
3let 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

FieldTypeRequiredDescriptionExample
architecturemodels.ImageModelArchitecture✔️N/A{"input_modalities": ["text","image"],"output_modalities": ["image"]}
creatednumber✔️Unix timestamp (seconds) of when the model was created1692901234
descriptionstring✔️N/AA text-to-image model.
endpointsstring✔️Relative URL to the full per-endpoint records for this model/api/v1/images/models/bytedance-seed/seedream-4.5/endpoints
idstring✔️Model slugbytedance-seed/seedream-4.5
namestring✔️Display nameSeedream 4.5
supportedParametersRecord<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"}
}
supportsStreamingboolean✔️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