Un’unica autenticazione, tutti i provider
Una sola chiave RunAPI sblocca l’intero catalogo. Niente account separati, niente rotazione delle chiavi per integrazione.
It looks like you may prefer a different language. Switch anytime.
Usa l'API Imagen 4 tramite RunAPI con model skill, autenticazione unificata e prezzi pay-as-you-go.
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
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.
| 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 → |
| Endpoint | Risoluzione | Durata | Prezzo | |
|---|---|---|---|---|
| text_to_image | — | — | $0.08 / image |
Prezzi mostrati per imagen-4. Le altre varianti mantengono i propri prezzi per endpoint.
Seleziona modello e variante adatti al tipo di output, al livello qualità e alla latenza target.
Imposta la tua chiave RunAPI e installa il model skill nel workspace di codice.
Usa le istruzioni dello skill per aggiungere la feature modello dentro la tua applicazione.
Interroga per task ID, usa streaming dove supportato o gestisci il callback webhook.
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.
Una sola chiave RunAPI sblocca l’intero catalogo. Niente account separati, niente rotazione delle chiavi per integrazione.
Prezzi per chiamata in USD, fatturati mensilmente. Le generazioni fallite non vengono addebitate.
Schema tipizzati e note di setup sono inclusi nel model skill, così l'implementazione parte dal contratto corretto.
Up to 2K resolution natively. The ultra variant pushes quality further for brand and marketing use.
Fast generates in ~2.7 seconds for drafts. Standard balances quality and cost. Ultra delivers maximum photorealism for final production assets.
Imagen 4 has strong typography support — it reliably renders short text like brand names, labels, and headlines within images.
It takes source images as style or content seeds and generates a new image guided by both the sources and your text prompt.
Not natively. For transparent backgrounds, generate the image and then use a background removal tool like Recraft.
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.