1024 × 1024IllustrationIMAGE & VIDEO
Image and video generation
Images are priced per output and videos per clip, using the OpenAI Images and Videos request shapes.
Creative references · Pexels demo media; model outputs coming soon
Demo image
Demo image
Demo imageMODELS
Available image and video models
TPool prices images per output and videos per clip. See each model for specs and request parameters.
1024 × 1024Illustration
1024 × 1024Illustration
1024 × 1024Illustration
图生图 · 最多 8 张参考图Illustration
快速档 · n=1–4Illustration
1–6 秒 · 720p · 16:9 / 9:16IllustrationQUICKSTART
One request, a complete image.
Use images.generate from the OpenAI SDK with your API URL, key, and image model ID.
Read the image API docsfrom openai import OpenAIimport osclient = OpenAI( api_key=os.environ["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="auto",)print(image.data[0].url)