ImageEndpoint - Go SDK

ImageEndpoint type definition

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

An endpoint that serves a given image model.

Fields

FieldTypeRequiredDescriptionExample
AllowedPassthroughParameters[]string✔️Provider-specific options accepted under provider.options[provider_slug].[]
Pricing[]components.ImagePricingEntry✔️Billable pricing lines for this endpoint.[
{"billable": "output_image","cost_usd": 0.05,"unit": "image"}
]
ProviderNamestring✔️Provider display nameBytedance
ProviderSlugstring✔️Provider slugbytedance
ProviderTag*string✔️Provider tag for request-side selectionbytedance
SupportedParametersmap[string]components.CapabilityDescriptor✔️N/A{"output_compression": {"max": 100,"min": 0,"type": "range"},
“resolution”: {"type": "enum","values": ["1K","2K","4K"]},
“seed”: {"type": "boolean"}
}
SupportsStreamingbool✔️Whether this endpoint supports native SSE streaming (stream: true in the request).false