Image Google

Imagen 4 API

Use the Imagen 4 API via RunAPI with a model skill, unified auth, and pay-as-you-go pricing.

runapi.ai
curl -X POST https://runapi.ai/api/v1/imagen_4/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_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."
}'
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.",
});
<?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.',
]);
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."
)
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

About Imagen 4

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

Provider
Google
Modality
Image

Available Versions

Variant Billing Pricing
imagen-4 call $0.08 View →
imagen-4-fast call $0.04 View →
imagen-4-pro-remix-image call $0.24 View →
imagen-4-ultra call $0.12 View →
PRICING

Imagen 4 Pricing

Endpoint Resolution Duration Price
text_to_image — — $0.08 / image

Prices shown for imagen-4. Other variants retain their own endpoint pricing.

Agent integration

Run Imagen 4 From an Agent

HOW IT WORKS

Get Started with Imagen 4

  1. Create an API key

    Sign up and generate an API key from the dashboard.

  2. Pick a version

    Choose the version that best matches your quality and cost requirements.

  3. Send a request

    Submit your prompt and parameters to the model's documented endpoint.

  4. Get your result

    Poll the task or set a webhook, then download the completed output.

CONTEXT

About Imagen 4 on RunAPI

Imagen 4 is Google's latest text-to-image model, delivering photorealistic results with broad style support. Through RunAPI, every Imagen 4 variant shares one API key.

Provider
Google
See all →
Modality
Image
Browse models →

Why Use Imagen 4 Through RunAPI

One auth, every provider

A single RunAPI API key unlocks the whole model catalog across all providers. No separate accounts to create, no API keys to rotate per integration, and no credential management overhead. Add a new model to your app by changing one parameter.

Unified pricing & billing

Per-call pricing in USD, billed monthly into a single invoice. No subscription tiers, no minimum spend, and failed generations are never charged. The pricing page and check_pricing API show exact costs before you commit to a model.

Schema-first SDK

Typed schemas, parameter constraints, and setup notes are packaged in the model skill so your implementation starts from the right contract. The skill loads into Claude Code, Codex, Gemini CLI, Cursor, and VS Code — your agent knows the correct request shape before you write a line of code.

Imagen 4 Questions

What is the maximum output resolution?

The Imagen 4 Pro remix image endpoint outputs 1K, 2K, or 4K; the text-to-image endpoint has no resolution parameter. 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.

Which variant should I start with?

Pick the cheapest variant that meets your quality bar. Most teams start on the fast variant and graduate to pro for production.

SIMILAR MODELS

Similar Image Models

Start generating with Imagen 4