OpenAIImageConfig
Defined in: core/src/images.ts:85
Extends
Section titled “Extends”ImageConfig
Properties
Section titled “Properties”apiKey
Section titled “apiKey”apiKey: string;Defined in: core/src/images.ts:86
baseUrl?
Section titled “baseUrl?”optional baseUrl?: string;Defined in: core/src/images.ts:88
API root before /images. Defaults to https://api.openai.com/v1.
fetchImpl?
Section titled “fetchImpl?”optional fetchImpl?: FetchLike;Defined in: core/src/images.ts:79
Inherited from
Section titled “Inherited from”ImageConfig.fetchImplinputFidelity?
Section titled “inputFidelity?”optional inputFidelity?: "low" | "high";Defined in: core/src/images.ts:93
Applied only to edits. Check that the selected model supports it.
maxAttempts?
Section titled “maxAttempts?”optional maxAttempts?: number;Defined in: core/src/images.ts:95
Explicit opt-in to the Images SDK’s retry policy. Default: one attempt.
model: string;Defined in: core/src/images.ts:76
Inherited from
Section titled “Inherited from”ImageConfig.modelmoderation?
Section titled “moderation?”optional moderation?: "auto" | "low";Defined in: core/src/images.ts:91
Applied only to generation.
quality?
Section titled “quality?”optional quality?: "auto" | "low" | "medium" | "high";Defined in: core/src/images.ts:89
timeoutMs?
Section titled “timeoutMs?”optional timeoutMs?: number;Defined in: core/src/images.ts:78
Time limit per request. Defaults to 180 seconds.
Inherited from
Section titled “Inherited from”ImageConfig.timeoutMs