Open API
GPT Image 2 API Reference
Documentación OpenAPI estándar para generación de imágenes, consulta de tareas y consulta de credits. Agents y herramientas de desarrollo pueden leer la misma spec en /openapi.json.
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.
Create a key
Create a paid-account API key and send it as Authorization: Bearer sk-gip-...
Create and poll
POST a prompt to /api/open/v1/images/generations, then GET the returned task id until status becomes success or failed.
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.