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).