Image · Google

Imagen 4 API

Photorealistic text-to-image with precise typography, broad style range, and up to 2K resolution.

Operationeel · 4 variants · vanaf $0.040
runapi.ai
curl -X POST https://runapi.ai/api/v1/imagen_4/text_to_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "imagen-4-ultra",
  "prompt": "Generate a product hero image of a matte-black water bottle on a beige stone surface, soft side light, 2K."
}'
import { Imagen4Client } from "@runapi.ai/imagen-4";

const client = new Imagen4Client();
const result = await client.textToImage.run({
    model: "imagen-4-ultra",
    prompt: "Generate a product hero image of a matte-black water bottle on a beige stone surface, soft side light, 2K.",
});
<?php

require __DIR__ . "/vendor/autoload.php";

use RunApi\Imagen4\Imagen4Client;

$client = new Imagen4Client();
$result = $client->textToImage->run([
        'model' => 'imagen-4-ultra',
        'prompt' => 'Generate a product hero image of a matte-black water bottle on a beige stone surface, soft side light, 2K.',
]);
require "runapi/imagen_4"

client = RunApi::Imagen4::Client.new
result = client.text_to_image.run(
    model: "imagen-4-ultra",
    prompt: "Generate a product hero image of a matte-black water bottle on a beige stone surface, soft side light, 2K."
)
npx skills add runapi-ai/imagen-4 -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp

# Codex
codex plugin install runapi-mcp@agents

# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
@runapi.ai/imagen-4 v1
OVERVIEW

Imagen 4 is Google's photorealistic image generation model with strong typography rendering and support for resolutions up to 2K. It produces detailed, true-to-life images with accurate color and lighting.

  • Meerdere varianten voor verschillende snelheid-/kwaliteitsniveaus
  • Modelskill bevat docs, schema's en setupnotities
  • Werkt met appgerichte codeerworkflows
  • Mislukte generaties worden niet in rekening gebracht
VARIANTS

Vergelijk alle API-varianten

Variant Billing From
imagen-4 call $0.080 Bekijken →
imagen-4-fast call $0.040 Bekijken →
imagen-4-pro-remix-image call $0.180 Bekijken →
imagen-4-ultra call $0.120 Bekijken →
SKILLS

Installeer de Imagen 4 skill voor appontwikkeling

Laad modeldocs, schema's, prijsnotities en setupstappen in je codeworkspace.

# Install the model skill for app development workflows
npx skills add runapi-ai/imagen-4 -g
Installs docs, schemas, pricing context, and setup notes into your developer workspace.
Or use this setup request in your coding tool:
Install the Imagen 4 skill for this app:

1. Add runapi-ai/imagen-4 with the skills installer.
2. Load SKILL.md in this workspace.
3. Use its docs, schemas, pricing notes, and setup steps when adding model features.
4. Confirm the install path when done.
HOE HET WERKT

Van modelskill naar eerste resultaat in vier stappen

01

Kies het model

Kies het model en de variant die passen bij je outputtype, kwaliteitslat en latencydoel.

02

Configureren

Stel je RunAPI-key in en installeer de modelskill in je codeworkspace.

03

Bouwen

Gebruik de skill-instructies om de modelfeature in je applicatie toe te voegen.

04

Ontvangen

Poll op task-ID, stream wanneer ondersteund of verwerk de webhook-callback.

CONTEXT

Wat is de Imagen 4 API?

Imagen 4 is Google's nieuwste tekst-naar-beeldmodel dat fotorealistische resultaten levert met brede stijlondersteuning. Via RunAPI deelt elke Imagen 4-variant één API-sleutel.

Provider
Google
Modality
Image
WAAROM RUNAPI

Waarom de Imagen 4 API via RunAPI gebruiken

Eén auth, elke provider

Met één RunAPI-sleutel ontgrendel je de hele catalogus. Geen aparte accounts, geen sleutelrotatie per integratie.

Uniforme prijzen & billing

Prijs per call in USD, maandelijks gefactureerd. Mislukte generaties worden niet in rekening gebracht.

Skill met schema's

Getypeerde schema's en setupnotities zitten in de modelskill, zodat implementatie start vanuit het juiste contract.

FAQ

Veelgestelde vragen

What is the maximum output resolution?

Up to 2K resolution natively. The ultra variant pushes quality further for brand and marketing use.

How do the fast, standard, and ultra variants differ?

Fast generates in ~2.7 seconds for drafts. Standard balances quality and cost. Ultra delivers maximum photorealism for final production assets.

How accurate is text rendering in Imagen 4?

Imagen 4 has strong typography support — it reliably renders short text like brand names, labels, and headlines within images.

What is the pro remix image variant for?

It takes source images as style or content seeds and generates a new image guided by both the sources and your text prompt.

Does Imagen 4 support transparent backgrounds?

Not natively. For transparent backgrounds, generate the image and then use a background removal tool like Recraft.

Met welke variant moet ik beginnen?

Kies de goedkoopste variant die aan je kwaliteitsnorm voldoet. De meeste teams beginnen met de snelle variant en stappen over op pro voor productie.

Is er een gratis tier?

Nieuwe accounts krijgen de eerste calls gratis op elk model. Daarna betaal je per call.

Streamen jullie resultaten?

Waar streaming beschikbaar is, streamt RunAPI end-to-end.

Hoe worden mislukkingen gefactureerd?

Mislukte generations worden niet in rekening gebracht.

Worden outputs gecachet?

Gegenereerde outputs worden opgeslagen en zijn op te vragen via task-ID. Inputs worden niet gecachet.

Mag ik het commercieel gebruiken?

Ja — commercieel gebruik is inbegrepen voor elke variant, tenzij een modellicentie het expliciet beperkt. Dat staat aangegeven op de variantpagina.

Hoe zit het met rate limits?

Rate limits per key schalen mee met je usage tier. Zie de prijzenpagina voor de actuele limieten.

Waar kan ik problemen melden?

Open een issue in de publieke GitHub-repo of mail support.

VERGELIJKBARE MODELLEN

Als je de Imagen 4 API goed vindt, probeer deze dan eens

NU BEGINNEN

Begin met bouwen met de Imagen 4 API.