Interface: OpenAIImageParams
@providerprotocol/ai / openai / OpenAIImageParams
Interface: OpenAIImageParams
Section titled “Interface: OpenAIImageParams”Defined in: src/providers/openai/image.ts:36
OpenAI image generation parameters. Passed through unchanged to the API.
Properties
Section titled “Properties”background?
Section titled “background?”
optionalbackground:"auto"|"transparent"|"opaque"
Defined in: src/providers/openai/image.ts:46
Background transparency (GPT Image only)
moderation?
Section titled “moderation?”
optionalmoderation:"auto"|"low"
Defined in: src/providers/openai/image.ts:54
Content moderation (GPT Image only)
optionaln:number
Defined in: src/providers/openai/image.ts:38
Number of images to generate (1-10 for GPT Image, 1 for DALL-E 3)
output_compression?
Section titled “output_compression?”
optionaloutput_compression:number
Defined in: src/providers/openai/image.ts:50
Output compression (0-100 for webp/jpeg)
output_format?
Section titled “output_format?”
optionaloutput_format:"jpeg"|"png"|"webp"
Defined in: src/providers/openai/image.ts:48
Output format (GPT Image only)
partial_images?
Section titled “partial_images?”
optionalpartial_images:number
Defined in: src/providers/openai/image.ts:58
Number of partial images during streaming (0-3)
quality?
Section titled “quality?”
optionalquality:"auto"|"low"|"medium"|"high"|"standard"|"hd"
Defined in: src/providers/openai/image.ts:42
Image quality
response_format?
Section titled “response_format?”
optionalresponse_format:"url"|"b64_json"
Defined in: src/providers/openai/image.ts:52
Response format
optionalsize:"auto"|"1024x1024"|"1024x1536"|"1536x1024"|"256x256"|"512x512"|"1792x1024"|"1024x1792"
Defined in: src/providers/openai/image.ts:40
Output size (varies by model)
stream?
Section titled “stream?”
optionalstream:boolean
Defined in: src/providers/openai/image.ts:56
Enable streaming (GPT Image only)
style?
Section titled “style?”
optionalstyle:"vivid"|"natural"
Defined in: src/providers/openai/image.ts:44
Style (DALL-E 3 only)
optionaluser:string
Defined in: src/providers/openai/image.ts:60
User identifier