Download the PHP package hanshs474/aigifmaker without Composer
On this page you can find all versions of the php package hanshs474/aigifmaker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hanshs474/aigifmaker
More information about hanshs474/aigifmaker
Files in hanshs474/aigifmaker
Package aigifmaker
Short Description Official SDK for AI GIF Maker (aigifmaker.ai): turn text into animated GIFs.
License MIT
Homepage https://aigifmaker.ai/?utm_source=packagist&utm_medium=package
Informations about the package aigifmaker
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 PHP client for AI GIF Maker. One call sends your prompt, waits for the GIF and returns its URL.
PHP 8.1+ with the bundled curl and json extensions, no other dependencies.
API key
Create a key at https://aigifmaker.ai/settings/apikeys, then pass it to the constructor or export it:
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.
Options
Submit now, collect later
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 Aigifmaker\AigifmakerException:
AuthError: no key, or the key is wrong or deletedQuotaError: the account is out of creditsRejectedError: the content filter refused the prompt, or a cooldown is active; reword itGenerationFailedError: the run was accepted but failed; the message says whyTimeoutError: still running when the timeout passed; the GIF may finish later in your historyNetworkError: the request never got an answer; safe to retry
Any other refusal throws AigifmakerException with the server's message.
Tests
MIT licensed. Questions: [email protected]
All versions of aigifmaker with dependencies
ext-curl Version *
ext-json Version *