AI Image Generation API for Developers
GPT Image and Banana. One API key.Add image generation to your app with a consistent request format.
Playground
Choose your model
USD estimates use a fixed rate of 1 USD = 7 CNY. Generation uses credits; checkout remains in CNY.
One API. Multiple models.
Submit a request, keep the task ID, and retrieve the result when it is ready.
curl https://imgapi.vip/prod-api/tool/imgapi/draw/Async \
-H "Content-Type: application/json" \
-d '{
"key": "YOUR_16_CHAR_KEY",
"model": "gpt-image-2",
"prompt": "A floating island at sunrise",
"aspectRatio": "1:1",
"resolution": "2K",
"urls": ["https://cdn.example.com/reference.jpg"]
}'
Create variations
Visuals for your application
Explore image styles for your next project.





Frequently asked questions
What is imgAPI?
imgAPI provides a unified interface for image generation with GPT Image 2, GPT Image 2.5, Banana 2 and Banana Pro. Submit text or reference images and retrieve your results by task ID.
Can I explore imgAPI without signing up?
You can read the documentation, compare models and view sample images without an account. Sign in to generate images or obtain an API key.
How do I integrate the API?
Sign in, obtain your API key, and follow the cURL, Node.js or Python examples. Keep your key on your server. Submit a generation request, then poll the returned task ID.
Read the API documentation →How does billing work?
Generation uses credits. The model and resolution determine the credits required, which are shown before you submit. View your balance and settled usage in the dashboard.
How long are generated images available?
Download or copy your generated images within two hours. Saving an existing image does not submit a new generation request.
What if a request fails or takes too long?
Check the existing task before submitting another request. Credit refunds and eligible service credits follow the published policy and account records.
Read the service credit policy →