ImageGenerationRequestBuilder

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Background transparency.

Link copied to clipboard

The image model. Supply an explicit current GPT Image model for generation.

Link copied to clipboard

Image moderation level.

Link copied to clipboard
var n: Int?

The number of images to generate. Must be between 1 and 10.

Link copied to clipboard

JPEG or WebP compression from 0 to 100.

Link copied to clipboard

Encoded image format.

Link copied to clipboard

Number of partial images requested during streaming, from 0 to 3.

Link copied to clipboard

A text description of the desired image(s). GPT Image accepts up to 32000 characters.

Link copied to clipboard

Image quality.

Link copied to clipboard

Stable, non-identifying end-user identifier.

Link copied to clipboard

The size of the generated images.

Link copied to clipboard
var style: Style?

Legacy image style; unsupported by GPT Image.

Link copied to clipboard
var user: String?

Deprecated end-user identifier; prefer safetyIdentifier.

Functions

Link copied to clipboard

Creates an image generation request.