Skip to main content
one-api.ai is a hosted API for image and video generation. You send a prompt, the service runs the model, and you get back a link to the finished file. A Rust command-line tool, oneapi, does the same from a terminal in one command.

Quickstart

Generate your first image with one request.

Command line

Install oneapi and save results straight to a file.

Images

Sizes, formats and the price per image.

Videos

Length, resolution, draft mode and the price per second.

How it works

Every generation is a task.
  1. You POST a prompt to /v1/images/generations or /v1/videos/generations.
  2. The service reserves the price from your credits and returns a task id.
  3. The task runs in the background. You either poll GET /v1/tasks/{id} or ask the service to hold the call open until it finishes with ?wait=.
  4. A completed task carries a temporary link to the output file. A failed task is refunded in full.

Models

Customer keys pay list price times 104/95. See Billing for the exact amounts.
one-api.ai is in early access. API keys are issued on request through the contact page.