Skip to content
Omni-ReasonPlatform
APIDocsCreate accountSign in
FIRST STEPSCreate an accountGet an API keyCLI quickstartBUILD WITH OMNI-REASONHTTP API referenceUse from PythonTask lifecycleInputs & limitsTroubleshootingOpen console ↗

Connect your CLI

Approve your device

Enter the code shown in your own terminal. Only approve a login you started.

This gives that device permission to create, read, download and cancel your tasks for 30 days. Revoke it at any time in Account.

Developer tools

Build with Omni-Reason.

Use the same account, allowance and private Gallery as Platform. Start with a complete example, then bring your own video and instruction.

Read these docs without signing in. Running a task requires a free account. The CLI needs Python 3.11 or newer; the HTTP API works from any language. No local model or GPU is required.

Get your API key

First, create an account with your email address if you do not have one, then open API Keys. Name a key, select generation permissions and an expiry, and copy it when it is shown. Store it in your own environment as OMNI_REASON_API_KEY.

The complete key is shown only at creation. Use it from a trusted script or server, not in a public webpage. You can revoke it in Console. CLI users can instead connect with browser approval below.

Make an HTTP request →

Self-hosting the model follows its component licenses.

1 · Install2 · Connect3 · Generate

1 Install the lightweight client

Install omni-reason from PyPI. No account is needed to install it:

python3 -m venv .omni-venv
source .omni-venv/bin/activate
python -m pip install omni-reason==1.0.2

These commands use a macOS/Linux shell and a separate Python environment. On Windows PowerShell, activate it with .omni-venv\Scripts\Activate.ps1. Keep it activated for the steps below. You can also download the 1.0.2 wheel and install that file with python -m pip install /path/to/omni_reason-1.0.2-py3-none-any.whl.

Hosted commands need no model weights or PyTorch. The same package includes model, data and benchmark commands. Local workflows require their own hardware, assets and optional dependencies; follow the component guides and licenses. omni-reason --help lists the commands. tv2v and rv2v run on Platform and require a free account.

2 Connect your account

A browser page opens. Sign in, enter the code from your terminal and approve the device. Existing CLI users can check their account with omni-reason whoami.

Run omni-reason doctor to check your account, allowance and generation availability without creating a task.

3 Run your first example

Loading example materials…

View the exact instruction

Loading the example command…

The client checks availability, downloads and verifies the example files, submits the task, waits, and saves your video. The same task appears in Gallery. The color example includes its reference image automatically.

Output quality varies with the task and material. Use your own files with either input mode of the same model:

omni-reason tv2v "Highlight the moving robot." \
  --input input.mp4 --output result.mp4

omni-reason rv2v "Colorize the video using the reference image." \
  --input grayscale.mp4 --reference reference.png --output colorized.mp4

rv2v requires an image or video --reference. Existing tv2v --reference commands still work. Both entries share the same API, queue and task receipt; use the same files, settings and output path to resume through either entry.

Keep the task receipt. The client writes an .omni.json file beside your output path. If the connection drops, repeat the same command with that receipt in place. A new output path starts a new task; an existing result is never overwritten.

Checking your current allowance…

Use it from Python

After installing the client and connecting your account, run this script. It fetches the example files and uses the same CLI and saved login; no additional Python library is required.

Loading the Python example…

Progress and failures are available in the subprocess output. For unattended use, you can provide OMNI_REASON_API_KEY through your environment instead of device login. Create a credential in API Keys; keep it out of source code and shared logs.

Check progress, return later, or cancel

Add --no-wait to your generation command to return with a task ID after upload. Closing your terminal stops waiting; the accepted task continues on the server.


These are separate actions; run only the command you need. Replace TASK_ID with your actual ID. Cancellation applies to queued tasks. Download only after completion, and choose an unused output path.

API reference

Create a named, expiring API credential in API Keys. Set OMNI_REASON_API_KEY in your environment and send it as a Bearer credential. The API does not use browser cookies.

EndpointPurpose
GET /api/v1/meIdentity, permissions and remaining allowance
GET /api/v1/modelsModel and supported settings
GET /api/v1/statusRead-only submission preflight; accepts frames and upload_bytes
GET /api/v1/examplesExample instructions, settings and file checksums
GET /api/v1/examples/{name}/{role}Authenticated example input or reference download
POST /api/v1/jobsSubmit source, prompt and optional reference
GET /api/v1/jobs/{id}Status, actual settings and output URL
GET /api/v1/jobs/by-request/{key}Recover an uncertain submission
POST /api/v1/jobs/{id}/cancelCancel a queued task
GET /api/v1/jobs/{id}/outputAuthenticated download; supports Range

Submit the selected example. This saves the accepted task ID in submission.json. Keep the request key if you need to recover an interrupted submission.

Download files for this direct API example
Download input MP4Download reference PNG

Loading the API example…

202 means accepted. Poll the status every five seconds until completed, failed or canceled:

After completion, download with the same credential. This command requires curl with --no-clobber support and preserves an existing file.

Each request key is 16–100 letters, digits, hyphens or underscores. Reuse it only for the same operation; the server returns the existing task. An uncertain upload should be looked up by that key. A confirmed failed task needs a new request key for a new attempt.

Clip selection & limits

Loading supported settings…

In Playground, use the timeline directly below the input video. Drag its ends to trim up to 4 seconds, or drag the top bar to move the whole selection. Play selection previews that range in the same video; View full video lets you inspect the original without changing your selection. Video references have their own timeline below the reference. The first supported segment is selected initially. The instruction describes the task; there is no separate editing or prediction mode. Output duration follows the selected input by default, or you can enter a custom duration independently.

API fields: start_seconds selects the input start (default 0), input_seconds selects its span (default up to 4 seconds), and output_seconds accepts match or a number from 0.375 to 97/24. For an MP4 reference, reference_start_seconds defaults to 0 and reference_seconds defaults to up to 1 second. Image references always use one frame. The CLI equivalents are --start, --input-seconds, --output-seconds, --reference-start and --reference-seconds.

omni-reason tv2v "Predict what happens next." --input observed.mp4 \
  --input-seconds 1 --output-seconds 2 --output prediction.mp4

Input/reference spans round down to 8-frame intervals at 24 fps; custom output seconds round to the nearest supported frame count (9, 17, …, 97). A 1-second input span includes 25 frames; its matching output file lasts 25/24 seconds. A requested 2-second answer becomes 49 frames (2.042 seconds). Starts round to the nearest 24-fps frame. Very short input/reference videos hold their last frame to reach 9 frames. Inspect the returned timing record for exact windows, output frames and duration.

The input, reference and answer share a 3,696-token capacity. At the fixed resolution, each group of eight frames plus its initial frame uses 112 tokens. Two 97-frame videos leave room for a reference of up to 49 frames. Oversized combinations return 400 before entering the generation queue; shorten any one segment. A 30-second upload provides footage to select from, not a continuous 30-second output. Center cropping may remove content near the edges.

Legacy frames=auto and explicit frames=9|17|…|97 remain supported with their original input/output coupling. Use the new duration fields for independent windows; do not combine them with frames.

Web, API and CLI share your daily generation, pending-task and storage allowance. Daily frame allowance resets at 00:00 UTC (08:00 China Standard Time). Recheck GET /api/v1/me for your current limits.

If something goes wrong

Start with omni-reason doctor --frames 25. It checks current availability and your allowance without submitting work. These checks do not reserve capacity.

What you seeWhat to do
401 · Sign-in expiredReconnect the CLI, or replace an expired/revoked API credential in Console.
403 · Permission deniedCheck the credential's read, write or cancel permission and account access.
400 · Invalid inputUse an MP4 input and an optional PNG/JPEG image or MP4 reference. Check selected windows, output duration, combined capacity and instruction before a new attempt.
409 · Result not readyRead task status. Download after completion; only queued tasks can be canceled.
413 · Upload/storage limitCheck file size and storage allowance. Contact the administrator if storage is full.
429 · Queue or allowance limitRead the error message and your allowance. Wait for a pending task, quota reset or busy upload slot; follow Retry-After. Repeated submission does not free capacity.
503 · Service unavailableWait and check again. Recover an uncertain submission by its existing request key.
Connection interruptedKeep the receipt and retry the same CLI command, or use the saved task ID. A disconnected client does not cancel accepted work.

A task marked failed is different from a lost connection. Keep its ID and error message for troubleshooting; start a new attempt only after checking the cause.