Open API

GPT Image 2 API Reference

이미지 생성, 작업 조회, credits 조회를 위한 표준 OpenAPI 문서입니다. Agent와 개발 도구는 /openapi.json에서 같은 spec을 직접 읽을 수 있습니다.

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.