Model market
OpenAI

GPT Image 2

Image generation1K · 1024×1024 · n=1
TPool price$0.01per image
Output spec1K · 1024×1024 · n=1See the parameter table below
1 route

About this model

Text-to-image, 1K square

Request parameters

Text-to-image · POST /v1/images/generations

ParameterAccepted valuesDefaultDescription
modelRequiredModel ID—This page’s model ID
promptRequiredString,1–4000 characters—Prompt
nInteger,fixed at 11Number of outputs
size1024x10241024x1024Output size; public routes use a 1K square
providerRoute ID or autoautoPin a route for multi-route models; auto uses the lowest price

Image edits · POST /v1/images/edits

ParameterAccepted valuesDefaultDescription
modelRequiredModel ID—This page’s model ID
promptRequiredString,1–4000 characters—Prompt
imageRequiredImages 1–4 image:http(s) URL、data URL、file upload,per image ≤ 20 MiB—Up to 4 reference images, 20 MiB each
maskSingle image:http(s) URL、data URL、file upload—Mask image; transparent areas are editable
nInteger,fixed at 11Number of outputs
sizeauto / 1024x1024 / 1536x1024 / 1024x1536autoOutput size
providerRoute ID or autoautoPin a route for multi-route models; auto uses the lowest price

Parameters outside this list return HTTP 400 with the field name and supported parameters. Parameters marked “Ignored” are accepted but unused by Web models.

Quick call

quickstart.py
from openai import OpenAI

client = OpenAI(api_key="$TPOOL_API_KEY", base_url="https://tpool.dev/v1")

image = client.images.generate(
    model="openai/gpt-image-2",
    prompt="A white lighthouse by the sea at dawn, light fog, a film look",
    size="1024x1024",
)
print(image.data[0].url)