imagesarrayrequired
List of input image URLs for editing. Up to 4 images.
alibaba/wan/2.7/image-to-imageAlibaba Wan 2.7 image-to-image model that edits images from a natural-language instruction, with multi-reference support and selectable aspect ratio.
Try the model
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
Customize your input with more control.
Select an example to load its inputs and result into the playground.
{
"aspect_ratio": "9:16",
"images": [
"https://static.sandbase.ai/examples/0eeefa8f-0c4d-4a75-ad7e-6ead1df9e998/input/2a3945fe-b5cb-4a5c-bc95-e9b14b69d6ed.png"
],
"prompt": "Turn the scene into a snowy winter night"
}Human preference
Elo ratings from blind side-by-side votes, compared with other image and video models.
Rankings sourced from Artificial Analysis Arena
Image-editing arena: people pick the better of two edits of the same image and instruction, without seeing the model names.
Edit or restyle pictures with an instruction. Send one or more images and describe the change; Wan 2.7 keeps what you do not mention.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 10,000 characters. |
images | image URL[], required | — | Images to edit or combine, referred to as Image 1, Image 2, … |
aspect_ratio | 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / 9:21 | — | Omit to follow the first input image. |
$0.03 per output image, Alibaba's list price. Input images are not metered.
| Request | Price |
|---|---|
| One image | $0.03 |
Failed runs are not charged.
Other Wan 2.7 image endpoints: alibaba/wan/2.7/text-to-image, alibaba/wan/2.7/pro/text-to-image, alibaba/wan/2.7/pro/image-to-image.
Start building
Submit this model through the SandBase Unified Run API.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "alibaba/wan/2.7/image-to-image",
"images": [
"https://static.sandbase.ai/samples/image-editing/edit-style-watercolor-source.png"
],
"prompt": "Convert this photograph into a delicate watercolor painting style with visible brush strokes and soft color bleeding"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Create a SandBase API key and set it in your server environment. All requests use Bearer authentication.
export SANDBASE_API_KEY="YOUR_API_KEY"Keep the key on your server. Do not expose it in browser code or commit it to a repository.
POST to /v1/run with this model ID and its inputs. The request example above includes submission and polling.
Use the returned run ID to poll until the status is completed, failed or timeout. Read output only after completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Pass a publicly accessible file URL in the model’s image, video or audio field. Supported formats and limits are shown beside each Playground input.
Use the upload or replace control on supported image fields in the Playground. Video URL fields accept a hosted driving video; they do not imply video-upload support.
imagesarrayrequiredList of input image URLs for editing. Up to 4 images.
promptstringrequiredThe editing instruction describing what changes to make.
Default: "Convert this photograph into a delicate watercolor painting style with visible brush strokes and soft color bleeding"
aspect_ratiostringThe aspect ratio of the generated image.
Possible values: "21:9", "16:9", "4:3", "1:1", "3:4", "9:16", "9:21"
{
"model": "alibaba/wan/2.7/image-to-image",
"images": [
"https://static.sandbase.ai/samples/image-editing/edit-style-watercolor-source.png"
],
"prompt": "Convert this photograph into a delicate watercolor painting style with visible brush strokes and soft color bleeding"
}A completed run exposes its result in output. The following is the model’s saved example, not a new generation.
[
{
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/0eeefa8f-0c4d-4a75-ad7e-6ead1df9e998/output/fa02f813-dc4c-4b72-be4d-deaccae048ae.png"
}
]