Example Usage
import { ImageEndpoint } from "@openrouter/sdk/models";
let value: ImageEndpoint = {
allowedPassthroughParameters: [],
pricing: [
{
billable: "output_image",
costUsd: 0.05,
unit: "image",
},
],
providerName: "Bytedance",
providerSlug: "bytedance",
providerTag: "bytedance",
supportedParameters: {
"resolution": {
type: "enum",
values: [
"1K",
"2K",
"4K",
],
},
"seed": {
type: "boolean",
},
},
supportsStreaming: false,
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
allowedPassthroughParameters | string[] | :heavy_check_mark: | Provider-specific options accepted under provider.options[provider_slug]. | [] |
pricing | models.ImagePricingEntry[] | :heavy_check_mark: | Billable pricing lines for this endpoint. | [ { “billable”: “output_image”, “cost_usd”: 0.05, “unit”: “image” } ] |
providerName | string | :heavy_check_mark: | Provider display name | Bytedance |
providerSlug | string | :heavy_check_mark: | Provider slug | bytedance |
providerTag | string | :heavy_check_mark: | Provider tag for request-side selection | bytedance |
supportedParameters | Record<string, models.CapabilityDescriptor> | :heavy_check_mark: | N/A | { “output_compression”: { “max”: 100, “min”: 0, “type”: “range” }, “resolution”: { “type”: “enum”, “values”: [ “1K”, “2K”, “4K” ] }, “seed”: { “type”: “boolean” } } |
supportsStreaming | boolean | :heavy_check_mark: | Whether this endpoint supports native SSE streaming (stream: true in the request). | false |