curl -X POST https://api.getimg.ai/v2/images/generations \
  -H "Authorization: Bearer $GETIMG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "model": "gemini-3-1-flash-image",
      "prompt": "3D human figure made out of tiny dust-like voxels, looking to the left, smoothly desintegrating into background, medium portrait shot, purple monochrome",
      "aspect_ratio": "1:1",
      "resolution": "1K",
      "output_format": "jpeg"
    }'

AI image and video generation API.

Ship image and video generation in your product today. One API, multiple models, no GPUs to manage. Sub-second image generation, async video with polling, transparent per-request pricing.

  • Quick setup — integrate image generation in a few lines of code.
  • Fast — sub-second image generation, async video with polling.
  • Transparent — usage-based pricing, no subscriptions or idle costs.

Powering 1M+ generations daily.

Production-ready AI models

Image and video generation through a single API. Powering 1M+ generations daily.

Focus on building. We handle the infrastructure.

From early prototypes to products serving millions of users, our image and video generation API handles the scaling. Fast, reliable generation through a single endpoint — no GPU setup, no servers, no maintenance.

GPU infrastructure

Transparent by design

Every response includes a usage object showing exactly what the request cost. Consistent parameters, clear documentation, predictable bills.

Response
POST /v2/images/generations
{
  "model": "...",
  "prompt": "your image description",
  "aspect_ratio": "16:9",
  "output_format": "jpeg"
}

→ 200 OK
{
  "id": "req-01HXY...",
  "status": "completed",
  "data": [{ "url": "https://..." }],
  "usage": { "total_cost": 0.03 }
}

Pay only for what you use

Simple, per-generation pricing. No subscriptions, no commitments, no idle GPU costs — straightforward pay-as-you-go.

Nano Banana 2

$0.08 – $0.18 /image

/v2/images/generations

Advanced image generation and editing with strong world knowledge and reasoning, precise text rendering, and reliable style/detail control.

ResolutionPriceImages for $10
1K$0.08 /image125
2K$0.13 /image76
4K$0.18 /image55

Seedream 5.0 Lite

$0.035 /image

/v2/images/generations

Unified multimodal image model with deep reasoning and online search, delivering strong prompt alignment and precise generation/editing control.

ResolutionPriceImages for $10
3K$0.035 /image285
2K$0.035 /image285

Kling O3

$0.112 – $0.14 /second

/v2/videos/generations

Omni-multimodal reasoning, advanced character and scene consistency.

ResolutionSoundPrice5s videos for $10
1080pOff$0.112 /second17
1080pOn$0.14 /second14

Kling 3.0 Pro

$0.112 – $0.168 /second

/v2/videos/generations

Native audio-video generation, multi-shot cinematic storytelling.

ResolutionSoundPrice5s videos for $10
1080pOff$0.112 /second17
1080pOn$0.168 /second11

Seedance 1.5 Pro

$0.026 – $0.12 /second

/v2/videos/generations

Cinematic camera control, dynamic scenes, expressive characters.

ResolutionSoundPrice5s videos for $10
720pOff$0.026 /second76
720pOn$0.052 /second38
1080pOff$0.052 /second38
1080pOn$0.12 /second16

Wan 2.6

$0.10 – $0.15 /second

/v2/videos/generations

Reference-based generation, multi-shot narratives.

ResolutionPrice5s videos for $10
720p$0.10 /second20
1080p$0.15 /second13

Z-Image Turbo

$0.015 /image

/v2/images/generations

Fast generation, photorealistic portraits, efficient.

ResolutionPriceImages for $10
1K$0.015 /image666

Seedream 4.5

$0.04 /image

/v2/images/generations

Studio-quality lighting, fast generation, good for commercial photography.

ResolutionPriceImages for $10
4K$0.04 /image250
2K$0.04 /image250

Seedance 1.0 Pro Fast

$0.022 – $0.048 /second

/v2/videos/generations

Quick generation, balanced quality and speed.

ResolutionPrice5s videos for $10
720p$0.022 /second90
1080p$0.048 /second41

Seedream 4

$0.03 /image

/v2/images/generations

Unified generation and editing, knowledge-based visuals.

ResolutionPriceImages for $10
4K$0.03 /image333
2K$0.03 /image333
1K$0.03 /image333

Frequently asked questions

Quick answers about the image and video generation API.

What can I build with an image and video generation API?

The getimg.ai API lets you add AI image and video generation to any product. Send a request, get media back — images in sub-seconds, videos via async polling.

Common use cases include:

  • On-demand image or video creation in design, writing, and chat tools
  • Automated visual content for product listings, marketing campaigns, or social media
  • Rapid prototyping — turn rough ideas into tangible visuals instantly

You get reliable, high-quality generation from models like Seedream 4, Nano Banana 2, and Kling O3 without the overhead of running your own GPU infrastructure.

How do I get an API key for image and video generation?

Getting started takes about a minute:

  1. Go to the Developer Dashboard.
  2. Sign up or log in.
  3. Create a project and generate an API key.
  4. Copy your key and store it securely — it is only shown once.

After that, you can start making requests to image generation models like Seedream 5.0 Lite or video generation models like Seedance 1.5 Pro right away. Manage your balance, keys, and usage from the dashboard.

Is this image and video generation API free?

The API is not free, but it is designed to be affordable and flexible. You pay only for what you generate — no subscriptions, no idle GPU costs.

Each model has its own per-generation rate depending on resolution and output type. Z-Image Turbo is the most cost-efficient option for images, while models like Nano Banana Pro offer higher-end quality. Pay-as-you-go pricing means you can start small and scale up as your usage grows.

How do I use the image and video generation API?

Once you have an API key, make a POST request with a JSON body that includes a model ID and a prompt. The API returns the generated media.

For images, responses are synchronous — you get the result immediately. For video, you submit a request and poll for the result. Each model supports different parameters — aspect ratios, resolutions, reference images, and more.

Check the API documentation for full parameter references and examples for every model.