Skip to content
Google · Imagen

imagen-4.0-openrouterapi API

Use Google's Imagen image model on Openrouter API with pay-as-you-go pricing at $0.044 per image.

Image generationImageAsync task
Model id
imagen-4.0-openrouterapi

imagen-4.0-openrouterapi API pricing

All prices in USD. Openrouter API rates compared with the official list price for the same unit.

OptionOpenrouter APIOfficialSave
DefaultDefault$0.044$0.05−12%

Prices are per image.

What is imagen-4.0-openrouterapi?

imagen-4.0-openrouterapi is a Google model in the Imagen family, available through Openrouter API's image model catalog. It is an option for developers building image-generation features into applications or internal creative workflows. The supplied model facts identify its image category but do not specify supported inputs, output formats, dimensions, editing modes, or generation controls. The accompanying documentation covers GPT-Image-1.5, so its parameters and capabilities should not be assumed to apply to this Imagen model.

Openrouter API's Default configuration costs $0.044 per image, about 12% below the developer's list price of $0.05 per image. Access uses Openrouter API's shared API key and OpenAI-compatible base URL, https://openrouterapi.ru/v1. Billing is pay-as-you-go, and Openrouter API bills only successful requests. Before integrating, confirm this model's request schema and response handling in its model-specific documentation.

imagen-4.0-openrouterapi highlights

Google Imagen Family

Access imagen-4.0-openrouterapi, a Google model listed in the Imagen family and image category.

Per-Image Pricing

Openrouter API Default pricing is $0.044 per image, with pay-as-you-go billing.

Below List Price

The Default configuration is about 12% below the developer's list price of $0.05 per image.

Shared API Access

Use Openrouter API's shared API key and OpenAI-compatible base URL. Openrouter API bills only successful requests.

How to call the imagen-4.0-openrouterapi API in 4 steps

  1. 01

    Get an API key

    Sign in to Openrouter API, top up from $50, and create an sk-ora key in the console.

  2. 02

    Set the base URL

    Use https://openrouterapi.ru/v1 as the base URL in your SDK or HTTP client.

  3. 03

    Send the request

    Call POST /v1/images/generations with "model": "imagen-4.0-openrouterapi" and the parameters below.

  4. 04

    Handle the response

    The response contains a task_id. Poll GET /v1/tasks/{task_id} until the status is completed, then download the result URLs.

curl --request POST \
  --url https://openrouterapi.ru/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "imagen-4.0-openrouterapi",
    "prompt": "An ancient castle under a starry sky",
    "size": "1:1",
    "quality": "auto",
    "n": 1
  }'

Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequired—Model name
nsfw_checkbooleanOptionalfalseWhether to run content moderation before submitting the image task.
promptstringRequired—Text description for image generation, supports both Chinese and English
sizestringOptional1:1Aspect ratio
nintegerOptional1Number of images to generate
qualitystringOptionalautoImage quality
backgroundstringOptionalautoBackground mode
moderationstringOptionalautoModeration level
output_formatstringOptionalpngOutput format
output_compressionintegerOptional—Output compression level, range 0-100
image_urlsarrayOptional—Array of reference image URLs, enables image-to-image mode when provided
mask_urlstringOptional—Mask image URL for inpainting

What you can build with imagen-4.0-openrouterapi

Creative Workflow Evaluation

Evaluate this Imagen model for image-generation steps in your team's creative workflow, after confirming its supported inputs and outputs.

Application Image Features

Consider it for an application that offers image generation. Validate the model-specific request schema before building the user interface.

Internal Asset Tools

Assess the model for an internal tool that helps teams create visual assets, with usage budgeting based on per-image pricing.

Image Model Testing

Include this Google Imagen option in your team's Openrouter API image-model evaluation, comparing results against your own requirements.

Tips for better results

  • 01

    Use the Exact ID

    Select imagen-4.0-openrouterapi as the model identifier. No alternate callable name is listed.

  • 02

    Verify Model-Specific Parameters

    The supplied parameter documentation is for GPT-Image-1.5. Do not assume its size, quality, editing, or background options work with this model.

  • 03

    Budget Per Image

    Use $0.044 per image for Default-configuration cost estimates. Openrouter API bills only successful requests.

  • 04

    Confirm Response Handling

    Check whether this model returns results directly or requires task polling before implementing your integration; its processing mode is not specified here.

Limits and things to know

  • Model-specific limits are not specified in the published specifications.

  • The GPT-Image-1.5 documentation does not establish this model's supported controls or editing modes.

  • Confirm dimensions, output formats, and processing behavior in the model-specific documentation.

imagen-4.0-openrouterapi API FAQ

How much does imagen-4.0-openrouterapi cost on Openrouter API?

Openrouter API Default pricing is $0.044 per image. That is about 12% below the developer's list price of $0.05 per image, and Openrouter API bills only successful requests.

Who provides imagen-4.0-openrouterapi?

The developer is Google, and the model belongs to the Imagen family. It is listed as an image model on Openrouter API.

How do I call imagen-4.0-openrouterapi through Openrouter API?

Use your Openrouter API key and the OpenAI-compatible base URL https://openrouterapi.ru/v1, selecting imagen-4.0-openrouterapi. Confirm the model-specific endpoint and request schema before sending a request.

Does it support image editing or transparent backgrounds?

Those capabilities are not established by the supplied Imagen facts. The accompanying documentation describes GPT-Image-1.5, so its editing and background options should not be applied to this model without confirmation.

What are its image size and request limits?

Model-specific dimensions and request limits are not specified. Check the model's documentation rather than using the limits shown for GPT-Image-1.5.

Can I use generated images commercially?

Commercial use is subject to the model developer's terms. Review Google's applicable terms and Openrouter API's terms before using outputs in a commercial product.

Related models

Depth: 250+ models · Minimum top-up $50

Start building with imagen-4.0-openrouterapi

One key, pay as you go from $50, billed only for successful requests.