Skip to main content

Wan 2.7 image-to-image from Alibaba merges or edits one to nine reference images into a new image under a single instruction. The prompt says what changes and what must stay, so garments, products or faces survive the edit; this endpoint is uncensored.

Filtering differs by endpoint: Image editing — Uncensored, Text to image — Softened.

From $0.03/image

Workbench

Input

Image editing
230/5000

Reordering updates prompt references. Removing media also removes its references; review your prompt.

Say what changes and what must not. Refer to the sources by position — image 1, image 2 — so the model knows which is the subject and which is the surface. at least 1 characters · at most 5000 characters
2/9

Drop files or media links, paste, or browse · Up to 9 files · Max 10 MB · JPG · PNG · WEBP · GIF

  • Image 1
  • Image 2
2 / 9 files
One to nine reference images in one call. Order matters: the prompt refers to them by position, and the last one sets the proportions when aspect_ratio is left out. Each image: JPEG, PNG without transparency, BMP or WEBP, 240 to 8,000 pixels on each side, between 1:8 and 8:1 in shape, no larger than 20 MB. at least 1 items · at most 9 items
Edit areas0/18
cdn.spicyapi.ai/3215457c73f395f5.png

Drag on the image to mark an area to edit, up to 2 per image. Drag a box to move it, or its corners to resize it.

Optional rectangles marking where the edit should happen, up to two per reference image. image_index is the reference image the box sits on, counting from 1 in upload order; x1/y1 is the top-left corner and x2/y2 the bottom-right, in pixels of that image. Refer to the marked area in the prompt (for example “the marked area”). No effect on price. at most 18 items
1:1, 4:3, 3:4, 16:9, 9:16, 3:2 or 2:3. No default — leave it out to follow the last reference's proportions. A different ratio recomposes the frame rather than cropping it.
1k or 2k; 1k by default. 2k carries four times the pixels of 1k, and the shape still follows aspect_ratio. The tier applies with or without a ratio: leave aspect_ratio out and the output takes the last reference's proportions at this tier.
Color palette0/10
    Optional colour theme of 3 to 10 colours (8 is the recommended count). Enter each colour as a #RRGGBB hex code and, if you want, the share of the image it should cover in percent; rows left empty split whatever share is left, so leaving them all empty weights the colours equally. It steers the palette of the whole frame — set, wardrobe and light. No effect on price. at least 3 items · at most 10 items
    Seed
    0 to 2147483647. Fix it across a variant set so the only difference between two edits is the clause you changed. no lower than 0 · no higher than 2147483647
    Safety checkerOff

    SpicyAPI does not run a safety checker on this model. Your prompt and media go to the model as written, and the model itself decides what comes back.

    Checking your account before enabling submission and pricing.

    Output

    Ready for a new run
    wardrobe-swapExample result

    Related models and next tasks

    Missing the model you need?

    Tell us what to add and where you would use it. Requests go to the people who decide what gets onboarded next.

    Nine references, one instruction, one image

    The Wan 2.7 image to image API takes one to nine reference images in a single call and combines them under one instruction: the pose from one, the palette from another, the background from a third. Roles come from the prompt, which names each file by its position in image_urls ('image 1', 'image 2'), and there is no strength dial to set. Seven aspect ratios apply here too, and an omitted aspect_ratio hands the shape to the last source image.

    Open the playground
    Nine references, one instruction, one image
    Reference images
    1 to 9 per call, image_urls array
    Aspect ratio
    Optional; left out, the result follows the last source image's proportions
    Canvas budget
    Same 1k and 2k tiers as this family's text-to-image — about 1 or 4 megapixels
    Price
    Per output image, 1 to 4 per call; reference count changes nothing
    Prompt length
    Up to 5,000 characters to assign roles and describe the result
    Seed
    0 to 2,147,483,647; steadies comparisons, doesn't guarantee an identical result
    Multi-reference
    Nine sources resolved in one requestUp to nine images enter the same call, and each can carry a different element: a face, a garment, a room, a color reference. The result is one combined image rather than a chain of single-reference edits run back to back.
    Role naming
    The prompt gives each reference its jobWith more than one reference, state what each contributes by its place in image_urls: 'keep the pose from image 1, use the background from image 2.' Array position tells the model which file 'image 1' is; what that file contributes still has to be written out.
    No strength dial
    Control comes entirely from the promptThere's no 0–1 strength parameter on this endpoint. How much of each reference survives is decided by how specifically you describe the result.

    What the Wan 2.7 API does well

    Combines elements from several sources

    Combines elements from several sources

    Pull a pose from one image, a palette from another, a background from a third — in one call rather than a chain of single-reference edits. Each reference is read against the role the prompt gives it, so three sources land as one coherent result instead of three effects stacked on top of each other.

    Optional aspect_ratio

    Optional aspect_ratio

    Leave it out and the result takes the last source image's proportions at whichever resolution tier you picked, or set one of the seven values to force a different shape. Leaving it out suits edits where the last image in the list already has the delivery proportions; set it explicitly only when the output shape needs to differ.

    • Flat pricing regardless of reference count

      One reference or nine — the price is the same, so there's no incentive to trim references below what the edit actually needs. The field that does move the bill is num_outputs: each of the up to four images is charged as its own.

    • Isolate what one change did

      Hold seed, the reference list and the prompt steady, then move exactly one thing between calls: a single clause, or one reference swapped for another. The rest of the result stays close enough that the difference is readable as the thing you changed. Identical inputs still do not return an identical image.

    • Shares its canvas with text-to-image

      The same 1k and 2k tiers on both sides, so a draft generated on this family's text-to-image endpoint and the edit that follows it deliver at the same size. The two are separate contracts, and image_urls exists only here, but nothing about the pixel budget shifts when work moves from one to the other.

    Who Wan 2.7 is for

    • Build from several reference sketches at once

      Character sheets

      Build from several reference sketches at once

      Combine a face reference, a wardrobe reference and a pose reference in one call instead of iterating a single restyle repeatedly. Naming each reference's job up front replaces a chain of one-at-a-time edits with a single call that resolves all three together.

    • Swap a subject's background and match the light

      Product recomposition

      Swap a subject's background and match the light

      Take the product from one image and the setting from a second, stating in the prompt which reference should decide the light's direction and color temperature. Naming the light source explicitly keeps shadows and highlights consistent with the new background instead of carrying over the original studio setup.

    • Test several combinations without committing to one chain

      Editorial concepting

      Test several combinations without committing to one chain

      Because the price doesn't change with reference count, comparing three-image and five-image combinations costs the same as a single edit. That makes it cheap to test whether a fourth or fifth reference actually improves a result before settling on the final combination.

    • Fix one element without redoing the whole image

      Iterative correction

      Fix one element without redoing the whole image

      Feed a near-miss result back in as one reference alongside a correction reference, and name exactly what should change. Everything unnamed in the prompt is read as fixed, so the correction lands without disturbing the parts that were already right.

    How to call the Wan 2.7 API

    1. Decide what each reference contributes first

      Work out what each file is for before anything is written: identity, pose, palette, background. The common failure here is two references that end up carrying the same job, and catching that overlap while planning is cheaper than rewriting a prompt halfway through a set.

    2. Name every reference's role in the prompt

      'image 1' and 'image 2' count positions in the image_urls array, so a numbered role points at one specific file. Write the role next to the number instead of leaving the model to infer it from context, and keep the array order fixed once the prompt refers to it.

    3. Leave aspect_ratio unset unless you need to override it

      Left out, the output takes the proportions of the last image in image_urls, so put the file whose shape should carry over last. Set it only when the delivery shape must differ, since an unneeded override can recompose the frame in ways the references didn't suggest.

    4. Lock seed once a combination works

      Fix seed and the reference set, then change one clause at a time to isolate what each instruction actually controls. That isolates the effect of each prompt change instead of letting a new random seed obscure whether the edit itself worked.

    Wan 2.7 worked examples

    • Recoloring while preserving everything else

      A single-reference edit that changes only the glaze color, stated explicitly so the rest of the composition is read as fixed.

      Recolor the teapot's glaze from celadon to a matte oxblood red, keep the linen cloth, the chrysanthemum stem and the window light exactly as they are
    • Combining a subject with a new setting

      Two references with explicitly assigned roles — one supplies the object, the other supplies the environment and its lighting.

      Take the whisky glass from image 1 and place it on the marble counter shown in image 2, matching image 2's lighting direction and color temperature; keep the glass's shape and condensation untouched
    • Assembling a look from three sources

      Three references each carry one job: identity, garment and backdrop, named explicitly so the model has something to resolve instead of averaging the three together.

      Image 1 is the woman — keep her face and hair exactly. Image 2 is the burgundy velvet blazer; dress her in it. Image 3 is the rain-streaked window behind a bar; place her leaning against the counter in front of that window, matching image 3's warm interior light and the blue night tones outside

    Wan 2.7 API questions

    Every reference needs a job. A pile of images with no stated roles gives the model nothing to resolve ambiguity with, so name what each one contributes before describing the result you want. State what to keep as well as what to change: a prompt that only lists the changes leaves everything else open to drift, while one that also names what must stay fixed reads as a single coherent instruction.

    All Wan models22

    Video models18