Images - TypeScript SDK
Images - TypeScript SDK
Images method reference
The TypeScript 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
Standalone function
The standalone function version of this method:
Parameters
Response
Promise<operations.CreateImagesResponse>
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
Standalone function
The standalone function version of this method:
Parameters
Response
Promise<models.ImageModelsListResponse>
Errors
listModelEndpoints
Returns the full per-endpoint records for an image model: each endpoint’s definitive supported parameters, pricing, and passthrough allowlist.
Example Usage
Standalone function
The standalone function version of this method:
Parameters
Response
Promise<models.ImageModelEndpointsResponse>