Official CLI for AI GIF Maker (aigifmaker.ai): turn text into animated GIFs.
183
Turn text into animated GIFs with AI GIF Maker. Native GIF generation — no video conversion. Type what you want and download your GIF in about a minute.
This image is the official command-line tool for AI GIF Maker: pass a prompt, get back the URL of a real animated GIF. Handy in scripts, CI jobs and chat bots.
docker run --rm -e AIGIFMAKER_API_KEY san8888/aigifmaker "a cat dancing in the rain, pixel art"
# prints the GIF URL
Each run submits the prompt, waits for the GIF and prints its URL.
docker pull san8888/aigifmaker
A static Go binary on an empty base image, for linux/amd64 and linux/arm64. Exit codes: 0 ok, 1 failure, 2 usage, 3 key problem, 4 out of credits.
Sign in, create a key at https://aigifmaker.ai/settings/apikeys, then export it and pass it through:
export AIGIFMAKER_API_KEY=sk-...
Each GIF costs 1 credit on your AI GIF Maker account, the same as on the website. New accounts get one free GIF (it carries a small aigifmaker.ai badge). Failed generations are refunded. Credits are on the pricing page.
docker run --rm -e AIGIFMAKER_API_KEY san8888/aigifmaker -no-wait "a rocket launching, retro cartoon" # prints the task id
docker run --rm -e AIGIFMAKER_API_KEY san8888/aigifmaker -status <id> # JSON: status, images, queued
docker run --rm -e AIGIFMAKER_API_KEY san8888/aigifmaker credits # credits left, free to call
A run waits up to 5 minutes by default, polling every 3 seconds; change that with -timeout 10m. On an account that has not bought credits yet, a GIF can wait in a queue first ("queued":true with queueEta in seconds); the CLI keeps polling through it.
Errors print to stderr prefixed with their kind:
auth: no key, or the key is wrong or deletedquota: the account is out of creditsrejected: moderation refused the prompt, or the account is cooling down after a refusal; reword rather than retryfailed: the GIF was accepted and then failed; the credit comes backtimeout: the wait ran out; the GIF may still finish in your history on the siteother: anything else, with the service's messageMIT licensed.
Content type
Image
Digest
sha256:fb323e114…
Size
3.3 MB
Last updated
1 day ago
docker pull san8888/aigifmaker