IMAGE & 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

Sunset lighthouseDemo image
Sunset lighthouseLandscape photography · warm light
Still life in lightDemo image
Still life in lightProduct photography · glass and projection
Neon nightDemo image
Neon nightCity photography · night atmosphere
Demo video
Coastal aerialMotion shot · 8-second demo
MODELS

Available image and video models

TPool prices images per output and videos per clip. See each model for specs and request parameters.

QUICKSTART

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 docs
quickstart.py
from 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)