Package 'aigifmaker'

Title: Turn Text into Animated GIFs with 'AI GIF Maker'
Description: Official SDK for 'AI GIF Maker' <https://aigifmaker.ai>: turn text into animated GIFs. Native GIF generation, no video conversion. Send a prompt with your 'AI GIF Maker' API key, wait for the GIF URL, and check your remaining credits.
Authors: AI GIF Maker [aut, cre]
Maintainer: AI GIF Maker <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2026-11-10 15:34:38 UTC
Source: https://github.com/hanshs474/aigifmaker-r

Help Index


Turn a prompt into an animated GIF with AI GIF Maker

Description

Submits one GIF on AI GIF Maker (https://aigifmaker.ai), waits for it and returns its URL. Each GIF costs 1 credit on your AI GIF Maker account, the same as on the website. Failures signal a condition of class aigifmaker_auth, aigifmaker_quota, aigifmaker_rejected, aigifmaker_failed, aigifmaker_timeout or aigifmaker_other.

Usage

aigifmaker_generate(prompt, api_key = NULL, poll_seconds = 3, timeout_seconds = 900,
  post = aigifmaker_post)

Arguments

prompt

What the GIF should show.

api_key

Key from https://aigifmaker.ai/settings/apikeys; defaults to the AIGIFMAKER_API_KEY environment variable.

poll_seconds

How often the task is polled.

timeout_seconds

Deadline for the whole call.

post

The HTTP function; replaceable in tests.

Value

The URL of the finished GIF.

Examples

## Not run: 
aigifmaker_generate("a corgi in sunglasses dancing on a beach, looping")

## End(Not run)

Submit a GIF, look it up, wait for it, read your credits

Description

Lower-level calls for submitting now and collecting later.

Usage

aigifmaker_submit(prompt, api_key = NULL, post = aigifmaker_post)
aigifmaker_status(id, api_key = NULL, post = aigifmaker_post)
aigifmaker_wait(id, api_key = NULL, poll_seconds = 3, timeout_seconds = 900, post = aigifmaker_post)
aigifmaker_credits(api_key = NULL, post = aigifmaker_post)

Arguments

prompt

What the GIF should show.

id

The task id returned by aigifmaker_submit.

api_key

Key from https://aigifmaker.ai/settings/apikeys; defaults to AIGIFMAKER_API_KEY.

poll_seconds

How often the task is polled.

timeout_seconds

Deadline for the wait.

post

The HTTP function; replaceable in tests.

Value

aigifmaker_submit: the task id. aigifmaker_status: a list with id, status ("pending", "processing", "success" or "failed"), images and, while queued, queued. aigifmaker_wait: the GIF URL. aigifmaker_credits: remaining credits as an integer (free to call).

Examples

## Not run: 
id <- aigifmaker_submit("happy birthday text bouncing in rainbow letters")
aigifmaker_status(id)$status
aigifmaker_wait(id)
aigifmaker_credits()

## End(Not run)