Skip to main content
POST
Genjutsu 1.0 / Lite

Parameters and input modes

model and input are required; omitted optional fields use model defaults. See the Body section below for full field definitions.

Special modes

  • Version 1.0-lite limits: Supports 720p/1080p only and requires reference image aspect ratios < 3.3:1. Combining 1.0-lite with motion_control, 480p, or more than 10 images returns HTTP 400.
  • Prompt references & strict fields: Optional prompt supports @Image1… and @Video1. aspect_ratio, duration, and seed are rejected with HTTP 400.

Use cases

Submit an example to POST /api/v1/tasks/create_task with your own media URLs.
Track results via Query task or callback_url (Webhook security); see Create task for submission errors. Output URLs remain valid for 14 days; tasks unfinished after 24 hours fail at no charge.

Playground and pricing

Each successful output is billed separately per measured source-video second (longer of video or audio track): motion_control rounds to the nearest whole second (minimum 4s), and replace_object rounds up. Reference images and prompts add no charge; failed outputs cost 0. Check balances via Available Credits.

Try in Playground

Switch between 1.0 and 1.0 Lite, upload a source clip, and measure quotes.

View pricing

Review 1.0 and 1.0 Lite per-second rates and bonus pricing.

Authorizations

Authorization
string
header
required

Sign in to APIstable, then create and copy a key from API Key management.

Send this HTTP header with every request:

Replace YOUR_API_KEY with the key you created.

Body

application/json
model
enum<string>
required

The APIstable model ID for this endpoint.

Available options:
genjutsu
Example:

"genjutsu"

input
object
required

Genjutsu video-to-video input. Rules for each field are listed below.

callback_url
string<uri>

Optional public HTTPS endpoint for signed completion callbacks; no redirects or private IPs.

Callbacks

POST
{$request.body#/callback_url}Webhook

Body

application/json

When the task succeeds or fails, APIstable sends a JSON POST to the callback_url supplied at creation. Verify the signature and return HTTP 2xx to acknowledge delivery.

Read data.status to determine the generation outcome. Successful tasks report succeeded with generated video URLs in data.result.urls. For a failed task, data.result is null and data.message contains the failure reason.

Use X-APIstable-Signature, X-APIstable-Timestamp, and X-APIstable-Event-Id to verify and deduplicate deliveries. See Webhook security.

Webhook payload example

code
integer
required
msg
string
required
Allowed value: "success"
data
object
required

Response

2XX

Webhook acknowledged.

Response

Accepted task. Poll the common task endpoint or use callback_url.

code
any
required
msg
any
required
data
object
required