Metadata-Version: 2.4
Name: langchain-aigifmaker
Version: 0.1.0
Summary: LangChain tool for AI GIF Maker (aigifmaker.ai): turn text into animated GIFs from an agent
Project-URL: Homepage, https://aigifmaker.ai/?utm_source=pypi-langchain&utm_medium=package
Project-URL: Pricing, https://aigifmaker.ai/pricing
Project-URL: Documentation, https://aigifmaker.readthedocs.io/en/latest/
Project-URL: Source, https://github.com/hanshs474/langchain-aigifmaker
Author: AI GIF Maker
License-Expression: MIT
License-File: LICENSE
Keywords: agent,ai,aigifmaker,animated-gif,gif,gif-generator,langchain,text-to-gif,tool
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Graphics
Requires-Python: >=3.9
Requires-Dist: aigifmaker>=0.1.1
Requires-Dist: langchain-core>=0.3
Description-Content-Type: text/markdown

# langchain-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 package gives any LangChain agent that ability as one tool, on your [AI GIF Maker](https://aigifmaker.ai/?utm_source=pypi-langchain&utm_medium=package) API key.

```bash
pip install langchain-aigifmaker
export AIGIFMAKER_API_KEY=sk-...   # create one at https://aigifmaker.ai/settings/apikeys
```

```python
from langchain_aigifmaker import AigifmakerGifGenerator

gif = AigifmakerGifGenerator()
gif.invoke({"prompt": "a corgi in sunglasses dancing on a beach, looping"})
# -> "https://.../....gif"
```

Hand it to any tool-calling agent:

```python
from langchain.agents import create_agent

agent = create_agent("openai:gpt-5", tools=[gif])
agent.invoke({"messages": [("user", "Make a reaction GIF of a cat slamming a laptop shut")]})
```

## Tool

| Tool | Input | Returns |
|---|---|---|
| `aigifmaker_gif_generator` | `prompt` | URL of the animated GIF |

One GIF costs 1 credit on your AI GIF Maker account, the same as on the website; every new account gets one free GIF (with an aigifmaker.ai badge), and a failed GIF gives its credit back. Credit packs: [aigifmaker.ai/pricing](https://aigifmaker.ai/pricing?utm_source=pypi-langchain&utm_medium=package).

Refusals come back to the agent as text rather than an exception: a missing or wrong key, an empty balance, or a prompt the filter refused. The agent can reword or tell the user what to do instead of crashing the run.

Also on AI GIF Maker: the [Python SDK](https://pypi.org/project/aigifmaker/), an [MCP server](https://www.npmjs.com/package/aigifmaker-mcp) and [docs](https://aigifmaker.readthedocs.io/en/latest/).

MIT licensed. Source: [github.com/hanshs474/langchain-aigifmaker](https://github.com/hanshs474/langchain-aigifmaker).
