AI Image Generation API for Developers

GPT Image and Banana. One API key.Add image generation to your app with a consistent request format.

A reference-image workflow combining a person, clothing and accessories
Create with reference images imgAPI
One API key
Text and reference images
Asynchronous task polling

Playground

Model Scroll to choose a model. Drag a selected model to reorder.
Up to 10,000 characters
Reference images Up to 12
Enter a prompt to get started
Your generated image will appear here

Generated image preview

Choose your model

From0.86¢per image
24h success rateLoading
—
From0.86¢per image
24h success rateLoading
—
From2.29¢per image
24h success rateLoading
—
1.43¢per image
24h success rateLoading
—

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.

✓Consistent parameters across supported models
✓Credit-based billing for successful generations
✓Asynchronous polling for long-running tasks
Image generation request
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.

Skincare poster with luminous lighting
Blue sneaker poster with an urban motion theme
Handbag lifestyle banner
Jewelry poster with an evening theme
Furniture poster showing a chair in a room

Built for your next integration

Use the API in your own application or workflow.

Turn a command into an image

Send a prompt from your bot, poll the task, and deliver the generated image back to the conversation.

Explore the API →

Add image generation to your product

Let users create visuals with text and reference images. Keep the API key on your server and track each task by ID.

Read the integration guide →

Generate visual variations

Queue individual requests in your application, choose a supported model, and collect results with asynchronous polling.

Compare models →

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 →

Ready to add image generation to your app?