Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Call /images/generations with the Python SDK.
client.generate_image()
result = client.generate_image({ "model": "openai/gpt-image-1", "prompt": "A lighthouse at golden hour", }) print(result)
Was this page helpful?