协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
wan-2-5-preview-image-to-image【开发与工程】Wan | 2.5 | Preview | Image to Image. Edit and transform images using the Wan 2.5 Preview model with single or multi-reference support. Triggers: wan, image to image, image edit, wan 2.5, image transform
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Edit and transform images using the Wan 2.5 Preview model. Supports single-image editing and multi-reference input for style transfer, with configurable negative prompts and batch output.
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "wan-2-5-preview-image-to-image",
"version": "0.0.1",
"input": {
"prompt": "Transform this photo into a watercolor painting style",
"image_urls": ["https://example.com/landscape.jpg"],
"image_size": "landscape_16_9",
"num_images": 1
}
}'
| Parameter | Type | Default | Description |
|---|---|---|---|
| image_size | string | square_hd | The size of the generated image. enum: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9 |
| image_urls | array | URLs of images to edit. Single URL for editing, multiple for multi-reference | |
| negative_prompt | string | Negative prompt to describe content to avoid (max 500 chars) | |
| num_images | integer | 1 | Number of images to generate (1-4) |
| prompt | string | Text prompt describing how to edit the image (max 2000 chars) | |
| seed | integer | Random seed for reproducibility |
Style transfer with negative prompt:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "wan-2-5-preview-image-to-image",
"version": "0.0.1",
"input": {
"prompt": "Convert this photograph into an oil painting in the style of Van Gogh with bold brushstrokes",
"image_urls": ["https://example.com/starry-night-photo.jpg"],
"image_size": "landscape_4_3",
"negative_prompt": "blurry, low quality, text, watermark",
"num_images": 2,
"seed": 42
}
}'
Multi-reference image editing:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "wan-2-5-preview-image-to-image",
"version": "0.0.1",
"input": {
"prompt": "Combine the subject from the first image with the background from the second image",
"image_urls": ["https://example.com/subject.jpg", "https://example.com/background.jpg"],
"image_size": "square_hd",
"num_images": 1
}
}'