Seedance 2.5 from ByteDance is officially available on Apiframe.
Image
Imagen 4 logo

Imagen 4 API

by Google

Google DeepMind's text-to-image model (May 2025), offered in Fast, Standard, and Ultra tiers and known for sharp text rendering, strong prompt following, and output up to 2K resolution.

~17s
Avg. generation
5 credits
From
Imagen 4 breathtaking mountain range at dawn with a crystal-clear lake reflecting the snow-capped peaks Image · example

Playground

Try Imagen 4 right here.

model: imagen-4
Resolution
Advanced settings
Estimated cost 5 credits · $0.05 Generate in Studio
Output

Your output lands here. Hit generate to run this request in Studio.

Pricing

Simple per-generation pricing.

5 credits per generation ≈ $0.05

  • You only pay for successful generations. Failed jobs are refunded automatically.
  • One credit balance across every model on Apiframe, no per-model plans.
  • Start with free credits. No subscription required.
  • Volume discounts on larger plans.
See plans and credit packs

Specs

At a glance.

Provider Google
Model ID imagen-4
Aspect ratios 1:1, 9:16, 16:9, 3:4, 4:3
Avg. time ~17s

Quickstart

How to call the Imagen 4 API.

Send one POST /v2/images/generate request with your API key. The call returns a jobId you can poll, or pass a webhook_url and the result is pushed to you the moment it's ready.

Swap imagen-4 for any other model and nothing else changes.

const response = await fetch("https://api.apiframe.ai/v2/images/generate", {
  method: "POST",
  headers: {
    "X-API-Key": "afk_your_api_key_here",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
    "model": "imagen-4",
    "imagenParams": {
      "image_size": "1K",
      "output_format": "jpg"
    }
  }),
});
const { jobId } = await response.json();
console.log(jobId);

Input schema

Every field Imagen 4 accepts, with types and defaults. The full reference lives in the docs.

Field Type Description
prompt required string Text description of what to generate.
model required string The model identifier for this endpoint. Default:"imagen-4" · "imagen-4"
imagenParams.image_size string Resolution Default:"1K" · "1K", "2K"
imagenParams.output_format string Output format Default:"jpg" · "jpg", "png"

Imagen versions

Every Imagen image model on Apiframe. Switch with one parameter.

Imagen 4 questions

What teams ask before shipping with Imagen 4. Everything else lives in the docs.

What is Imagen 4?

Google DeepMind's text-to-image model, released in May 2025, available in three tiers through the Gemini API, Google AI Studio, and Vertex AI.

What is the difference between Fast, Standard, and Ultra?

Fast prioritizes speed and low cost at 3 credits ($0.03) per image, Standard balances quality and price at 6 credits ($0.06), and Ultra delivers the highest detail and prompt adherence at 8 credits ($0.08).

What resolution does it produce?

Up to 2K (2048x2048) on Standard and Ultra, with the Fast tier topping out lower.

Is it good at rendering text in images?

Yes. Cleaner, more legible typography is one of its biggest improvements over Imagen 3.

Does it watermark generated images?

Yes. Every image includes Google's invisible SynthID watermark.

Where can you access it?

Through Apiframe, as well as the Gemini API, Google AI Studio, and Vertex AI.

9,800+

developers & companies

4.8 on G2

Official partner of

BytePlus Alibaba Cloud MiniMax

Power your next AI product with Apiframe.

Instant access to 70+ media models through a single API. Start free and scale when you're ready.