generateImage
Create AI-generated images using text prompts via the Jimeng MCP Server. Customize dimensions, enhance with super-resolution, and add watermarks or return image URLs with a 24-hour validity.
Instructions
调用即梦AI生成图像
Input Schema
Name | Required | Description | Default |
---|---|---|---|
height | No | 图像高度,默认值:512 | |
logo_info | No | 水印信息 | |
prompt | Yes | 生成图像的文本描述 | |
req_key | No | 取固定值: jimeng_high_aes_general_v21_L | jimeng_high_aes_general_v21_L |
return_url | No | 输出是否返回图片链接(链接有效期为24小时) | |
seed | No | 随机种子,默认值:-1 | |
use_pre_llm | No | 开启文本扩写,针对输入prompt进行扩写优化,如果输入prompt较短建议开启,如果输入prompt较长建议关闭 | |
use_sr | No | 文生图+AIGC超分 | |
width | No | 图像宽度,默认值:512 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"height": {
"default": 512,
"description": "图像高度,默认值:512",
"type": "number"
},
"logo_info": {
"additionalProperties": false,
"description": "水印信息",
"properties": {
"add_logo": {
"description": "是否添加水印,默认不添加",
"type": "boolean"
},
"language": {
"description": "水印语言:0-中文(AI生成) 1-英文(Generated by AI)",
"type": "number"
},
"logo_text_content": {
"description": "水印文字内容",
"type": "string"
},
"opacity": {
"description": "水印透明度:0-1,默认0.3",
"type": "number"
},
"position": {
"description": "水印位置:0-右下角 1-左下角 2-左上角 3-右上角",
"type": "number"
}
},
"type": "object"
},
"prompt": {
"description": "生成图像的文本描述",
"type": "string"
},
"req_key": {
"default": "jimeng_high_aes_general_v21_L",
"description": "取固定值: jimeng_high_aes_general_v21_L",
"type": "string"
},
"return_url": {
"default": true,
"description": "输出是否返回图片链接(链接有效期为24小时)",
"type": "boolean"
},
"seed": {
"default": -1,
"description": "随机种子,默认值:-1",
"type": "number"
},
"use_pre_llm": {
"default": true,
"description": "开启文本扩写,针对输入prompt进行扩写优化,如果输入prompt较短建议开启,如果输入prompt较长建议关闭",
"type": "boolean"
},
"use_sr": {
"default": true,
"description": "文生图+AIGC超分",
"type": "boolean"
},
"width": {
"default": 512,
"description": "图像宽度,默认值:512",
"type": "number"
}
},
"required": [
"prompt"
],
"type": "object"
}