Following a generation with aio status and downloading it later

All in One AIThe aio Command·· 13 views· 3 min read

A video can take a few minutes. You do not need to keep the terminal waiting: aio status shows where a generation stands and downloads the files once it is ready.

When you will need it

Situation What happens
You sent the request with --no-wait aio only shows the id and gives you the terminal back.
The generation went past the waiting time aio stops waiting, but the generation keeps running on the server. By default it waits 300 seconds for images and voice and 900 for videos.
You want the cost of a generation The status of a completed generation includes the real cost.

See the status

aio status <id>

It shows the status, the model, the file addresses and the cost.

Status What it means
processing (processing) It is still being made. Check again in a little while.
completed (completed) The files are ready and the real cost has been charged. If the reservation was larger, the rest went back to your balance.
failed (failed) Nothing is charged and the reservation goes back to your balance. You can try again or choose another model.

Download later

aio status <id> --download --out videos/

--download downloads the files of a completed generation to the --out folder. Without --out, they land in the current folder. If the generation is still processing, wait a little and run the command again.

The links to the files are not permanent. Download them and keep a copy of your own. Do not put the direct link on a website.

In a script

--no-wait and aio status work well together: send several requests in a row and collect the files later. With --json, the answer comes out as JSON, for another program to read. The AIO_POLL_SECONDS variable sets how many seconds aio waits between checks of a generation. More in using aio on a server or in scripts.

It is the same status the API gives in GET /v1/media/generations/{id} and the MCP server shows with the get_generation tool.

aio status spends no credits. You can check as often as you like, within the requests per minute limit of the key.

Want to create videos and voice from the terminal? See All in One AI.

See All in One AI

SEE ALSO

Generating images, videos and voice with aio generate: --opt, --out and --model

An AI video or voice is taking long or has failed: the statuses and what to do

Using aio on a server or in scripts: AIO_API_KEY, --json and the exit codes

All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from 396,00 MT/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.