Loading...
Loading...
Compare original and translation side by side
JIMENG_API_KEYJIMENG_API_URLJIMENG_MODELreferences/setup_guide.mdJIMENG_API_KEYJIMENG_API_URLJIMENG_MODELreferences/setup_guide.md用户:"用即梦生成一张图片:樱花树下的柴犬"
→ 使用 text_to_image 工具,参数 prompt="樱花树下的柴犬"用户:"帮我合成这两张图片,风格偏向第一张"
→ 使用 image_composition 工具,提供图片 URL用户:"创建一个5秒视频:小马过河的故事场景"
→ 使用 text_to_video 工具,设置提示词和时长用户:"为这张图片添加动画效果"
→ 使用 image_to_video 工具,提供图片 URLUser: "Generate an image with Jimeng: Shiba Inu under cherry blossom trees"
→ Use the text_to_image tool with parameter prompt="Shiba Inu under cherry blossom trees"User: "Help me synthesize these two images, with the style leaning towards the first one"
→ Use the image_composition tool and provide image URLsUser: "Create a 5-second video: Scene of a pony crossing a river"
→ Use the text_to_video tool, set the prompt and durationUser: "Add animation effects to this image"
→ Use the image_to_video tool and provide the image URLtext_to_imagepromptmodelratioresolutionnegativePromptundefinedtext_to_imagepromptmodelratioresolutionnegativePromptundefined
**返回结果:**
返回包含多张图片 URL 的数组,可显示或下载。
**提示:**
- 更高分辨率(4k)适合印刷品和高质量展示
- 较低分辨率(1k)适合快速预览
- 使用描述性提示词以获得更好的结果
- 指定艺术风格、光照、氛围以增强控制
**Return Result:**
Returns an array containing multiple image URLs, which can be displayed or downloaded.
**Tips:**
- Higher resolution (4k) is suitable for print and high-quality displays
- Lower resolution (1k) is suitable for quick previews
- Use descriptive prompts for better results
- Specify art style, lighting, and atmosphere to enhance controlimage_compositionpromptimagesmodelratioresolutionundefinedimage_compositionpromptimagesmodelratioresolutionundefined
**使用场景:**
- 将人像与背景融合
- 图片之间的风格迁移
- 创建艺术合成作品
- 合并多张照片的元素
**提示:**
- 在提示词中提供清晰的合成说明
- 图片应具有兼容的分辨率
- 描述期望的混合风格(无缝、艺术、真实)
**Usage Scenarios:**
- Blend portraits with backgrounds
- Style transfer between images
- Create artistic composite works
- Merge elements from multiple photos
**Tips:**
- Provide clear synthesis instructions in the prompt
- Images should have compatible resolutions
- Describe the desired blending style (seamless, artistic, realistic)text_to_videopromptmodelratioresolutionundefinedtext_to_videopromptmodelratioresolutionundefined
**视频特性:**
- 时长:通常 3-5 秒
- 格式:MP4
- 生成时间:30-60 秒
- 帧率:24-30 fps
**提示:**
- 包含场景细节、动作和氛围
- 保持提示词专注于单一清晰的动作
- 指定一天中的时间、天气或情绪以获得更好的结果
- 从 720p 开始以平衡质量和速度
**Video Features:**
- Duration: Typically 3-5 seconds
- Format: MP4
- Generation Time: 30-60 seconds
- Frame Rate: 24-30 fps
**Tips:**
- Include scene details, actions, and atmosphere
- Keep prompts focused on a single clear action
- Specify time of day, weather, or mood for better results
- Start with 720p to balance quality and speedimage_to_videopromptfile_pathsmodelratioresolutionundefinedimage_to_videopromptfile_pathsmodelratioresolutionundefined
**动画类型:**
- 人物动作(Character motion)
- 镜头运动(Camera movements)
- 场景转换(Scene transitions)
- 环境效果(Environmental effects:风、雨等)
**提示:**
- 描述期望的运动类型
- 选择效果时考虑图像内容
- 人像照片适合细微的动作
- 风景照片适合平移/缩放效果
**Animation Types:**
- Character motion
- Camera movements
- Scene transitions
- Environmental effects (wind, rain, etc.)
**Tips:**
- Describe the desired type of motion
- Consider image content when selecting effects
- Portrait photos suit subtle movements
- Landscape photos suit pan/zoom effects收到用户请求
│
├─ 包含"生成图片"或"create image"?
│ └─ 是 → 使用 text_to_image
│
├─ 包含"合成"或"merge/blend images"?
│ └─ 是 → 使用 image_composition
│
├─ 包含"生成视频"或"create video"?
│ └─ 是 → 使用 text_to_video
│
└─ 包含"动画"或"animate image"?
└─ 是 → 使用 image_to_videoReceive User Request
│
├─ Contains "generate image" or "create image"?
│ └─ Yes → Use text_to_image
│
├─ Contains "synthesize" or "merge/blend images"?
│ └─ Yes → Use image_composition
│
├─ Contains "generate video" or "create video"?
│ └─ Yes → Use text_to_video
│
└─ Contains "animate" or "animate image"?
└─ Yes → Use image_to_videoAPI key not configuredServer not respondingInvalid image URLGeneration timeoutAPI key not configuredServer not respondingInvalid image URLGeneration timeouttext_to_imageimage_to_videoimage_compositiontext_to_imageimage_to_videoimage_compositiondocker ps | grep jimengcurl http://127.0.0.1:8001/healthdocker ps | grep jimengcurl http://127.0.0.1:8001/healthratioresolutionnegativePromptratioresolutionnegativePromptsetup_guide.mdapi_reference.mdsetup_guide.mdapi_reference.md