Skip to main content
oneapi is a single binary written in Rust. It submits the task, waits for it and saves the output.

Install

Build it from the repository’s cli directory with a Rust toolchain:

Sign in

Paste your API key at the prompt. It is saved to ~/.config/one-api/token, readable only by you. To use an environment variable instead, set ONE_API_TOKEN; it takes priority over the saved key. oneapi logout removes the saved key.

Generate an image

Generate a video

Options for both

Check on tasks

Use it in scripts

The saved file path, or the JSON with --json, is the only thing written to standard output. Progress and errors go to standard error. That makes the result easy to capture:

Exit codes

Other settings

The API key is sent only to the API address. It is never sent to the host that serves the output file.