i2v-gen.v1
Status: v1. A published shape is frozen by spec.md section 20.1.
Capability key: i2v-gen
Route: POST /video/image-to-video
Parts in
One row for each part kind that this capability accepts. A kind that is not in
this table is invalid_part.
| kind | role | required | meaning |
|---|---|---|---|
| image | first_frame | yes, exactly one | the frame that the clip starts from. |
| text | prompt | yes, exactly one | the description of the motion to make. |
Parameters
The plugin validates these. A parameter that is not in this table is ignored,
not an error (R26). A default of catalogue means the model entry in the
catalogue gives the value.
| name | type | default | meaning |
|---|---|---|---|
fps | uint | catalogue | frames per second of the clip |
steps | uint | catalogue | the count of denoising steps |
guidance | float | catalogue | the strength of the prompt |
seed | uint | none | a fixed seed for a repeatable job |
Channels out
One row for each channel that this capability can emit.
| channel | mime | payload |
|---|---|---|
| clip | video/mp4 | the whole clip, as one mp4 stream. |
| progress | application/json | {stage, pct} while the plugin denoises |
Terminal metadata
done.meta is vocabulary-defined. The core stores it and never reads it.
done without meta means {}.
| key | type | meaning |
|---|---|---|
model | string | the served name that ran the job |
fps | uint | frames per second of the clip |
frames | uint | the frame count of the clip |
duration_ms | uint | the clip length in milliseconds |
width | uint | the width of each frame, in pixels |
height | uint | the height of each frame, in pixels |
These keys are present when outcome is completed. They are absent when the
outcome is cancelled or expired.
Request
POST /video/image-to-video
{
"model": "<served-name>",
"input": [
{"kind": "image", "role": "first_frame", "mime": "image/png", "inline": "<png bytes>"},
{"kind": "text", "role": "prompt", "text": "The lake freezes over, then cracks."}
],
"params": {"fps": 16, "steps": 30, "guidance": 5.0, "seed": 7},
"stream": true
}
Response, no stream
{"job": "019...", "outcome": "completed",
"clip": {"mime": "video/mp4", "inline": "<mp4 bytes>"},
"usage": {"frames": 128, "tokens_in": 12},
"meta": {"model": "<served-name>", "fps": 16, "frames": 128, "duration_ms": 8000,
"width": 832, "height": 480}}
Stream
event ch=progress {"stage": "denoise", "pct": 0.4}
event ch=clip video/mp4 <mp4 bytes>
done outcome=completed meta={"model":"<served-name>","fps":16,"frames":128}
Rules
- Exactly one
imagepart with rolefirst_frameis required. A request without it isinvalid_part. - Exactly one
textpart with rolepromptis required. A request without it isinvalid_part. - A second
imagepart isinvalid_part. Anaudio,video,tokens, orjsonpart isinvalid_part. - The mime of every
clipevent isvideo/mp4. The mime is fixed, so this page has no output format parameter. - A
fpsvalue below one gives a refusal that namesfps. fps,steps, andguidancedefault to the catalogue value of the model. A value above the catalogue limit gives a refusal that names that parameter.meta.fpsequals thefpsthat the job used.meta.framescounts every frame of the clip.meta.duration_msisframesscaled byfps, in milliseconds, rounded down.- Every frame of the clip has the size named by
meta.widthandmeta.height. - Frame zero of the clip comes from the
first_framepart. - When
seedis given, two jobs with the same request give the sameframes,width, andheight. metanever names the seed that the plugin chose.usage.framesequalsmeta.frames.usage.tokens_incounts the prompt tokens.progress.pctnever decreases inside one job, and eachstageis a non-empty string.- No event follows a
cancel. The terminal frame isdonewithoutcome = cancelled, and it carries no metadata keys. - The plugin emits the
clipchannel andprogressevents. It emits nothing else for this job.