Pricing
Compare models →Pricing varies by quality and resolution. Each run produces one image and is charged at the price for its quality and resolution. The table shows the price per image for each combination.
| Quality | 1k resolution | 2k resolution | 4k resolution |
|---|---|---|---|
| low | |||
| medium (default) | |||
| high |
With default settings (medium quality, 1k resolution), one run costs $0.06 $0.057 per run.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
aspect_ratio | string | The aspect ratio of the generated image. Defaults to 1:1.1:11:22:11:33:12:33:23:44:34:55:49:1616:99:2121:9"1:1"JSON schema{
"x-placeholder": "Select aspect ratio"
} |
resolution | string | The resolution of the output image.1k2k4k"1k" |
quality | string | The quality of the generated image. Higher quality costs more.lowmediumhigh"medium" |
output_format | string | The format of the output image.pngjpegwebp"png" |
README
OpenAI GPT Image 2 Text-to-Image
OpenAI GPT Image 2 Text-to-Image transforms natural-language prompts into high-quality images. Describe the scene, style, lighting, composition, or typography you want, and the model generates polished visuals with strong prompt fidelity, detailed rendering, and flexible creative control.
- Need to edit an existing image instead? Try OpenAI GPT Image 2 Edit.
New: GPT Image 2.5 is available. The next generation adds two tiers, Flare (fast, balanced) and Sunburst (extra fidelity on intricate detail), five quality levels, and a lower default price. Same request format, so switching is a model-ID change: GPT Image 2.5 Flare Text-to-Image · GPT Image 2.5 Sunburst Text-to-Image.
Why Choose This?
- Strong prompt fidelity
Generate images that closely follow detailed natural-language instructions, including scene layout, visual style, and composition.
- High-quality image generation
Produce polished visuals suitable for marketing creatives, concept design, product mockups, and branded content.
- Accurate text rendering
Create images that include clearer, more usable in-image text for posters, ads, packaging, and interface mockups.
- Flexible aspect ratios
Support square, portrait, and landscape outputs for common social, editorial, and product use cases.
- Production-ready API
Access the model through a ready-to-use REST inference API for fast integration into applications and workflows.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the desired image. |
| aspect_ratio | No | Aspect ratio: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9. |
| resolution | No | Output resolution: 1k (default), 2k, or 4k. |
| quality | No | Image quality: low, medium (default), or high. |
How to Use
- Write your prompt — describe the image in detail, including subject, style, lighting, composition, and any text you want to appear.
- Choose aspect ratio (optional) — use
1:1for square,2:3or9:16for portrait,3:2or16:9for landscape, etc.
- Submit — run the model and download your generated image.
Example Prompt
A cinematic product photo of a luxury perfume bottle on a marble surface, soft golden-hour lighting, shallow depth of field, elegant reflections, premium editorial photography style
Pricing
Pricing varies by quality and resolution. Each run produces one image and is charged at the price for its quality and resolution. The table shows the price per image for each combination.
| Quality | 1k resolution | 2k resolution | 4k resolution |
|---|---|---|---|
| low | |||
| medium (default) | |||
| high |
With default settings (medium quality, 1k resolution), one run costs $0.06 $0.057 per run.
Best Use Cases
- Marketing creatives — Generate hero images, ad visuals, banners, and campaign assets from text prompts.
- E-commerce content — Create product shots, lifestyle scenes, and promotional visuals without a full studio workflow.
- Landing pages & web design — Produce branded illustrations, hero sections, and visual mockups for websites.
- Social media content — Quickly generate eye-catching visuals tailored to different content formats.
- Concept art & ideation — Explore visual directions for products, scenes, characters, and campaigns.
- Typography-driven visuals — Create posters, ads, and packaging concepts that require readable in-image text.
Pro Tips
- Be specific in your prompt — include subject, environment, camera angle, lighting, mood, and style.
- Use natural sentence structure rather than keyword stuffing for better prompt understanding.
- For text inside the image, put the exact wording in quotes.
- Mention visual style clearly, such as photorealistic, cinematic, vector illustration, oil painting, or isometric 3D.
- Test multiple aspect ratios when creating assets for different placements like social posts, banners, or landing pages.
- Iterate on prompt details like composition and lighting to get more consistent results.
Notes
promptis the only required field.
- Supported aspect ratios are
1:1,3:2,2:3,3:4,4:3,4:5,5:4,9:16,16:9, and21:9.
- This model is intended for text-to-image generation from natural-language instructions.
Related Models
- OpenAI GPT Image 2 Edit — Edit one or more reference images using natural-language instructions.
- OpenAI GPT Image 2.5 Flare Text-to-Image — Next generation, fast and balanced tier with five quality levels.
- OpenAI GPT Image 2.5 Sunburst Text-to-Image — Next generation, precision-focused tier for intricate detail.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
GPT Image 2 Text to Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/openai/gpt-image-2/text-to-image for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"aspect_ratio": "1:1",
"resolution": "1k",
"quality": "medium",
"output_format": "png"
}GPT Image 2 Text to Image API — Frequently asked questions
What is the Gpt Image 2 Text To Image API?
Gpt Image 2 Text To Image is a OpenAI model for image generation, exposed as a REST API on OpenSIAI. 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. You can call it programmatically or try it from the playground above.
How do I call the Gpt Image 2 Text To Image API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/openai/gpt-image-2/text-to-image.
How much does Gpt Image 2 Text To Image cost per run or per second?
Gpt Image 2 Text To Image starts at $0.057 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Gpt Image 2 Text To Image accept?
Key inputs: prompt, aspect_ratio, resolution, output_format, quality. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/openai/gpt-image-2/text-to-image.
How long does Gpt Image 2 Text To Image take to generate?
Reported generation time on OpenSIAI is around 39 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Gpt Image 2 Text To Image outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (OpenAI). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
