GPT Image 1.5
openai/gpt-image-1.5ImageText to image.
Text input / 1M€4.55Your prompt
Image input / 1M€7.28Images you send to edit
Output / 1M€29.11Image tokens, by size and quality
DeliveryIn the responseBase64 (or a URL) in the same request
Uptime · 30 days99.90%
Measured on our own gateway, per day.
Good fit for
- Product shots, ads and illustrations
- Make images from text (/v1/images/generations)
- Edit your images (/v1/images/edits)
- Up to 10 images per request
- Sizes: 1024x1024, 1536x1024, 1024x1536, auto
Make an image
import base64, osfrom openai import OpenAIclient = OpenAI( base_url="https://api.nexrouting.com/v1", api_key=os.environ["NEXROUTING_API_KEY"],)img = client.images.generate( model="openai/gpt-image-1.5", prompt="A lighthouse at dawn, watercolor",)open("image.png", "wb").write(base64.b64decode(img.data[0].b64_json))