API Overview
Use GPT Image 2 APIs to create image, video, music, and text tasks.
GPT Image 2 API overview
Use the GPT Image 2 API when you want to build the same creative workflow into your own app, script, or automation.
Base URL and authentication
Use GPT Image 2 API base URL: https://gptimge.com.
https://gptimge.comEvery request must include your API key:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/jsonAPI pages
- Image generation: create image tasks with
POST /v1/images/generations. - Video generation (Coming soon): preview video tasks with
POST /v1/videos/generations. - Music generation (Coming soon): preview music tasks with
POST /v1/music/generations. - Chat completions (Coming soon): preview text responses with
POST /v1/chat/completions. - Task status: check image, video, and music results with
GET /v1/tasks/{id}.
Common workflow
- Create a task with the image, video, or music endpoint.
- Copy the returned task
id. - Poll
GET /v1/tasks/{id}untilstatusbecomessuccessorfailed. - Read the final files from
imageUrls,videoUrls, oraudioUrls.
Credit summary
| API | Credits |
|---|---|
| 1K image | 2 credits per image |
| 4K image | 4 credits per image |
| Text to video | 6 credits per task |
| Image to video | 8 credits per task |
| Video to video | 10 credits per task |
| Music | 10 credits per task |
Next step
Start with image generation if you want to generate pictures, or open the specific API page you need from the sidebar.