Loading...
Loading...
Compare original and translation side by side

**Generation Info:**
- Prompt: [User's original prompt]
- Size: [Image dimensions]
- Save Path: [Local file path, if applicable]
**生成信息:**
- 提示词:[用户原始提示词]
- 尺寸:[图像分辨率]
- 保存路径:[本地文件路径(如有)]
**Generation Info:**
- Prompt: Shiba Inu under cherry blossom tree, warm sunlight, healing art style
- Size: 2304 × 1728
- Save Path: /generated_images/shiba_sakura.png
**生成信息:**
- 提示词:樱花树下的柴犬,温暖阳光,治愈系画风
- 尺寸:2304 × 1728
- 保存路径:/generated_images/shiba_sakura.pngundefinedundefinedundefinedundefined| Parameter | Value | Description |
|---|---|---|
| Endpoint | | API base URL |
| Submit Action | | Submit async generation task |
| Query Action | | Query task result |
| Version | | API version |
| Service | | Service name for signing |
| Region | | Region for signing |
| req_key | | Jimeng AI 4.0 model identifier |
| 参数 | 值 | 描述 |
|---|---|---|
| Endpoint | | API基础地址 |
| Submit Action | | 提交异步生成任务 |
| Query Action | | 查询任务结果 |
| Version | | API版本 |
| Service | | 签名用服务名称 |
| Region | | 签名用区域 |
| req_key | | 即梦AI 4.0模型标识符 |
| Preset | Resolution | Pixels |
|---|---|---|
| 1K | 1024×1024 | 1,048,576 |
| 2K | 2048×2048 | 4,194,304 (default) |
| 4K | 4096×4096 | 16,777,216 |
| 预设值 | 分辨率 | 像素数 |
|---|---|---|
| 1K | 1024×1024 | 1,048,576 |
| 2K | 2048×2048 | 4,194,304(默认) |
| 4K | 4096×4096 | 16,777,216 |
--width--heightscripts/generate_image.py "prompt" --width 2560 --height 1440--width--heightscripts/generate_image.py "提示词" --width 2560 --height 1440scripts/generate_image.py PROMPT [OPTIONS]
Arguments:
PROMPT Text prompt for image generation (required, max 800 chars)
Options:
--size SIZE Image size: 1K, 2K, 4K or WxH (default: 2K)
--width WIDTH Exact width (requires --height)
--height HEIGHT Exact height (requires --width)
--images URL [...] Input image URLs for image-to-image (max 10)
--watermark Add "AI Generated" watermark
--scale FLOAT Text influence 0-1 (default: 0.5)
--force-single Force single image output
--output PATH Download image to file
--json Output raw JSON response
Environment Variables:
VOLC_ACCESSKEY Access Key ID (required)
VOLC_SECRETKEY Secret Access Key (required)
JIMENG_API_URL API endpoint (default: https://visual.volcengineapi.com)
JIMENG_API_TIMEOUT Request timeout seconds (default: 120)
JIMENG_POLL_INTERVAL Polling interval seconds (default: 2)
JIMENG_MAX_POLL_ATTEMPTS Max polling attempts (default: 60)scripts/generate_image.py PROMPT [OPTIONS]
参数:
PROMPT 图像生成的文本提示词(必填,最多800字符)
选项:
--size SIZE 图像尺寸:1K、2K、4K或WxH(默认:2K)
--width WIDTH 精确宽度(需配合--height使用)
--height HEIGHT 精确高度(需配合--width使用)
--images URL [...] 图生图的输入图像URL(最多10个)
--watermark 添加“AI Generated”水印
--scale FLOAT 文本影响程度0-1(默认:0.5)
--force-single 强制输出单张图像
--output PATH 将图像下载到指定文件
--json 输出原始JSON响应
环境变量:
VOLC_ACCESSKEY Access Key ID(必填)
VOLC_SECRETKEY Secret Access Key(必填)
JIMENG_API_URL API端点(默认:https://visual.volcengineapi.com)
JIMENG_API_TIMEOUT 请求超时时间(秒,默认:120)
JIMENG_POLL_INTERVAL 轮询间隔(秒,默认:2)
JIMENG_MAX_POLL_ATTEMPTS 最大轮询次数(默认:60)content-type;host;x-content-sha256;x-dateAuthorizationcontent-type;host;x-content-sha256;x-dateAuthorization| Code | Message | Description |
|---|---|---|
| 10000 | Success | Request successful |
| 50411 | Pre Img Risk Not Pass | Input image failed content check |
| 50511 | Post Img Risk Not Pass | Output image failed content check |
| 50412 | Text Risk Not Pass | Input text failed content check |
| 50413 | Post Text Risk Not Pass | Input text contains sensitive words |
| 50429 | Request Has Reached API Limit | Rate limit exceeded, retry later |
| 50500 | Internal Error | Server error |
| timeout | Request timeout | Increase JIMENG_API_TIMEOUT |
| 代码 | 消息 | 描述 |
|---|---|---|
| 10000 | Success | 请求成功 |
| 50411 | Pre Img Risk Not Pass | 输入图像未通过内容审核 |
| 50511 | Post Img Risk Not Pass | 输出图像未通过内容审核 |
| 50412 | Text Risk Not Pass | 输入文本未通过内容审核 |
| 50413 | Post Text Risk Not Pass | 输入文本包含敏感词汇 |
| 50429 | Request Has Reached API Limit | 超出API调用限制,请稍后重试 |
| 50500 | Internal Error | 服务器内部错误 |
| timeout | Request timeout | 请求超时,请增大JIMENG_API_TIMEOUT值 |