ImageGenerationServerToolOpenRouter - TypeScript SDK
ImageGenerationServerToolOpenRouter type definition
OpenRouter built-in server tool: generates images from text prompts using an image generation model
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ImageGenerationServerToolOpenRouter type definition
import { ImageGenerationServerToolOpenRouter } from "@openrouter/sdk/models";
let value: ImageGenerationServerToolOpenRouter = {
type: "openrouter:image_generation",
};
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
parameters | models.ImageGenerationServerToolConfig | :heavy_minus_sign: | Configuration for the openrouter:image_generation server tool. Accepts all image_config params (aspect_ratio, quality, size, background, output_format, output_compression, moderation, etc.) plus a model field. | {"aspect_ratio": "16:9","model": "openai/gpt-5-image","quality": "high"} |
type | models.ImageGenerationServerToolOpenRouterType | :heavy_check_mark: | N/A |