Reactor class, send named commands, and receive messages. Its
model name is reactor/pika-h3-flex. The
@reactor-models/pika-h3-flex typed package adds named methods
and React hooks on top of the same protocol.
At a glance
Key features
Video with sound
Describe the scene, the camera, the dialogue, and the soundscape in one prompt.
Frames and references
Start or end a clip on your own image, or steer it with reference images, audio, and video:
characters, objects, settings, voices, and sound.
Clip control
Queue clips, choose the playback order, and continue a generated scene.
Quick start
- npm
- pnpm
@reactor-models/pika-h3-flex package. Do not put your rk_ API key in browser code. See
Authentication for how to create tokens.
How it works
- Connect to
reactor/pika-h3-flex. The model describes the session with astate_updateand aqueue_update. - If you want frame images or references, upload them first. Then call
enqueuewith a prompt. The model picks how to build the clip from what you send. - Wait for
clip_generated, then callplayto stream the clip, or turn on autoplay instead. - Queue more clips, change their order, or continue a clip that has finished generating.