Open API
GPT Image 2 API Reference
Standardisierte OpenAPI-Dokumentation für Bildgenerierung, Aufgabenabfrage und credits. Agents und Entwickler-Tools können dieselbe spec über /openapi.json lesen.
OpenAPI 3.1Bearer API keysImage generationCredits
Recommended API workflow
Use this API when your own tools, agents, or scripts need to create GPT Image 2 image tasks. The API returns a task first, then you poll the task endpoint for the final image result.
01
Create a key
Create a paid-account API key and send it as Authorization: Bearer sk-gip-...
02
Create and poll
POST a prompt to /api/open/v1/images/generations, then GET the returned task id until status becomes success or failed.
03
Review results
API-created images appear in /workspace/history with an API badge, alongside web-generated images.
OpenAPI 3.1 Reference
Human-readable docs and the machine-readable spec are generated from the same OpenAPI source.