New — access 450+ AI models through one unified API.Start building free

gpt-image-2/text-to-image

5% OFF

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.

text-to-image$0.0570$0.0600/ run

Prompt

Enhancer
0/2000
PreviewJSON

Your result will appear here

Write a prompt and hit Generate.

Examples

Generate a screenshot of a live stream where a blonde European-American beauty is live streaming.

Generate a screenshot of a live stream where a blonde European-American beauty is live streaming.

Generate a poster image of a European girl group.

Generate a poster image of a European girl group.

Generate a map of recommended tourist attractions around the world.

Generate a map of recommended tourist attractions around the world.

Generate an image: A realistic YouTube screenshot showing the official launch promotional video for GPT Image 2 from OpenAI's official account, with comments.

Generate an image: A realistic YouTube screenshot showing the official launch promotional video for GPT Image 2 from OpenAI's official account, with comments.

Vincent van Gogh style oil painting, side profile portrait of a man, double exposure composition, inside the silhouette a surreal landscape with swirling starry night sky, glowing stars, sunflowers and wheat field, thick expressive brush strokes, post-impressionism style.

Vincent van Gogh style oil painting, side profile portrait of a man, double exposure composition, inside the silhouette a surreal landscape with swirling starry night sky, glowing stars, sunflowers and wheat field, thick expressive brush strokes, post-impressionism style.

Related models

gpt-image-2 / edit5% OFFimage-to-image
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.

GPT Image$0.0665$0.0700
gpt-image-1.5 / editimage-to-image
gpt-image-1.5 / edit

GPT Image 1.5 Edit is OpenAI’s image model for precise, natural-language edits. Add/remove objects, swap backgrounds, retouch faces, adjust colors/lighting, edit text/graphics, crop/resize, and apply hex color control. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

GPT Image$0.0400
gpt-image-1.5 / text-to-imagetext-to-image
gpt-image-1.5 / text-to-image

GPT Image 1.5 text to image is OpenAI's fast, cost-efficient text-to-image generator powered by GPT-5 guidance. Create photorealistic shots, product renders, concept art, and stylized graphics from natural-language prompts (optionally conditioned with an image). Supports custom aspect ratios, seeds, negative prompts, hex color hints, and style presets. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

GPT Image$0.0400
gpt-image-1 / text-to-imagetext-to-image
gpt-image-1 / text-to-image

GPT Image 1 is OpenAI's multimodal image generation model combining GPT-4-Turbo reasoning with visual synthesis. It generates high-quality images from text prompts with clean typography for posters, memes, and branding. Supports multiple quality tiers and sizes. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

GPT Image$0.0500
gpt-image-1 / editimage-to-image
gpt-image-1 / edit

GPT Image 1 Edit transforms images with natural language instructions. It applies style changes, modifications, and creative transformations with optional mask support for precise regional editing and multiple quality tiers. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

GPT Image$0.0500

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.

Key Features

  • Strong prompt fidelity — accurately renders complex multi-element scenes with precise spatial relationships.
  • High-quality output — production-grade images with natural lighting, composition, and detail.
  • Accurate text rendering — one of the best models for generating readable text within images.
  • Flexible aspect ratios — supports 10 ratio options from 1:1 to 21:9 for any use case.
  • Production-ready API — simple integration with quality/resolution tiers for cost optimization.
  • Multiple resolution tiers: 1k, 2k, and 4k for preview through production workflows.

Parameters

ParameterRequiredDescription
promptYesDetailed description of the image to generate.
aspect_ratioNoRatio options: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9.
resolutionNoOutput resolution: '1k', '2k', or '4k' (default: '1k').
qualityNoQuality level: 'low', 'medium' (default), or 'high'.
output_formatNoOutput format: 'png', 'jpeg', or 'webp' (default: 'png').
enable_base64_outputNoReturn base64-encoded image data instead of URL.
enable_sync_modeNoEnable synchronous response mode.

How to Use

  1. Write a detailed prompt describing the image — GPT Image excels with natural language descriptions.
  2. Choose aspect ratio from the 10 available options.
  3. Select quality (low/medium/high) and resolution (1k/2k/4k) based on your needs.
  4. Generate and review results — iterate on your prompt for improvements.

Code Examples

import os
import requests

response = requests.post(
    "https://aircube.ai/api/v3/gpt-image-2/text-to-image",
    headers={
        "Authorization": "Bearer " + os.environ["AIRCUBE_API_KEY"],
        "Content-Type": "application/json",
    },
    json={
    "prompt": "A minimalist poster design with bold text reading 'DREAM BIG' in white sans-serif font on a gradient sunset background",
    "aspect_ratio": "9:16",
    "quality": "high",
    "resolution": "2k",
    "output_format": "png"
},
    timeout=300,
)
data = response.json()

if data["success"]:
    print("ID:", data["data"]["id"], "Status:", data["data"]["status"])
else:
    print("Error:", data["error"]["message"])

Pricing

ResolutionDurationCost
1klow quality$0.01
2klow quality$0.02
4klow quality$0.03
1kmedium quality$0.06
2kmedium quality$0.10
4kmedium quality$0.18
1khigh quality$0.22
2khigh quality$0.40
4khigh quality$0.72

Billing rules

  • Pricing varies by quality x resolution combination.
  • Low quality: $0.01 (1k), $0.02 (2k), $0.03 (4k).
  • Medium quality: $0.06 (1k), $0.10 (2k), $0.18 (4k).
  • High quality: $0.22 (1k), $0.40 (2k), $0.72 (4k).
  • Failed generations are not charged.

Best Use Cases

  • Marketing creatives — generate hero images, banners, and ad assets with text overlays.
  • E-commerce — product visualization and lifestyle imagery at scale.
  • Landing pages — custom hero images and section graphics.
  • Social media — platform-specific visuals with accurate text rendering.
  • Concept art — rapid creative exploration with precise prompt control.
  • Typography-driven visuals — designs requiring readable embedded text.

Pro Tips

  • GPT Image excels at text rendering — include specific text you want in the image within quotes.
  • Use natural language descriptions rather than keyword lists for best results.
  • Specify the artistic medium: 'oil painting', 'digital illustration', '3D render', 'photograph'.
  • For text-heavy designs, describe text placement explicitly: 'centered bold title reading...'
  • Use 'low' quality at '1k' for rapid iteration ($0.01), then 'high' at '4k' for final production.

Notes

  • 10 aspect ratio options available for flexible composition.
  • Output formats: PNG, JPEG, or WebP.
  • Content policy applies — certain subjects will be filtered.
  • Median generation time: approximately 58 seconds.

Gpt Image 2 Text To Image — Frequently asked questions