ImageModelEndpointsResponse - TypeScript SDK

ImageModelEndpointsResponse type definition

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

The full per-endpoint records for an image model.

Example Usage

1import { ImageModelEndpointsResponse } from "@openrouter/sdk/models";
2
3let value: ImageModelEndpointsResponse = {
4 endpoints: [
5 {
6 allowedPassthroughParameters: [],
7 pricing: [
8 {
9 billable: "output_image",
10 costUsd: 0.05,
11 unit: "image",
12 },
13 ],
14 providerName: "Bytedance",
15 providerSlug: "bytedance",
16 providerTag: "bytedance",
17 supportedParameters: {
18 "resolution": {
19 type: "enum",
20 values: [
21 "1K",
22 "2K",
23 "4K",
24 ],
25 },
26 },
27 supportsStreaming: false,
28 },
29 ],
30 id: "bytedance-seed/seedream-4.5",
31};

Fields

FieldTypeRequiredDescriptionExample
endpointsmodels.ImageEndpoint[]✔️N/A
idstring✔️Model slugbytedance-seed/seedream-4.5