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.
model को आज़माएँ
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
{
"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
}मानवीय पसंद
ब्लाइंड साइड-बाय-साइड वोटों से प्राप्त Elo रेटिंग, अन्य इमेज और वीडियो मॉडलों से तुलना में।
रैंकिंग का स्रोत Artificial Analysis Arena
इमेज-एडिटिंग Arena: लोग एक ही छवि और निर्देश के दो संपादनों में से बेहतर चुनते हैं, मॉडल नाम देखे बिना।
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).
बिल्डिंग शुरू करें
इस model को 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"एक SandBase API key बनाएँ और इसे अपने server environment में सेट करें। सभी requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"Key को सर्वर पर रखें। इसे browser code में expose न करें या repository में commit न करें।
इस model ID और इसके inputs के साथ /v1/run पर POST करें। ऊपर दिया गया request example submission और polling दोनों शामिल करता है।
Completed, failed या timeout होने तक poll करने के लिए लौटाए गए run ID का उपयोग करें। Output केवल completed होने के बाद पढ़ें।
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Model के image, video या audio field में सार्वजनिक रूप से उपलब्ध फ़ाइल URL पास करें। समर्थित formats और limits प्रत्येक Playground input के पास दिखाए गए हैं।
Playground में समर्थित image fields पर upload या replace control का उपयोग करें। Video URL fields hosted driving video स्वीकार करते हैं; इससे video-upload support का संकेत नहीं मिलता।
seedintegerRandom seed for reproducible results.
imagesarrayआवश्यकList of input image URLs for editing. Up to 4 images.
promptstringआवश्यकThe editing instruction describing what changes to make.
डिफ़ॉल्ट: "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.
संभावित मान: "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 अपना परिणाम output में दिखाता है। नीचे दिया गया model का सेव किया हुआ example है, नई generation नहीं।
[
{
"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"
}
]