OpenAI GPT Image 2 Text-to-Image
openai/gpt-image-2/text-to-image
OpenAI's GPT Image 2 Text-to-Image generates high-quality images from natural-language prompts. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Examples
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| prompt *Prompt | textarea | — | The positive prompt for the generation. |
| nImage Count | slider | 1 | The number of images to generate (1-10). Each image is billed separately. |
| aspect_ratioAspect Ratio | select | 1:1 | The aspect ratio of the generated image. Ignored if 'size' is specified. |
| resolutionResolution | select | 1k | Output resolution level. Ignored if 'size' is specified. |
| sizeSize | text | auto | Specific image resolution. The format is [width]x[height]. If specified, aspect_ratio and resolution will be ignored. |
| qualityQuality | select | auto | Rendering quality. Higher quality costs more and takes longer. |
| output_formatOutput Format | select | png | The format of the output image. JPEG is faster for low latency. |
| output_compressionCompression | number | — | Compression level, only valid for JPEG/WebP (0-100). |
| moderationModeration | select | auto | Content moderation level. |
API
Call this model through one unified REST API. Get a key on the API Keys page.
curl -X POST https://www.namifusion.com/api/v1/marketplace/run/openai/gpt-image-2/text-to-image \
-H "Authorization: Bearer sk-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "input": { "prompt": ..., "n": ..., "aspect_ratio": ... } }'Related models
OpenAI GPT Image 2 Edit
OpenAI's GPT Image 2 Edit enables image editing from natural-language instructions with one or more reference images. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Nano Banana Text to Image
Gemini 2.5 Flash Image. Lightweight and fast. The most affordable option for instant, high-volume generation.
Nano Banana Pro Text to Image
Gemini 3.0 Pro Image. The high-fidelity choice for 4K visuals, multilingual text rendering, and pro camera controls.
Nano Banana Pro Text to Image
Gemini 3.0 Pro Image. The high-fidelity choice for 4K visuals, multilingual text rendering, and pro camera controls.
Google Nano Banana Lite Text to Image API
Google Nano Banana 2 Lite Text to Image generates high-quality images from text prompts with low latency, flexible aspect ratios, and fast image creation for creative and production workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Seedream V5.0 Pro Text to Image API
Seedream V5.0 Pro Text to Image by ByteDance generates high-quality images from text prompts, with aspect ratio selection, strong prompt following, and 1K / 2K output tiers for flexible image creation. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Seedream 5.0 Lite Sequential
Seedream 5.0 Lite Sequential generates multi-image sets with consistent characters and objects, unifying palette, lighting, and style across all outputs. Supports up to 4K results for campaigns, storyboards, and product lines. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Seedream 5.0 Lite
Seedream 5.0 Lite by is a state-of-the-art text-to-image model with enhanced typography, clear text rendering for posters and brand visuals, superior prompt adherence, and up to 4K resolution. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.