# generate_image

使用豆包 Seedream 模型生成图片 支持功能: - 文生图: 使用文本提示词生成图片 - 图生图: 使用输入图片和提示词生成新图片 - 多图融合: 使用多张参考图片融合生成新图片 参数说明: - prompt: 图片描述文本 (必需) - endpoint_id: 推理接入点 ID (推荐) 在火山引擎控制台创建推理接入点后获取的 Endpoint ID - model: 模型名称 (可选，默认: ${DEFAULT_IMAGE_MODEL}) * doubao-seedream-4-5: 最新 4.0 模型，支持 4K 分辨率 * doubao-seedream-3-0-t2i: 3.0 文生图模型 注意: 直接使用模型名称可能需要账户权限，推荐使用 endpoint_id - size: 图片尺寸 (可选，默认: 2560x1440) 支持的尺寸: 2560x1440, 2048x2048, 2304x1728, 1728x2304, 1440x2560, 2496x1664, 1664x2496, 3024x1296 - image_url: 参考图片 URL (可选，用于图生图) - ref_image_urls: 多张参考图片 URL 数组 (可选，用于多图融合) - req_key: 请求标识 (可选，用于追踪) 重要提示: 如果遇到 InvalidEndpointOrModel.NotFound 错误，请在火山引擎控制台创建推理接入点，并使用 endpoint_id 参数

Agent View of the PolicyLayer registry record for `generate_image`. HTML page: https://policylayer.com/tools/156554395-doubao-image-video-mcp/generate-image

## Facts

- Tool: `generate_image`
- Server: Doubao Image/Video Generation MCP Server (`156554395/doubao-image-video-mcp`) — https://policylayer.com/tools/156554395-doubao-image-video-mcp.md
- Homepage: https://github.com/156554395/doubao-image-video-mcp
- Risk category: Write (Medium risk)
- Registry record: grade B, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generate_image",
    "arguments": {}
  }
}
```

## Why generate_image is rated Medium

This tool creates new image content by calling an external API. It generates and presumably stores or returns new artifacts, which is a Write operation. It does not execute code, delete data, or involve financial transactions. Severity is medium as it consumes API credits and generates content that could be misused, but the blast radius is limited.

From the tool's own definition: "使用豆包 Seedream 模型生成图片 (Generate images using Doubao Seedream model); supports 文生图 (text-to-image), 图生图 (image-to-image), 多图融合 (multi-image fusion)"

## Use case

AI agents use generate_image to create or update resources in Doubao Image/Video Generation MCP Server, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Doubao Image/Video Generation MCP Server environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Doubao Image/Video Generation MCP Server:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "generate_image": {
      "limits": [
        {
          "counter": "generate_image_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Doubao Image/Video Generation MCP Server (2)

- `generate_video` — Execute — https://policylayer.com/tools/156554395-doubao-image-video-mcp/generate-video.md
- `query_video_task` — Read — https://policylayer.com/tools/156554395-doubao-image-video-mcp/query-video-task.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=156554395-doubao-image-video-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/156554395-doubao-image-video-mcp
