> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reactor.inc/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To build and serve your own model, start at /deploy/development/quickstart and /deploy/development/overview. Authenticate with reactor auth login, scaffold with reactor init, then run reactor deploy production from the workspace. Deploy builds remotely by default, creates a missing workspace project and its production environment, and waits for rollout. No local Docker or model.version bump is needed. Projects own images and weight sets; environments select the image, weights, GPU, instance count, and variables. Create staging explicitly with reactor environment create staging before deploying to it. Use reactor scale for capacity and reactor rollback for an earlier revision’s image and weights. See /deploy/platform/projects and /deploy/platform/deploy. Client SDK modelName remains account-qualified and selects production by default. Model code imports reactor_runtime; Python client code imports reactor_sdk. Local testing is optional; /deploy/development/local-testing covers reactor run, which needs Docker.
> Reactor hosts multiple models, each with its own connect slug (modelName) and command/event schema. The video model catalog — slug, typed SDK package, and links to its schema — is at /model-api-reference/overview. Robotics policy documentation starts at /robotics/overview; The launch policies are Cosmos Nano DROID (/robotics/cosmos/nano-policy-droid/), DreamZero DROID (/robotics/dreamzero/droid/), and FLUX Action DROID (/robotics/flux-action/droid/), organized by model family and embodiment. Some models expose one slug per experience (e.g. HappyOyster); always take the slug from the model's own pages, never guess it.
> Fastest path to a working app: `npx create-reactor-app my-app --model=<slug>` scaffolds a complete app with secure auth wired up. Typed TypeScript SDKs are published as @reactor-models/<model>; Python uses the base reactor-sdk package.
> Auth: exchange an API key (rk_...) for a JWT via POST https://api.reactor.inc/tokens from your server. Never put the API key in client-side code.
> Append .md to any docs URL for clean Markdown. Search these docs via the MCP server at https://docs.reactor.inc/mcp.

# Vivix W1 API reference

> Generate a 5- to 15-second clip with sound from a prompt, reference media, or frame images.

Vivix W1 generates a video clip with sound from a text prompt. Add reference images, audio, or
video to guide the clip, or supply an image for its first or last frame.

## Generate a clip

Send a request from your server with a Reactor API key in `REACTOR_API_KEY`.

```bash theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
curl --fail-with-body https://api.reactor.inc/generations \
  --header "Authorization: Bearer $REACTOR_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "reactor/vivix-w1",
    "input": {
      "prompt": "A paper boat drifts along a stream, with gentle water sounds.",
      "seconds": 5,
      "aspect": "16:9"
    }
  }'
```

Save the returned `id` and [poll for the result](https://docs.reactor.inc/generations/api-reference#poll-a-generation).
The [quickstart](https://docs.reactor.inc/generations/quickstart) shows how to poll and download the finished video.

### Inputs

Put these fields inside the `input` object.

| Field | Type | Required | Rules |
| - | - | - | - |
| `prompt` | string | Yes | Nonblank, up to 2,000 characters after trimming. Describe the scene and its sound. |
| `seconds` | integer | No | 5 to 15. Defaults to `5`. |
| `aspect` | string | No | `16:9`, `9:16`, `1:1`, `4:3`, or `3:4`. Defaults to `16:9`. |
| `seed` | integer | No | 0 to 2,147,483,647. Omit for a random seed. |
| `reference_images` | string or array of strings | No | Up to 8 uploaded images to guide appearance or style. |
| `reference_audios` | string or array of strings | No | Up to 4 uploaded audio files to guide voice, music, or ambience. Can be used on their own. |
| `reference_videos` | string or array of strings | No | Up to 4 uploaded videos to guide motion, camera movement, or style. |
| `first_frame_image` | string | No | One uploaded image to start the clip. |
| `last_frame_image` | string | No | One uploaded image to end the clip. |

#### Reference files and frames

[Upload each file](https://docs.reactor.inc/generations/api-reference#upload-files) before passing its `file_id`. In the
prompt, refer to files by their order in each list, such as `image 1`, `audio 1`, and `video 1`.

* Use reference files to guide the clip, or use either or both frame fields to set exact frames.
  Use the same image in both frame fields to end where the clip started.
* A single video can guide both motion and sound. Put its ID in both `reference_videos` and
  `reference_audios` to use its soundtrack. Image IDs can only be used as images.

| File | Supported formats and limits |
| - | - |
| Image | PNG, JPEG, or WebP. Up to 20 MiB and 40 megapixels, with an aspect ratio between 1:4 and 4:1. Frame images should match the requested `aspect`. |
| Audio | MP3, WAV, M4A, OGG, or WebM. Up to 20 MiB and 15 seconds per file, and 20 seconds total across audio references. |
| Video | MP4, MOV, or WebM. Up to 20 MB and 15 seconds per file, and 20 seconds total across video references. |

A file the model cannot use fails the generation with `step_failed`. Check the error message
for the file and reason.

### Output

A successful generation returns download URLs in `files`. `output.mp4` contains the finished
clip with sound. The other files are `last_frame.png`, `clip.json`, and `result.json`.

If you [cancel the generation](https://docs.reactor.inc/generations/api-reference#cancel-a-generation) after the model
accepts the clip, it can still finish and be billed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.