BetaServer tools are currently in beta. The API and behavior may change.
openrouter:image_generation server tool enables any model to generate images from text prompts. When the model determines it needs to create an image, it calls the tool with a description. OpenRouter executes the image generation and returns the result to the model.
How It Works
- You include
{ "type": "openrouter:image_generation" }in yourtoolsarray. - Based on the user’s request, the model decides whether image generation is needed and crafts a prompt.
- OpenRouter generates the image using the configured model (defaults to
openai/gpt-image-2.6-flare). - The generated image URL is returned to the model.
- The model incorporates the image into its response. It may generate multiple images in a single request if needed.
Quick Start
const response = await fetch('https://openrouter.ai/api/v1/responses', {
method: 'POST',
headers: {
Authorization: 'Bearer <OPENROUTER_API_KEY>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'openai/gpt-5.2',
input: 'Create an image of a futuristic city at sunset',
tools: [
{ type: 'openrouter:image_generation' }
]
}),
});
const data = await response.json();
const message = [...data.output].reverse().find((item: { type: string }) => item.type === 'message');
console.log(message?.content.find((part: { type: string; text?: string }) => part.type === 'output_text')?.text);
// The generated image is a separate output item, as a data: URL
const images = data.output.filter(
(item: { type: string; result?: string }) => item.type === 'openrouter:image_generation',
);
for (const image of images) {
if (image.result) {
// Print a short preview; the full data URL is very long
console.log(`${image.result.slice(0, 64)}... (${image.result.length} chars)`);
}
}
import requests
response = requests.post(
"https://openrouter.ai/api/v1/responses",
headers={
"Authorization": f"Bearer <OPENROUTER_API_KEY>",
"Content-Type": "application/json",
},
json={
"model": "openai/gpt-5.2",
"input": "Create an image of a futuristic city at sunset",
"tools": [
{"type": "openrouter:image_generation"}
]
}
)
data = response.json()
message = next((item for item in reversed(data["output"]) if item["type"] == "message"), None)
text = next(
(part["text"] for part in message["content"] if part["type"] == "output_text"),
None,
) if message else None
if text:
print(text)
# The generated image is a separate output item, as a data: URL
images = [
item for item in data["output"] if item["type"] == "openrouter:image_generation"
]
for image in images:
if image.get("result"):
print(image["result"])
if not text and not any(image.get("result") for image in images):
raise RuntimeError("Response contained neither text nor a generated image")
curl https://openrouter.ai/api/v1/responses \
-H "Authorization: Bearer <OPENROUTER_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.2",
"input": "Create an image of a futuristic city at sunset",
"tools": [
{"type": "openrouter:image_generation"}
]
}'
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body, _ := json.Marshal(map[string]any{
"model": "openai/gpt-5.2",
"input": "Create an image of a futuristic city at sunset",
"tools": []map[string]any{
{"type": "openrouter:image_generation"},
},
})
req, _ := http.NewRequest("POST", "https://openrouter.ai/api/v1/responses", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("OPENROUTER_API_KEY"))
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
panic("API error: " + resp.Status)
}
var data struct {
Output []struct {
Type string `json:"type"`
Result string `json:"result"`
Content []struct {
Type string `json:"type"`
Text string `json:"text"`
} `json:"content"`
} `json:"output"`
}
if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
panic(err)
}
for i := len(data.Output) - 1; i >= 0; i-- {
if data.Output[i].Type == "message" {
for _, part := range data.Output[i].Content {
if part.Type == "output_text" {
fmt.Println(part.Text)
break
}
}
break
}
}
// The generated image is a separate output item, as a data: URL
for _, item := range data.Output {
if item.Type == "openrouter:image_generation" && item.Result != "" {
// Print a short preview; the full data URL is very long
fmt.Printf("%s... (%d chars)\n", item.Result[:min(64, len(item.Result))], len(item.Result))
}
}
}
Output
Here’s an image of a futuristic city at sunset:

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABogAAAOtCAIAAAA95H... (4111094 chars)
Configuration
The image generation tool accepts optionalparameters to customize the output:
{
"type": "openrouter:image_generation",
"parameters": {
"model": "openai/gpt-image-2.6-flare",
"quality": "high",
"aspect_ratio": "16:9",
"size": "1024x1024",
"background": "opaque",
"output_format": "png"
}
}
| Parameter | Type | Default | Description |
|---|---|---|---|
model | string | openai/gpt-image-2.6-flare | Which image generation model to use. See available image models. |
quality | string | N/A | Image quality level (model-dependent, e.g. "low", "medium", "high") |
size | string | N/A | Image dimensions (e.g. "1024x1024", "512x512") |
aspect_ratio | string | N/A | Aspect ratio (e.g. "16:9", "1:1", "4:3") |
background | string | N/A | Background style (e.g. "transparent", "opaque") |
output_format | string | N/A | Output format (e.g. "png", "jpeg", "webp") |
output_compression | number | N/A | Compression level (0-100) for lossy formats |
moderation | string | N/A | Content moderation level (e.g. "auto", "low") |
model are passed directly to the underlying image generation API. Available options depend on the specific model being used.
Response
The generated image is returned as its own item in the responseoutput array, before the model’s message:
{
"type": "openrouter:image_generation",
"id": "ig_abc123",
"status": "completed",
"result": "data:image/png;base64,...",
"imageUrl": "data:image/png;base64,...",
"prompt": "A futuristic city at sunset"
}
{
"status": "ok",
"imageUrl": "data:image/png;base64,..."
}
{
"status": "error",
"error": "Generation failed due to content policy"
}
Example with Parameters
Passparameters on the tool entry to configure it:
const response = await fetch('https://openrouter.ai/api/v1/responses', {
method: 'POST',
headers: {
Authorization: 'Bearer <OPENROUTER_API_KEY>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'openai/gpt-5.2',
input: 'Generate an image of a mountain landscape',
tools: [
{
type: 'openrouter:image_generation',
parameters: { quality: 'high' }
}
]
}),
});
const data = await response.json();
const message = [...data.output].reverse().find((item: { type: string }) => item.type === 'message');
const text = message?.content.find(
(part: { type: string; text?: string }) => part.type === 'output_text',
)?.text;
if (text) console.log(text);
const images = data.output.filter(
(item: { type: string; result?: string }) => item.type === 'openrouter:image_generation',
);
for (const image of images) {
if (image.result) console.log(image.result);
}
if (!text && !images.some((image) => image.result)) {
throw new Error('Response contained neither text nor a generated image');
}
import requests
response = requests.post(
"https://openrouter.ai/api/v1/responses",
headers={
"Authorization": f"Bearer <OPENROUTER_API_KEY>",
"Content-Type": "application/json",
},
json={
"model": "openai/gpt-5.2",
"input": "Generate an image of a mountain landscape",
"tools": [
{
"type": "openrouter:image_generation",
"parameters": {"quality": "high"}
}
]
}
)
data = response.json()
message = next((item for item in data["output"] if item["type"] == "message"), None)
text = next(
(part["text"] for part in message["content"] if part["type"] == "output_text"),
None,
) if message else None
if text:
print(text)
images = [
item for item in data["output"] if item["type"] == "openrouter:image_generation"
]
for image in images:
if image.get("result"):
print(image["result"])
if not text and not any(image.get("result") for image in images):
raise RuntimeError("Response contained neither text nor a generated image")
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body, _ := json.Marshal(map[string]any{
"model": "openai/gpt-5.2",
"input": "Generate an image of a mountain landscape",
"tools": []map[string]any{
{
"type": "openrouter:image_generation",
"parameters": map[string]any{"quality": "high"},
},
},
})
req, _ := http.NewRequest("POST", "https://openrouter.ai/api/v1/responses", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("OPENROUTER_API_KEY"))
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
panic("API error: " + resp.Status)
}
var data struct {
Output []struct {
Type string `json:"type"`
Result string `json:"result"`
Content []struct {
Type string `json:"type"`
Text string `json:"text"`
} `json:"content"`
} `json:"output"`
}
if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
panic(err)
}
text := ""
for i := len(data.Output) - 1; i >= 0; i-- {
if data.Output[i].Type == "message" {
for _, part := range data.Output[i].Content {
if part.Type == "output_text" {
text = part.Text
break
}
}
break
}
}
if text != "" {
fmt.Println(text)
}
hasImage := false
for _, item := range data.Output {
if item.Type == "openrouter:image_generation" && item.Result != "" {
fmt.Println(item.Result)
hasImage = true
}
}
if text == "" && !hasImage {
panic("Response contained neither text nor a generated image")
}
}
curl -sS https://openrouter.ai/api/v1/responses \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.2",
"input": "Generate an image of a mountain landscape",
"tools": [
{
"type": "openrouter:image_generation",
"parameters": {"quality": "high"}
}
]
}' | jq -r '
[ (.output | map(select(.type == "message")) | last | .content[]? | select(.type == "output_text") | .text),
# The generated image is a data: URL; print a short preview since the full value is very long
(.output[] | select(.type == "openrouter:image_generation") | .result // empty
| "\(.[0:64])... (\(length) chars)") ]
| if length == 0 then error("Response contained neither text nor a generated image") else .[] end'
Output
Here’s a generated mountain landscape image:

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABogAAAOtCAIAAAA95HBeAABVf2NhQlgAAFV/anVtYgAAAB5qdW1kYzJwYQARABCAAACqADibcQNjMnBhAAAAVVlqdW1iAAAAR2p1bWRjMm1hABEAEIAAAKoAOJtxA3VybjpjMnBhOjVlNGMyNDM4LTM1ZWYtNDAzZC1hMWM5LTI1YmQ2YmE4NzU2NQAAAAyCanVtYgAAAClqdW1kYzJhcwARABCAAACqADibcQNjMnBhLmFzc2VydGlvbnMAAAAJ0Wp1bWIAAAA7anVtZEDLDDK7ikidpwsq1vR/Q2kTYzJwYS5pY29uAAAAABhjMnNoXUO8MYl4BmeftsrYIUQdcQAAABdiZmRiAGltYWdlL3N2Zyt4bWwAAAAJd2JpZGI8c3ZnIHdpZHRoPSI3MTYiIGhlaWdodD0iNzE2IiB2aWV3Qm94PSIwIDAgNzE2IDcxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUwOC43NDkgMzE3LjM5OUM1MTYuNzc3IDI4Ny4zMTQgNTA4Ljk5MSAyNTMuODg0IDQ4NS4zODkgMjMwLjI4MkM0NjEuNzg4IDIwNi42ODEgNDI4LjM2IDE5OC44OTUgMzk4LjI3MyAyMDYuOTIzQzM3Ni4yMzEgMTg0LjkyOCAzNDMuMzkgMTc0Ljk1NiAzMTEuMTQ4IDE4My41OTZDMjc4LjkwNiAxOTIuMjM0IDI1NS40NSAyMTcuMjkyIDI0Ny4zNiAyNDcuMzYxQzIxNy4yOTEgMjU1LjQ1MSAxOTI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VitlAdV8v1mFKtnScaWIVUKqKSZHSFfutx548O/vLCzeenMp/vrydCpaB0ZlsPzdGViBATBoIAjI1thIqwMCAw2EUoyExZFsIgMGBZCNRak1EEaSRZyBKWxgmV6Eu32OrrjP295dZWzGcls0WnqBGIEgSyVYqFqlBEV6g9aaZWtnoqxZw6Pst1YAFuE+GNvkzT7NxZ33HX6uIq57372m1vLo7WDsoqOFjpQpb7BhVaN9cwVdWuNUdzJbdrV9x3K7T0xYsHXV9OXrOYbQderw7GaWBaT3Vey7zMd2ZlY1a2Z6hjSHcVwlnUFQBFdHLCOOJUm7BzNTGMuX/AwTAdDuOy3HPXeOt907lDvEiXfrbRTWXqVNbJzqlj1107r9tdXjpw4Wh/PSbLKZfLg6OjzGXf2m7LE5sndmbp6RLdse3Z5lxRmZpgMQ6Ejw6SEpkZ0FUZY5UI1FIa11NUWiKp1lJq0RieppZZawkFNGdGVdcHmW2aijJzIrLry9yzKGVqnsbWFfVFmZmFVUu3JrcqSWombQVYEUqwiSiZ2RKEJIqak6QECcKAJMA2kgGDhI0RMgB2IgwYMDgNFgB2MLrJTU4lo5kUIU2uh/eNm+dWvajz5Wwxb0erU3fvx2w+rlY7nbeqRtf9ccqWW
Pricing
Image generation pricing depends on the underlying model used:- openai/gpt-image-2.6-flare (default): See model page
- Other models: See the image models list on OpenRouter
Next Steps
- Server Tools Overview. Learn about server tools
- Web Search. Search the web for real-time information
- Datetime. Get the current date and time
- Tool Calling. Learn about user-defined tool calling