Jimeng Image Generation Server

内容与创意

by ttkkasd

使用 Volcengine 的 Jimeng AI 根据文本提示生成高质量图像,支持尺寸定制、水印、超分辨率和提示词预处理,便于集成中英文视觉内容生成。

什么是 Jimeng Image Generation Server

使用 Volcengine 的 Jimeng AI 根据文本提示生成高质量图像,支持尺寸定制、水印、超分辨率和提示词预处理,便于集成中英文视觉内容生成。

README

Jimeng MCP Server

A Model Context Protocol (MCP) server for Volcengine's Jimeng AI image generation service.

Features

  • Generate images using Volcengine's Jimeng AI service
  • Support for Chinese and English prompts
  • Configurable image dimensions and generation parameters
  • Watermark support
  • Built-in prompt enhancement (LLM preprocessing)
  • Super-resolution enhancement

Installation

bash
npm install jimeng-mcp

Setup

  1. Get your Volcengine credentials from the Volcengine Console
  2. Set environment variables:
bash
export VOLCENGINE_ACCESS_KEY_ID="your_access_key_id"
export VOLCENGINE_SECRET_ACCESS_KEY="your_secret_access_key"

Usage

With Claude Desktop

Add to your Claude Desktop configuration:

json
{
  "mcpServers": {
    "jimeng": {
      "command": "npx",
      "args": ["jimeng-mcp"],
      "env": {
        "VOLCENGINE_ACCESS_KEY_ID": "your_access_key_id",
        "VOLCENGINE_SECRET_ACCESS_KEY": "your_secret_access_key"
      }
    }
  }
}

Standalone Usage

bash
# Set environment variables
export VOLCENGINE_ACCESS_KEY_ID="your_access_key_id"
export VOLCENGINE_SECRET_ACCESS_KEY="your_secret_access_key"

# Run the server
npm start

Available Tools

generateImage

Generate images using text descriptions.

Parameters:

  • prompt (required): Text description for image generation
  • req_key (optional): Model identifier (default: "jimeng_high_aes_general_v21_L")
  • seed (optional): Random seed for generation (default: -1)
  • width (optional): Image width in pixels (default: 512)
  • height (optional): Image height in pixels (default: 512)
  • use_sr (optional): Enable super-resolution (default: true)
  • use_pre_llm (optional): Enable prompt enhancement (default: true)
  • return_url (optional): Return image URLs (default: true)
  • logo_info (optional): Watermark configuration

Example:

typescript
{
  "prompt": "一只可爱的小猫在花园里玩耍,阳光明媚,高清摄影",
  "width": 1024,
  "height": 1024,
  "use_sr": true
}

Development

bash
# Install dependencies
npm install

# Build
npm run build

# Development mode
npm run dev

# Lint
npm run lint

# Format
npm run format

Configuration

Environment Variables

  • VOLCENGINE_ACCESS_KEY_ID: Your Volcengine access key ID
  • VOLCENGINE_SECRET_ACCESS_KEY: Your Volcengine secret access key

Watermark Configuration

typescript
{
  "logo_info": {
    "add_logo": true,
    "position": 0,     // 0: bottom-right, 1: bottom-left, 2: top-left, 3: top-right
    "language": 0,     // 0: Chinese, 1: English
    "logo_text_content": "AI Generated",
    "opacity": 0.3
  }
}

API Reference

This MCP server interfaces with Volcengine's Jimeng image generation API. For detailed API documentation, visit:

License

MIT

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Support

For issues and questions:

Security

  • Never commit API keys or secrets to version control
  • Use environment variables for sensitive configuration
  • Regularly rotate your API credentials

常见问题

Jimeng Image Generation Server 是什么?

使用 Volcengine 的 Jimeng AI 根据文本提示生成高质量图像,支持尺寸定制、水印、超分辨率和提示词预处理,便于集成中英文视觉内容生成。

相关 Skills

文档共著

by anthropics

Universal
热门

围绕文档、提案、技术规格、决策记录等写作任务,按上下文收集、结构迭代、读者测试三步协作共创,减少信息遗漏,写出更清晰、经得起他人阅读的内容。

写文档、方案或技术规格时容易思路散、信息漏,它用结构化共著流程帮你高效传递上下文、反复打磨内容,还能从读者视角做验证。

内容与创意
未扫描151.3k

内部沟通

by anthropics

Universal
热门

按公司常用模板和语气快速起草内部沟通内容,覆盖 3P 更新、状态报告、领导汇报、项目进展、事故复盘、FAQ 与 newsletter,适合需要统一格式的团队沟通场景。

按公司偏好的模板快速产出状态汇报、领导更新和 FAQ,既省去反复改稿,也让内部沟通更统一、更专业。

内容与创意
未扫描151.3k

平面设计

by anthropics

Universal
热门

先生成视觉哲学,再落地成原创海报、艺术画面或其他静态设计,输出 .png/.pdf,强调构图、色彩与空间表达,适合需要高完成度视觉成品的场景。

做海报、插画或静态视觉稿时,用它能快速产出兼顾美感与版式的PNG/PDF成品,原创设计更省心,也更适合规避版权风险。

内容与创意
未扫描151.3k

相关 MCP Server

免费的加密新闻聚合 MCP,汇集 Bitcoin、Ethereum、DeFi、Solana 与 altcoins 资讯源。

内容与创意
237

用于Adobe Photoshop自动化的MCP server,让AI assistants直接控制Photoshop。

内容与创意
105

by ProfessionalWiki

让 Large Language Model 客户端无缝连接任意 MediaWiki 站点,可创建、更新、搜索页面,并通过 OAuth 2.0 安全管理内容。

内容与创意16 个工具
96

评论