Skip to content
providerkit
GitHub

OpenAIImageConfig

Defined in: core/src/images.ts:85

  • ImageConfig
apiKey: string;

Defined in: core/src/images.ts:86


optional baseUrl?: string;

Defined in: core/src/images.ts:88

API root before /images. Defaults to https://api.openai.com/v1.


optional fetchImpl?: FetchLike;

Defined in: core/src/images.ts:79

ImageConfig.fetchImpl

optional inputFidelity?: "low" | "high";

Defined in: core/src/images.ts:93

Applied only to edits. Check that the selected model supports it.


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

ImageConfig.model

optional moderation?: "auto" | "low";

Defined in: core/src/images.ts:91

Applied only to generation.


optional quality?: "auto" | "low" | "medium" | "high";

Defined in: core/src/images.ts:89


optional timeoutMs?: number;

Defined in: core/src/images.ts:78

Time limit per request. Defaults to 180 seconds.

ImageConfig.timeoutMs