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.- You
POSTa prompt to/v1/images/generationsor/v1/videos/generations. - The service reserves the price from your credits and returns a task id.
- 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=. - 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.