import GetimgAI from "getimg-ai";

const client = new GetimgAI();

const submission = await client.videos.generations.create({
    model: "happyhorse-1",
    prompt: "majestic horse, turns to the camera.",
    aspect_ratio: "16:9",
    resolution: "720p",
    duration: 3
  });
const requestId = submission.id;

// Poll
let result;
while (true) {
  result = await client.videos.generations.retrieve(requestId);

  if (result.status === "completed") break;
  if (result.status === "failed") {
    throw new Error(result.error.message);
  }

  await new Promise((r) => setTimeout(r, 5000));
}

console.log(result.data[0].url);

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.

video

HappyHorse 1

Physically realistic, motion-smooth video generation with text, first-frame, and reference-image guidance.

from$0.14 – $0.24 /second
Qwen Image 2.0
image

Qwen Image 2.0

Accelerated Qwen 2 image generation and editing with balanced quality and speed.

from$0.035 /image
Qwen Image 2.0 Pro
image

Qwen Image 2.0 Pro

Professional Qwen 2 image generation and editing with stronger text rendering and semantic adherence.

from$0.075 /image
Wan 2.7 Image Pro
image

Wan 2.7 Image Pro

Wan 2.7 image pro model with higher-fidelity generation and extended resolution support.

from$0.075 /image
Wan 2.7 Image
image

Wan 2.7 Image

Fast Wan 2.7 image model supporting text-to-image and reference-based editing.

from$0.03 /image
video

Wan 2.7

Multimodal Wan 2.7 video generation with text, frame control, and reference-image guidance.

from$0.10 – $0.15 /second
GPT Image 2
image

GPT Image 2

State-of-the-art image generation model for fast, high-quality image generation and editing

from$0.06 – $0.12 /image
Nano Banana 2
image

Nano Banana 2

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

from$0.08 – $0.18 /image
Seedream 5.0 Lite
image

Seedream 5.0 Lite

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

from$0.035 /image
video

Kling O3

Omni-multimodal reasoning, advanced character and scene consistency.

from$0.084 – $0.42 /second
video

Kling 3.0 Pro

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

from$0.084 – $0.42 /second
video

Seedance 1.5 Pro

Cinematic camera control, dynamic scenes, expressive characters.

from$0.026 – $0.12 /second
video

Wan 2.6

Reference-based generation, multi-shot narratives.

from$0.10 – $0.15 /second
Z-Image Turbo
image

Z-Image Turbo

Fast generation, photorealistic portraits, efficient.

from$0.015 /image
Seedream 4.5
image

Seedream 4.5

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

from$0.04 /image
Seedream 4
image

Seedream 4

Unified generation and editing, knowledge-based visuals.

from$0.03 /image
video

Seedance 1.0 Pro Fast

Quick generation, balanced quality and speed.

from$0.022 – $0.048 /second

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.

HappyHorse 1

$0.14 – $0.24 /second

/v2/videos/generations

Physically realistic, motion-smooth video generation with text, first-frame, and reference-image guidance.

ResolutionPrice5s videos for $10
720p$0.14 /second14
1080p$0.24 /second8

Qwen Image 2.0

$0.035 /image

/v2/images/generations

Accelerated Qwen 2 image generation and editing with balanced quality and speed.

ResolutionPriceImages for $10
2K$0.035 /image285

Qwen Image 2.0 Pro

$0.075 /image

/v2/images/generations

Professional Qwen 2 image generation and editing with stronger text rendering and semantic adherence.

ResolutionPriceImages for $10
2K$0.075 /image133

Wan 2.7 Image Pro

$0.075 /image

/v2/images/generations

Wan 2.7 image pro model with higher-fidelity generation and extended resolution support.

ResolutionPriceImages for $10
2K$0.075 /image133
1K$0.075 /image133

Wan 2.7 Image

$0.03 /image

/v2/images/generations

Fast Wan 2.7 image model supporting text-to-image and reference-based editing.

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

Wan 2.7

$0.10 – $0.15 /second

/v2/videos/generations

Multimodal Wan 2.7 video generation with text, frame control, and reference-image guidance.

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

GPT Image 2

$0.06 – $0.12 /image

/v2/images/generations

State-of-the-art image generation model for fast, high-quality image generation and editing

ResolutionPriceImages for $10
1K$0.06 /image166
2K$0.12 /image83

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.084 – $0.42 /second

/v2/videos/generations

Omni-multimodal reasoning, advanced character and scene consistency.

ResolutionSoundPrice5s videos for $10
720pOff$0.084 /second23
720pOn$0.112 /second17
1080pOff$0.112 /second17
1080pOn$0.14 /second14
4KOff$0.42 /second4
4KOn$0.42 /second4

Kling 3.0 Pro

$0.084 – $0.42 /second

/v2/videos/generations

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

ResolutionSoundPrice5s videos for $10
720pOff$0.084 /second23
1080pOff$0.112 /second17
720pOn$0.126 /second15
1080pOn$0.168 /second11
4KOff$0.42 /second4
4KOn$0.42 /second4

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
1080pOff$0.052 /second38
720pOn$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

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

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

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.