seedinteger
Random seed for reproducible results.
alibaba/wan/2.6/image-to-imageAlibaba Wan 2.6 image-to-image model that edits images from a natural-language instruction, with multi-reference support and selectable aspect ratio.
Coba model ini
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
Pilih contoh untuk memuat input dan hasilnya ke playground.
{
"aspect_ratio": "9:16",
"images": [
"https://static.sandbase.ai/examples/6bc956c9-0728-4ee7-aa97-d02ad81fa8fb/input/24863bca-7df6-4e54-b38c-b93467a50f16.png"
],
"prompt": "Turn the scene into a snowy winter night",
"seed": 7
}Preferensi manusia
Peringkat Elo dari voting buta berdampingan, dibandingkan dengan model gambar dan video lainnya.
Peringkat bersumber dari Artificial Analysis Arena
Arena pengeditan gambar: pengguna memilih yang lebih baik dari dua hasil edit pada gambar dan instruksi yang sama, tanpa melihat nama model.
Wan 2.6 image editing: send one or more pictures and describe the change, such as a restyle, object swap, or new background.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 10,000 characters. |
images | image URL[], required | — | Images to edit or combine, 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. |
seed | integer | random | Fix it to compare prompt changes. |
$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.6 endpoints: alibaba/wan/2.6/text-to-video, alibaba/wan/2.6/image-to-video, alibaba/wan/2.6/reference-to-video, alibaba/wan/2.6/flash/image-to-video, alibaba/wan/2.6/flash/reference-to-video, alibaba/wan/2.6/text-to-image, alibaba/wan/2.7/text-to-video (newer), alibaba/wan/2.7/image-to-image (newer, same price).
Mulai membangun
Kirim model ini melalui 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.6/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"Buat SandBase API key dan atur di environment server Anda. Semua permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key di server. Jangan tampilkan di kode browser atau commit ke repository.
POST ke /v1/run dengan ID model ini dan inputnya. Contoh permintaan di atas mencakup pengiriman dan polling.
Gunakan run ID yang dikembalikan untuk polling sampai status completed, failed, atau timeout. Baca output hanya setelah completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Kirim URL file yang dapat diakses publik di field image, video, atau audio model. Format dan batas yang didukung ditampilkan di samping setiap input Playground.
Gunakan kontrol upload atau replace pada field gambar yang didukung di Playground. Field URL video menerima video driving yang di-host; ini tidak berarti dukungan upload video.
seedintegerRandom seed for reproducible results.
imagesarraywajibList of input image URLs for editing. Up to 4 images.
promptstringwajibThe 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.
Nilai yang mungkin: "21:9", "16:9", "4:3", "1:1", "3:4", "9:16", "9:21"
{
"model": "alibaba/wan/2.6/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"
}Run yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
[
{
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/6bc956c9-0728-4ee7-aa97-d02ad81fa8fb/output/bdee4692-2f0f-4704-a379-643bfb2f9a20.png"
}
]