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=300)   # timeout in seconds, 5 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.0

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.0
File Size Uploaded Provenance Actions
aigifmaker-0.1.0.tar.gz 7.1 kB Without provenance Details for aigifmaker-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 13.4 kB

Release files / aigifmaker-0.1.0.tar.gz

Download URL aigifmaker-0.1.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e03b114326d6e5fd2b5792f3bc4e6321bb89ce8219bec8897bfb1dfe29457fdc
BLAKE2b-256 checksum
How to use checksums
ce2b57595821cf041a5fdd076d95ea6585fbfcc8aa63e3d6055685eb33f4e3c0
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.0-py3-none-any.whl

Download URL aigifmaker-0.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7409fe23487f5aba4b5c3549a4fe29ccccbabc445b907bb0afc84b09c7638357
BLAKE2b-256 checksum
How to use checksums
ccfe1154aff8beeac3407ace2f758efc8c7aeb2ea003cc1a21eef75624ed02d6
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.0

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.0 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