Skip to main content

aigifmaker

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 is the official Python client for AI GIF Maker. One call sends your prompt, waits for the GIF and returns its URL.

pip install aigifmaker
from aigifmaker import generate

url = generate("a corgi in sunglasses dancing on a beach, looping")
print(url)  # the finished GIF

Standard library only, no dependencies. Python 3.8+.

API key

Create a key at https://aigifmaker.ai/settings/apikeys, then pass it as api_key= or export it:

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). A GIF that fails to generate gives its credit back. Credit packs are on the pricing page.

from aigifmaker import credits
print(credits())  # remaining credits, free to call

Client

from aigifmaker import Client

gif = Client(api_key="sk-...", timeout=900)   # timeout in seconds, 15 minutes by default
url = gif.generate("a tiny dragon sneezing a puff of glitter")

Submit now, collect later

task_id = gif.submit("happy birthday text bouncing in rainbow letters")
print(gif.status(task_id)["status"])   # pending | processing | success | failed
url = gif.wait(task_id)                 # polls every 3 seconds

A run from an account that has not bought credits yet may wait in a short queue first ("queued": true while status stays processing). That is normal; generate() and wait() keep polling.

Errors worth catching

Each failure is its own subclass of AigifmakerError:

  • AuthError: no key, or the key is wrong or deleted
  • QuotaError: the account is out of credits
  • RejectedError: the content filter refused the prompt, or a cooldown is active; reword it
  • GenerationFailed: the run was accepted but failed; the message says why

Any other refusal raises AigifmakerError with the server's message.

Tests

PYTHONPATH=src python -m unittest discover -s tests   # mocked, offline
python tests/smoke_live.py                             # two free live checks, no generation

MIT licensed. Questions: support@aigifmaker.ai

Metadata

Release files for aigifmaker 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aigifmaker 0.1.1
File Size Uploaded Provenance Actions
aigifmaker-0.1.1.tar.gz 7.2 kB Without provenance Details for aigifmaker-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aigifmaker 0.1.1
File Interpreter ABI Platform Actions
aigifmaker-0.1.1-py3-none-any.whl Python 3 none any Details for aigifmaker-0.1.1-py3-none-any.whl

Total release size: 13.5 kB

Release files / aigifmaker-0.1.1.tar.gz

Download URL aigifmaker-0.1.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f4985bdf297e0989992defba319f9a2cff0fe7b2bf9a43d166f29c2eaca26481
BLAKE2b-256 checksum
How to use checksums
eeb721355a4d9f545ce1b291e15d94730b79fbc82d3dd2000ff95d0878a234b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / aigifmaker-0.1.1-py3-none-any.whl

Download URL aigifmaker-0.1.1-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8542af23aaa8cbc3b4febe860185f74ece4d4b3578460f337e20aa86d716ecf
BLAKE2b-256 checksum
How to use checksums
f28562f23c343549d15527ee30b1bc7e73ec21cae7e2dd700a8b7cc3f6229bdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for aigifmaker 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page