It looks like you may prefer a different language. Switch anytime.

Image Google

Imagen 4 API

Usa l'API Imagen 4 tramite RunAPI con model skill, autenticazione unificata e prezzi pay-as-you-go.

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, 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

Informazioni su Imagen 4

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.

Provider
Google
Modalità
Image

Confronta tutte le varianti API

Variante Fatturazione Prezzo
imagen-4 call $0.080 Visualizza →
imagen-4-fast call $0.040 Visualizza →
imagen-4-pro-remix-image call $0.240 Visualizza →
imagen-4-ultra call $0.120 Visualizza →
PRICING

Prezzi Imagen 4

Endpoint Risoluzione Durata Prezzo
text_to_image $0.08 / image

Prezzi mostrati per imagen-4. Le altre varianti mantengono i propri prezzi per endpoint.

Integrazione agenti

Esegui Imagen 4 da un agente

COME FUNZIONA

Inizia con Imagen 4

  1. Scegli il modello

    Seleziona modello e variante adatti al tipo di output, al livello qualità e alla latenza target.

  2. Configura

    Imposta la tua chiave RunAPI e installa il model skill nel workspace di codice.

  3. Implementa

    Usa le istruzioni dello skill per aggiungere la feature modello dentro la tua applicazione.

  4. Ricevi

    Interroga per task ID, usa streaming dove supportato o gestisci il callback webhook.

CONTEXT

Che cos'è l'API Imagen 4?

Imagen 4 è l'ultimo modello text-to-image di Google, con risultati fotorealistici e ampio supporto di stili. Tramite RunAPI, ogni variante di Imagen 4 condivide un'unica chiave API.

Provider
Google
Vedi tutto →
Modalità
Image
Sfoglia i modelli →

Perché usare l'API Imagen 4 tramite RunAPI

Un’unica autenticazione, tutti i provider

Una sola chiave RunAPI sblocca l’intero catalogo. Niente account separati, niente rotazione delle chiavi per integrazione.

Prezzi e billing unificati

Prezzi per chiamata in USD, fatturati mensilmente. Le generazioni fallite non vengono addebitate.

Skill con schema

Schema tipizzati e note di setup sono inclusi nel model skill, così l'implementazione parte dal contratto corretto.

Domande su Imagen 4

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.

Da quale variante dovrei iniziare?

Scegli la variante più economica che soddisfa il tuo livello di qualità. La maggior parte dei team inizia con la variante veloce e passa alla pro per la produzione.

MODELLI SIMILI

Se ti piace l'API Imagen 4, prova questi

Inizia a sviluppare con l'API Imagen 4.