Imagen 4
Photorealistic text-to-image with precise typography, broad style range, and up to 2K resolution.
# Works with Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents
npx skills add runapi-ai/imagen-4 -g
Install the Imagen 4 skill for me: 1. Clone https://github.com/runapi-ai/imagen-4 2. Copy the skills/imagen-4/ directory into your user-level skills directory (e.g. ~/.claude/skills/ for Claude Code, ~/.codex/skills/ for Codex). 3. Verify that SKILL.md is present. 4. Confirm the install path when done.
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.
- Installable agent skill
- Unified API key
- SDK examples included
- Les générations échouées ne sont pas facturées
Variantes
Use this model from your agent
# User prompt to the agent
"Generate a product hero image of a matte-black water bottle on a beige stone surface, soft side light, 4K."
// Code generated by the agent via @runapi.ai/imagen-4
import { Imagen4Client } from '@runapi.ai/imagen-4';
const client = new Imagen4Client();
const result = await client.textToImage.run({
model: 'imagen-4',
prompt: 'Generate a product hero image of a matte-black water bottle on a beige stone surface, soft side light, 4K.',
});
How to call this model
Install the skill
Add the model skill to your agent or install the SDK package.
Authenticate once
Use your RunAPI key for every supported model.
Send a request
Use the unified schema for the endpoint you need.
Receive output
Poll by task ID or handle the callback when the generation completes.
SDK quickstart
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",
"prompt": "Generate a product hero image of a matte-black water bottle on a beige stone surface, soft side light, 4K."
}'
import { Imagen4Client } from "@runapi.ai/imagen-4";
const client = new Imagen4Client();
const result = await client.textToImage.run({
model: "imagen-4",
prompt: "Generate a product hero image of a matte-black water bottle on a beige stone surface, soft side light, 4K.",
});
require "runapi/imagen_4"
client = RunApi::Imagen4::Client.new
result = client.text_to_image.run(
model: "imagen-4",
prompt: "Generate a product hero image of a matte-black water bottle on a beige stone surface, soft side light, 4K."
)
Where Imagen 4 fits
Imagen 4 is Google's latest text-to-image model, delivering photorealistic results with broad style support. Through RunAPI, all Imagen 4 variants — standard, fast, ultra, and pro — share one API key.
Why use Imagen 4 through RunAPI
One API key
Use the same credentials across models and providers.
Agent-ready
Installable skills include docs and schema for tool calls.
Predictable billing
Usage-based pricing is visible before you call.
Frequently asked questions
How do I call this model?
Use the RunAPI SDK, CLI, or REST endpoint shown on this page.
Do failed generations cost money?
Les générations échouées ne sont pas facturées
Can agents use it directly?
Yes. Install the model skill and your agent gets the docs, schema, and examples.