Skip to main content

Type Alias: GatewayInferenceInputCreateImageRequest

type GatewayInferenceInputCreateImageRequest = {
prompt: string;
model?: string | "dall-e-2" | "dall-e-3" | null;
n?: number | null;
quality?: "standard" | "hd";
response_format?: "url" | "b64_json" | null;
size?: | "256x256" | "512x512" | "1024x1024" | "1792x1024" | "1024x1792"
| null;
style?: "vivid" | "natural" | null;
user?: string;
};

Defined in: src/models/ai-gateway-inference.ts:5164

Portkey CreateImageRequest; strict modeled input with explicit JSON extension maps.

Example​

`GatewayInferenceInputCreateImageRequestSchema.parse(value);`

Properties​

prompt​

prompt: string;

Defined in: src/models/ai-gateway-inference.ts:5165


model?​

optional model?: string | "dall-e-2" | "dall-e-3" | null;

Defined in: src/models/ai-gateway-inference.ts:5166


n?​

optional n?: number | null;

Defined in: src/models/ai-gateway-inference.ts:5167


quality?​

optional quality?: "standard" | "hd";

Defined in: src/models/ai-gateway-inference.ts:5168


response_format?​

optional response_format?: "url" | "b64_json" | null;

Defined in: src/models/ai-gateway-inference.ts:5169


size?​

optional size?:
| "256x256" | "512x512" | "1024x1024" | "1792x1024" | "1024x1792"
| null;

Defined in: src/models/ai-gateway-inference.ts:5170


style?​

optional style?: "vivid" | "natural" | null;

Defined in: src/models/ai-gateway-inference.ts:5171


user?​

optional user?: string;

Defined in: src/models/ai-gateway-inference.ts:5172