The guide for vision models is available here.
Text-to-Image Usage
Portkey supports the OpenAI signature to make text-to-image requests.- NodeJS
- Python
- OpenAI NodeJS
- OpenAI Python
- cURL
API Reference
Create ImageOpenAI gpt-image-1 Parameters
For OpenAI’sgpt-image-1 model, additional parameters are supported:
| Parameter | Type | Description |
|---|---|---|
moderation | string | Content moderation level for generated images |
output_format | string | Output format for the generated image |
output_compression | number | Compression level (0-100) for the output image |
background | string | Background style for the generated image |
partial_images | number | Number of partial images to return (0-3) |
stream | boolean | Whether to stream partial image results |


