Multimodal AI

AI Model Swap API 2.0

Generate model images from a product image and a full model reference image with optional segmentation and scene controls.

post/api/skill-api/v1/skills/ai-model-swap-2-0/run

Request

  • Base URL: https://api.nexscope.ai
  • URL: https://api.nexscope.ai/api/skill-api/v1/skills/ai-model-swap-2-0/run
  • Auth: HTTP bearer

Headers

X-Nexscope-Http-Status'legacy' | 'semantic'

Use semantic for HTTP error statuses on run and task-result requests. Without this header v1 retains legacy status behavior. The JSON envelope is unchanged; code 0 means success or acceptance, not asynchronous completion.

Request body

imageUrlstring required

Public URL of the source product or outfit image. The image must be up to 20 MB and between 385 and 8192 pixels in both width and height.

modelImageUrlstring required

Public URL of the full model reference image.

outputNuminteger

Number of images to generate, from 1 to 4. Defaults to 1.

imageSegUrlstring

Optional segmentation mask URL for the source image.

sceneImgUrlstring

Optional scene reference image URL.

sceneStrengthnumber

Scene reference strength from 0 to 1. Defaults to 0.7.

genOriResboolean

Whether to generate the original resolution. Defaults to false.

realModelboolean

Whether to prefer a realistic model style.

Example request

{
  "imageUrl": "https://example.com/source-image.jpg",
  "modelImageUrl": "https://example.com/model-reference.jpg",
  "outputNum": 1,
  "imageSegUrl": "https://example.com/mask.png",
  "sceneImgUrl": "https://example.com/scene.jpg",
  "sceneStrength": 0.7,
  "genOriRes": false,
  "realModel": true
}

Response

Successful response.

codeinteger required

0 means accepted or successful; nonzero is a platform error.

msgstring nullable required
tsstring required

Epoch milliseconds.

timestring required

Server local time: yyyy-MM-dd HH:mm:ss.

coststring required

Elapsed milliseconds, never credits; -1 outside web requests.

traceIdstring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.