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
Image · example Playground
Try Imagen 4 right here.
Advanced settings
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.
Specs
At a glance.
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.
Related models
All image modelsFlux 2 Max
by Black Forest Labs
Highest-quality Flux 2 tier.
View modelMidjourney
by Midjourney
Iconic stylised, cinematic look.
View modelNano Banana 2
by Google
Next-gen Nano Banana with refined detail.
View modelSeedream 5.0 Pro
by ByteDance
Flagship ByteDance model with sharp 1K/2K output and up to 10 reference images.
View model9,800+
developers & companies
Official partner of
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.