Genjutsu API

Video-to-video motion transfer and object replacement in one API (1.0 & 1.0 Lite)

Transfer character motion or swap objects in an existing video using a source clip and reference images. Switch between Genjutsu 1.0 (480p–1080p, motion control & object swap) and Genjutsu 1.0 Lite (720p/1080p, lower-cost object replacement) under one model ID.

1.0 & 1.0 Lite in one APIMotion control & object swapUp to 20 reference images480p / 720p / 1080p
Input
Version1.0 supports motion_control and replace_object (480p–1080p, up to 20 images); 1.0 Lite supports replace_object only (720p/1080p, up to 10 images).
ModeMotion control (1.0 only) transfers movement from the source video; Replace object (1.0 & 1.0 Lite) swaps subjects or props.
Source videoMP4/MOV/WebM/MKV, ≤30s. Billed by longer video/audio track rounded to nearest second (min 4s).
  • source.mp4Uploaded
Reference images (1/20)1–20 images required. Reference with @Image1, @Image2… and @Video1 in prompt.
  • reference.jpgUploaded
Resolution
Count
The Playground always screens prompts and input images. To disable screening via the API, set nsfw_check to false.
OutputCreator example
Download MP4
0:00 / 0:00
/ Features

Genjutsu API Features

Two versions under one model ID

Call model "genjutsu" with version "1.0" (default) or "1.0-lite" without changing endpoints, task polling, or webhook verification.

Motion control transfer (1.0)

Use mode "motion_control" to drive subjects from your reference images with the movement, timing, and framing of a source video up to 30 seconds.

Object replacement (1.0 & 1.0 Lite)

Use mode "replace_object" on a 4–30 second source video to swap products, props, or subjects while keeping the surrounding action context.

Cost-efficient 1.0 Lite tier

Switch to version "1.0-lite" for lower per-second replace_object pricing at 720p (23.4 credits/s) or 1080p (46.8 credits/s) with up to 10 reference images.

Multi-image subject references

Pass 1–20 reference images on 1.0 (or 1–10 on 1.0 Lite) to supply multiple angles of a character, garment, or product in a single request.

Optional targeted prompting

Add an optional prompt up to 5,000 characters and reference assets directly with @Image1, @Image2… and @Video1 to clarify what to replace or preserve.

Three output resolution tiers

Select 480p, 720p (default), or 1080p on Genjutsu 1.0, or 720p / 1080p on 1.0 Lite, matching draft review or final delivery budgets.

Source-video measured billing

Pricing is strictly per measured source-video second—reference images and prompts add zero extra cost, and failed tasks charge 0 credits.

/ Use cases

Genjutsu API Use Cases

E-commerce product swap

Replace a placeholder bottle, gadget, or packaging in an existing product demo clip using multi-angle product photos without reshooting.

Character motion retargeting

Apply choreography, gestures, or camera movement from a real-world clip to an illustrated or stylized character using 1.0 motion_control.

High-volume ad variations

Run Genjutsu 1.0 Lite replace_object across multiple SKUs or colorways at 720p ($0.117/s) to iterate on creative variants at lower per-second cost.

UGC and creator remakes

Keep the pacing and blocking of a proven short-form clip while swapping in a new brand prop or spokesperson appearance.

Virtual spokesperson clips

Transfer head turns and hand gestures from a studio reference video onto a brand persona supplied via reference images; review identity fidelity before publishing.

Fashion & accessory showcase

Swap bags, eyewear, or accessories in runway or lifestyle footage using reference photos from several angles.

Post-production prop fixes

Swap out an outdated label or unintended prop in a 4–30 second shot using @Image1 and @Video1 instructions.

Pre-visualization & rapid drafts

Test motion_control ideas at 480p (29.3 credits/s) before rendering approved shots at 720p or 1080p.

/ Examples

Genjutsu API Examples

Explore 8 authorized showcase examples, including the misty forest motion-control creator example preloaded in the workbench above. Split-screen comparisons, edited montages, and reverse-engineered prompts are labeled explicitly.

Subject swap & viral clip showcase (1.0 Lite)
1.0 Lite · Edited montage

Subject swap & viral clip showcase (1.0 Lite)

Edited launch montage (not a single raw output) · Reverse-engineered prompt — add your own source video & reference images

Replace the main person in @Video1 with the subject and outfit shown in @Image1 while preserving the handheld framing, facial timing, gestures, and indoor room lighting. Keep the background consistent throughout the shot. This reconstruction describes one person-swap clip from the edited launch showcase.

305 chars
Studio-to-sci-fi hybrid production reel
1.0 · Edited montage

Studio-to-sci-fi hybrid production reel

Edited production montage (not a single raw output) · Reverse-engineered prompt — add your own source video & reference images

Reimagine the live-action studio performance in @Video1 inside a cinematic dusty sci-fi landscape using the character and set references in @Image1. Preserve the actor choreography, props timing, and camera movement from the source clip. This reconstruction describes a selected shot from the multi-shot hybrid production montage.

330 chars
Misty forest motion transfer showcase
1.0 · Motion control

Misty forest motion transfer showcase

Split-screen comparison clip · Reverse-engineered prompt — add your own source video & reference images

Transfer the source performance into a misty forest encounter with a large brown bear and a person in dark outdoor clothing. Preserve the camera movement and stunt timing from the source clip. This reconstruction describes the transformed shot, not the comparison layout or text overlay.

287 chars
Crowd choreography lead dancer swap
1.0 · Replace object

Crowd choreography lead dancer swap

Published original prompt (illustrative; not a model guarantee) · Original parameters unknown — add your own source video & reference images

Change the main person in the reference video with the person from my uploaded character images. Preserve the original choreography, body movement, timing, camera movement, framing, background, lighting, and overall scene as closely as possible. Maintain 100% face accuracy throughout the entire video. Do not change the other people or the environment. Change only the identity and face of the main subject.

408 chars
Animated-to-live-action restaurant scene
1.0 · Motion control

Animated-to-live-action restaurant scene

Split-screen comparison clip · Reverse-engineered prompt — add your own source video & reference images

Transform the animated waiter carrying a tiered cake in @Video1 into the live-action person and realistic dining room setting referenced in @Image1. Preserve the walking cadence, tray balance, head turn, and camera pan while rendering natural restaurant lighting and soft background bokeh. This reconstruction describes the transformed shot, not the split-screen comparison layout.

381 chars
Music video diner performance swap
1.0 · Motion control

Music video diner performance swap

Published original prompt · Original parameters unknown — add your own source video & reference images

Use this image as reference for the first frame as you transfer the motion onto the character.

94 chars
Courtyard acrobatics dual-subject swap
1.0 · Replace object

Courtyard acrobatics dual-subject swap

Published original prompt (multi-stage workflow; final Genjutsu step) · Original parameters unknown — add your own source video & reference images

Replace the guy from the video with the guy from @[Image 2] keep everything else the same. Replace the girl from the video with the girl in @[Image 1} keep everything else the same.

181 chars
Gym jump-rope character swap
1.0 · Replace object

Gym jump-rope character swap

Split-screen comparison clip · Reverse-engineered prompt — add your own source video & reference images

Replace the athlete jumping rope in @Video1 with the person and athletic outfit shown in @Image1 while keeping the jump-rope cadence, footwork, camera angle changes, gym equipment, and studio lighting unchanged. This reconstruction describes the transformed clip, not the split-screen comparison layout.

303 chars

Genjutsu API · Pricing

Pay per billable source-video second across Genjutsu 1.0 and 1.0 Lite. Reference images and prompt text do not add extra charges.

+10%
Top up $1,500+ and get 10% bonus credits.
View top-up options
Version / tierResolutionStandardWaveSpeedfal
Genjutsu 1.0480pWith bonus ≈ $0.133 / source sRegular $0.147 / source s29.3 credits / s--
Genjutsu 1.0720pWith bonus ≈ $0.310 / source sRegular $0.342 / source s68.3 credits / s--
Genjutsu 1.01080pWith bonus ≈ $0.886 / source sRegular $0.975 / source s195.0 credits / s--
Genjutsu 1.0 Lite720pWith bonus ≈ $0.106 / source sRegular $0.117 / source s23.4 credits / s--
Genjutsu 1.0 Lite1080pWith bonus ≈ $0.213 / source sRegular $0.234 / source s46.8 credits / s--
/ API

Integrate the Genjutsu API

The request follows the form. The website uses your session; API clients use your API key. See the docs for parameters, task creation and task queries.

  1. Choose an input

    Provide a source video URL, 1–20 reference images (1–10 on 1.0 Lite), and an optional prompt.

  2. Review the request

    Confirm the version, mode, resolution, and optional callback_url before submitting.

  3. Read the result

    Poll the task ID or receive the signed callback to retrieve the generated video URL.

Parameter
Description
modelgenjutsu
inputVideo-to-video input object for Genjutsu 1.0 or 1.0 Lite.
input.versionModel version: 1.0 (default) or 1.0-lite.
input.modeWorkflow mode: motion_control (1.0 only) or replace_object.
input.video_urlSource video (MP4/MOV/WebM/MKV, up to 30s).
input.reference_image_urlsReference images (1–20 on 1.0; 1–10 on 1.0-lite).
input.resolutionOutput resolution: 480p (1.0 only), 720p (default), or 1080p.
input.promptOptional text prompt (up to 5,000 chars) supporting @Image1 and @Video1.
{
  "model": "genjutsu",
  "input": {
    "nsfw_check": true,
    "output_count": 1,
    "version": "1.0",
    "mode": "motion_control",
    "video_url": "https://files.apistable.ai/examples/nanoapi/genjutsu-default-g3-v1/source.mp4",
    "reference_image_urls": [
      "https://files.apistable.ai/examples/nanoapi/genjutsu-default-g3-v1/reference.jpg"
    ],
    "resolution": "720p",
    "prompt": "Transfer the motion and camera movement from the studio performance into a cinematic encounter in a misty forest. Use @Image1 as the visual reference for the large brown bear and the person in dark green outdoor clothing and a brown cloak. Transform the standing motion-capture performer into the bear, preserving the original timing, body movements, interaction with the crouching person, and camera framing. Maintain realistic fur, natural forest lighting and consistent character appearance. No text or logos."
  }
}
/ Compare

Compare Genjutsu & MAGI-2 API

Use one API key across video-to-video editing (Genjutsu 1.0 / 1.0 Lite) and 1080p audio-video generation (MAGI-2).

ModelWorkflows & strengthsResolutionDuration / billingStarting rate
Genjutsu 1.0 / Lite APICurrent pageVideo-to-video motion transfer (1.0) and object replacement (1.0 & 1.0 Lite) using a source video plus reference images.1.0: 480p / 720p / 1080p · Lite: 720p / 1080pSource video ≤30s (replace_object 4–30s)23.4 credits ($0.117) / s
MAGI-2 APIText, first/last frame, and multimodal reference-to-video at 1080p with synchronized sound for 4–30 second clips.1080p4–30s integer · audio on by default16.0 credits ($0.080) / s
/ FAQ

Genjutsu API FAQ

Find answers about pricing, generation results, and API access.

What is the difference between Genjutsu 1.0 and Genjutsu 1.0 Lite?

Both use model "genjutsu" and are selected with input.version. Genjutsu 1.0 supports both motion_control and replace_object at 480p, 720p, and 1080p with 1–20 reference images. Genjutsu 1.0 Lite supports replace_object only at 720p and 1080p with 1–10 reference images at significantly lower per-second rates.

What happens if I combine 1.0 Lite with motion_control, 480p, or more than 10 images?

Those combinations are rejected at request validation (HTTP 400) before any task is created or credits are reserved. In the Playground, switching to 1.0 Lite automatically switches to replace_object, disables 480p, and caps reference images at 10; selecting Motion control switches version back to 1.0.

What video formats and lengths are supported for video_url?

Supply an MP4, MOV, WebM, or MKV video up to 30 seconds long. For replace_object (both 1.0 and 1.0 Lite), the source video must be between 4 and 30 seconds.

How many reference images can I provide and are there aspect ratio rules?

At least 1 reference image is required. Genjutsu 1.0 accepts 1–20 images, while 1.0 Lite accepts 1–10 images and requires image aspect ratios < 3.3:1 in either orientation.

Is prompt required, and how do @Image1 and @Video1 work?

prompt is optional (up to 5,000 characters). When provided, you can refer to the source clip as @Video1 and reference photos in array order as @Image1, @Image2, and so on to guide the edit or motion transfer.

How is Genjutsu priced and why is the final quote calculated after upload?

Genjutsu bills per billable second of the source video (using the longer of its video or audio track). The server measures the uploaded or linked source video before quoting: motion_control rounds to the nearest whole second (minimum 4s), while replace_object rounds up to the next whole second. Before upload, the UI shows the per-second rate; after measurement, it shows the exact quote.

What are the per-second rates for Genjutsu 1.0 and 1.0 Lite?

Genjutsu 1.0: 480p is 29.3 credits/s ($0.147/s), 720p is 68.3 credits/s ($0.342/s), and 1080p is 195.0 credits/s ($0.975/s). Genjutsu 1.0 Lite: 720p is 23.4 credits/s ($0.117/s) and 1080p is 46.8 credits/s ($0.234/s). Reference images and prompts do not change the rate.

Why are aspect_ratio, duration, and seed not available on Genjutsu?

Genjutsu is a video-to-video model whose output framing and length follow the source video, and the contract does not expose aspect_ratio, duration, or seed parameters. Passing unknown fields returns HTTP 400.

Do I pay if the source video cannot be measured or the task fails?

No. If the source video cannot be fetched or measured, quoting fails before any credits are reserved. If a submitted task fails or times out after 24 hours, charged credits are 0 and reserved credits are released.

How long are generated Genjutsu videos kept?

Generated videos archived by APIstable remain downloadable for 14 days. Download and store outputs you want to keep permanently.

How do I receive task completion results via the API?

Submit to POST /api/v1/tasks/create_task, then either poll GET /api/v1/tasks/{task_id} or pass a callback_url to receive a signed completion webhook.

Does Genjutsu support official fallback or generating multiple videos per request?

Official fallback is not supported. Set `output_count` from 1 to 4 to get up to 4 independent videos per request; each successful video is billed on its own and failed ones cost 0.

Who makes Genjutsu, and does this API include Restyle presets?

Genjutsu is developed by Higgsfield. This API exposes motion_control (1.0) and replace_object (1.0 and 1.0 Lite) only; dedicated Restyle or preset-library parameters are not part of this contract.

Why does a 4.01-second replace_object clip bill 5 seconds, and what if the audio track is longer?

Billing measures the longer of the source video or audio track: replace_object rounds upward to the next whole second (so 4.01s bills 5s), while motion_control rounds to the nearest whole second with a 4-second minimum. Trim trailing audio if you do not want it counted.

CREATE VIDEO

Try Genjutsu 1.0 / Lite now

Enter a prompt and generate a video in the workbench.