Images - Go SDK
Images - Go SDK
Images method reference
The Go SDK and docs are currently in beta. Report issues on GitHub.
Overview
Images endpoints
Available Operations
- Generate - Generate an image
- ListModels - List image generation models
- ListModelEndpoints - List endpoints for an image model
Generate
Generates an image from a text prompt via the image generation router
Example Usage
Parameters
Response
*operations.CreateImagesResponse, error
Errors
ListModels
Lists every image generation model with its top-level supported-parameter superset and a URL to its full per-endpoint records.
Example Usage
Parameters
Response
*components.ImageModelsListResponse, error
Errors
ListModelEndpoints
Returns the full per-endpoint records for an image model: each endpoint’s definitive supported parameters, pricing, and passthrough allowlist.
Example Usage
Parameters
Response
*components.ImageModelEndpointsResponse, error