Imagen 4 Ultra
Imagen 4 Ultra is Google's highest quality text to image model. It focuses on photorealism, sharp details, and accurate text rendering. It targets production workloads that need strict prompt adherence, optional higher resolution output, and fast generation through the Gemini API.
API Options
Platform-level options for task execution and delivery.
-
taskType
string required value: imageInference -
Identifier for the type of task being performed
-
taskUUID
string required UUID v4 -
UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.
-
outputType
string default: URL -
Image output type.
Allowed values 3 values
-
outputFormat
string default: JPG -
Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.
- `JPG`: Best for photorealistic images with smaller file sizes (no transparency).
- `PNG`: Lossless compression, supports high quality and transparency (alpha channel).
- `WEBP`: Modern format providing superior compression and transparency support.
**Transparency**: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., `PNG`, `WEBP`, `TIFF`). `JPG` does not support transparency.Allowed values 3 values
-
outputQuality
integer min: 20 max: 99 default: 95 -
Compression quality of the output. Higher values preserve quality but increase file size.
-
webhookURL
string URI -
Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.
Learn more 1 resource
- Webhooks PLATFORM
- Webhooks
-
deliveryMethod
string default: sync -
Determines how the API delivers task results.
Allowed values 2 values
- Returns complete results directly in the API response.
- Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.
Learn more 1 resource
- Task Polling PLATFORM
-
uploadEndpoint
string URI -
Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.
Common use cases:
- Cloud storage: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- CDN integration: Upload to content delivery networks for immediate distribution.
// S3 presigned URL for secure upload https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600 // Google Cloud Storage presigned URL https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789 // Custom storage endpoint https://storage.example.com/uploads/generated-image.jpgThe content data will be sent as the request body to the specified URL when generation is complete.
-
safety
object -
Content safety checking configuration for image generation.
Properties 2 properties
-
safety»checkContentcheckContent
boolean default: false -
Enable or disable content safety checking. When enabled, defaults to
fastmode.
-
safety»modemode
string default: none -
Safety checking mode for image generation.
Allowed values 2 values
- Disables checking.
- Performs a single check.
-
-
ttl
integer min: 60 -
Time-to-live (TTL) in seconds for generated content. Only applies when
outputTypeisURL.
-
includeCost
boolean default: false -
Include task cost in the response.
-
numberResults
integer min: 1 max: 20 default: 1 -
Number of results to generate. Each result uses a different seed, producing variations of the same parameters.
Generation Parameters
Core parameters for controlling the generated content.
-
model
string required value: google:2@2 -
Identifier of the model to use for generation.
Learn more 3 resources
-
positivePrompt
string required min: 2 max: 3000 -
Text prompt describing elements to include in the generated output.
Learn more 2 resources
-
Width of the generated media in pixels.
Learn more 2 resources
-
Height of the generated media in pixels.
Learn more 2 resources
Frosted Funicular Platform Dawn
{
"taskType": "imageInference",
"taskUUID": "7601e189-8b84-4bbf-af94-bce2c2a4f18c",
"model": "google:2@2",
"positivePrompt": "Ultra-detailed photorealistic wide cinematic view of a high-altitude funicular platform at first light in late winter, empty except for a single red luggage trolley and a bundled station attendant sweeping powdery snow. Glass shelter panels edged with frost crystals, steel rails descending into a pine valley, distant mountain ridgelines catching pale gold sunrise. Crisp printed station signage with clearly readable text: 'Aster Ridge Funicular', 'Platform 2', and a small timetable board. Subtle boot prints in fresh snow, textured wood benches, safety lines, overhead cables, faint breath in the cold air, realistic reflections on glass, natural color palette, sharp micro-details, depth haze in the background, documentary-grade realism, impeccable composition, no people facing camera, no tram stop, no urban setting.",
"width": 1408,
"height": 768
}{
"taskType": "imageInference",
"taskUUID": "7601e189-8b84-4bbf-af94-bce2c2a4f18c",
"imageUUID": "4710047b-2e3d-4dda-bf98-21b2eadbbc3c",
"imageURL": "https://im.runware.ai/image/os/a24d12/ws/2/ii/4710047b-2e3d-4dda-bf98-21b2eadbbc3c.jpg",
"seed": 185062939,
"cost": 0.06
}Subway Violin Case Advertisement
{
"taskType": "imageInference",
"taskUUID": "97cb5427-10c8-49c8-a278-412f2537cbf7",
"model": "google:2@2",
"positivePrompt": "Ultra-detailed photorealistic subway platform at midday, viewed from standing eye level. A weathered violin case lies open on a bench beside a commuter in a mustard wool coat, while a large backlit station advertisement dominates the wall behind them. The advertisement must contain clean, perfectly legible text reading: 'ARBOR SPRING QUARTET' on the first line, 'ONE NIGHT ONLY' on the second line, and 'APRIL 18 - GRAND HALL' on the third line. Include smaller readable ticket text beneath. Brushed steel columns, tiled floor with subtle scuffs, route map, soft daylight filtering from stairwell entrance, a few travelers passing with slight motion blur, realistic reflections on polished surfaces, shallow depth of field but text remains sharp, natural color palette, cinematic realism, exceptional texture fidelity, precise typography, production-quality photography.",
"width": 1408,
"height": 768
}{
"taskType": "imageInference",
"taskUUID": "97cb5427-10c8-49c8-a278-412f2537cbf7",
"imageUUID": "b9f532cf-9f7e-4cab-9add-ab5d2e1288eb",
"imageURL": "https://im.runware.ai/image/os/a20d05/ws/2/ii/b9f532cf-9f7e-4cab-9add-ab5d2e1288eb.jpg",
"seed": 996374410,
"cost": 0.06
}Rain-Soaked Tram Stop Signage
{
"taskType": "imageInference",
"taskUUID": "b6b8aafb-73fc-40ac-835a-2876c25e97af",
"model": "google:2@2",
"positivePrompt": "A photorealistic early-evening street scene in a coastal European city after a spring downpour, viewed from sidewalk level across tram tracks. Main focus: a glass tram shelter with crystal-clear printed route information and a large illuminated destination sign that reads exactly: 'Line 7 - Harbor Station'. A timetable board inside the shelter shows clean legible text with rows, numbers, and station names. Across the street, a corner bakery has a painted sign reading exactly: 'Marin Bread House' and a smaller window decal reading 'Open 6:00-20:00'. Wet pavement reflects amber streetlights, passing tram headlights, umbrellas, and old stone facades. Include a red tram approaching in the midground, subtle motion only on wheels, sharply resolved raindrops on the shelter glass, detailed cobblestones, puddles, overhead power cables, and realistic pedestrians in weather coats. Natural color palette, cinematic composition, ultra-high detail, crisp focus, faithful typography, realistic materials, production-quality photography, 35mm lens look, deep depth and excellent prompt adherence.",
"width": 1408,
"height": 768
}{
"taskType": "imageInference",
"taskUUID": "b6b8aafb-73fc-40ac-835a-2876c25e97af",
"imageUUID": "370d62e3-1aa3-4106-87e7-b9d4628e7164",
"imageURL": "https://im.runware.ai/image/os/a03d21/ws/2/ii/370d62e3-1aa3-4106-87e7-b9d4628e7164.jpg",
"seed": 47048902,
"cost": 0.06
}Hand-Painted Bakery Window Display
{
"taskType": "imageInference",
"taskUUID": "f599eb2a-9568-4c8c-833e-2d9c0356f03a",
"model": "google:2@2",
"positivePrompt": "Ultra-realistic street-level view of a charming neighborhood bakery storefront in early morning, seen from just outside the front window. The glass window features elegant hand-painted lettering that clearly reads: \"Marigold Bakery\" and below it \"Fresh Bread • Butter Croissants • Open 7 AM\". Inside the display are neatly arranged loaves, fruit tarts, croissants, seeded baguettes, and paper labels with legible names and prices. A small chalkboard near the door reads exactly: \"Today: Plum Danish\". Warm golden sunlight, realistic reflections on glass without obscuring the text, finely detailed pastry textures, natural wood trim, ceramic tiles, subtle flour dust, fresh flowers in a simple vase, authentic candid scene, high-end commercial photography look, sharp focus, true-to-life colors, impeccable typography rendering, rich micro-detail, depth and realism.",
"width": 1280,
"height": 896
}{
"taskType": "imageInference",
"taskUUID": "f599eb2a-9568-4c8c-833e-2d9c0356f03a",
"imageUUID": "527cfd2b-fc11-46f5-99aa-7e32942e7e0b",
"imageURL": "https://im.runware.ai/image/os/a19d05/ws/2/ii/527cfd2b-fc11-46f5-99aa-7e32942e7e0b.jpg",
"seed": 1705701365,
"cost": 0.06
}