Imagen 4

GOOGLE

Imagen 4

Commercial use22 credits / job

Try in Playground

Validate prompts and parameters before integration — same model and payload as production.

Request parameters

createTask input fields for the default tab.

FieldTypeRequired
prompttextareaYes
aspect_ratioselect (1:1 | 16:9 | 9:16)No

Output examples

Typical generation previews (actual output varies by prompt).

Preview

Preview

Performance benefits

Why teams choose this model for production workloads.

Fast iteration

Validate prompts in Playground before wiring createTask into your app.

Features

Core capabilities for this model on the ModKie gateway.

Production text-to-image

Submit prompt and aspect ratio via createTask; poll recordInfo for image URLs.

Playground validation

Debug prompts in-browser before copying JSON to production.

What you can build

Common developer and product use cases for this API.

Marketing creatives

Generate ad stills, hero images, and social assets from text prompts.

Pricing

Credits apply per successful job only.

Imagen 4

22 credits / job

≈ $21.78 USD ($0.99 USD/credit Starter pack estimate)

View all model pricing

Quickstart

Three steps from API key to your first successful job.

  1. 1

    Create an API key

    Sign in and create a key under Settings → API Keys.

  2. 2

    Submit createTask

    POST to /api/v1/jobs/createTask with your model id and input payload.

  3. 3

    Poll recordInfo

    Poll recordInfo until the job completes; download outputs from the response.

Example createTask request

curl -X POST https://modkie.com/api/v1/jobs/createTask \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "google/imagen-4",
  "input": {
    "prompt": "Create a cinematic, photorealistic medium shot capturing the nostalgic warmth of a late 90s indie film. The focus is a young woman with brightly dyed pink hair (slightly faded) and freckled skin, looking directly and intently into the camera lens with a hopeful yet slightly uncertain smile. She wears an oversized, vintage band t-shirt (slightly worn, with the faintly cracked white text “KIE AI” across the chest) layered over a long-sleeved striped top, along with simple silver stud earrings. The lighting is soft, golden hour sunlight streaming through a slightly dusty window, creating lens flare and illuminating dust motes in the air. The background shows a blurred, cluttered bedroom with posters on the wall and fairy lights, rendered with a shallow depth of field. Natural film grain, a warm, slightly muted color palette, and sharp focus on her expressive eyes enhance the intimate, authentic feel.",
    "aspect_ratio": "1:1"
  }
}'

Poll GET /api/v1/jobs/recordInfo?taskId=… until state is success or fail. Credits apply only on success.

FAQ

Why ModKie for this model

ModKie is more than API relay — deploy, fine-tune, and register custom endpoints on the same gateway.

Unified gateway

One API key and jobs contract across marketplace and self-hosted models.

Playground

Validate payloads in-browser before shipping to production.

RunPod self-host

Deploy HuggingFace or custom workers and route traffic through ModKie.

Train & register

Fine-tune vision models and register weights back into the gateway.

Deployment help

Work with our team on model landing, integration, and production rollout.

Who it's for

  • DevelopersShip features fast with Playground, docs, and predictable async billing.
  • Enterprise teamsStandardize providers behind one contract, usage dashboard, and webhooks.
  • Fine-tune & own weightsTrain custom models and expose them with the same createTask flow.
Talk to a deployment specialist
Imagen 4 API — ModKie