pydo.inference.create_image()
Generated on 7 May 2026
from pydo version
v0.34.0
Description
Creates a high-quality image from a text prompt using GPT-IMAGE-1, the latest image generation model with automatic prompt optimization and enhanced visual capabilities.
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("MODEL_ACCESS_KEY"))
resp = client.images.generate(
model="openai-gpt-image-1",
prompt="A cute baby sea otter floating on its back in calm blue water",
size="auto",
quality="auto",
n=1,
)
print(resp.data[0].b64_json)More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.