Skip to content

Add support for image_size parameter for google/gemini-3-pro-image-preview #269

@ruxandraboghean

Description

@ruxandraboghean

I am using the OpenRouter API to generate images via:

model: "google/gemini-3-pro-image-preview"
endpoint: /chat/completions
modalities: ["image", "text"]

Currently, the model supports:

{
  "image_config": {
    "aspect_ratio": "16:9"
  }
}

But it does not support:

{
  "image_config": {
    "image_size": "4k"
  }
}

The API should include a parameter that allows requesting specific resolutions (1k, 2k, 4k).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions