langchain-freeimagetovideo
Free image to video AI with no daily cap: start with no sign-up, keep going on a free account. Every video comes with sound and no watermark. This is the official LangChain integration for Free Image to Video: it gives any LangChain agent a tool that turns a prompt, or a photo plus a prompt, into a video clip.
pip install langchain-freeimagetovideo
export FREEIMAGETOVIDEO_API_KEY=sk-... # create one at https://freeimagetovideo.ai/settings/apikeys
from langchain_freeimagetovideo import FreeImageToVideoGenerator
video = FreeImageToVideoGenerator()
video.invoke({"prompt": "a paper lantern drifting over a night river, slow push in"})
# -> "https://cdn.freeimagetovideo.ai/....mp4"
# image to video: the photo becomes the first frame
video.invoke({
"prompt": "the camera slowly orbits the statue",
"image_url": "https://example.com/statue.jpg",
"duration": 6,
"aspect_ratio": "9:16",
})
Hand it to any tool-calling agent:
from langchain.agents import create_agent
from langchain_freeimagetovideo import FreeImageToVideoGenerator, FreeImageToVideoStatus
agent = create_agent("openai:gpt-5", tools=[FreeImageToVideoGenerator(), FreeImageToVideoStatus()])
agent.invoke({"messages": [("user", "Make a 6-second vertical clip of a fox trotting through fresh snow")]})
Tools
| Tool | Input | Returns |
|---|---|---|
freeimagetovideo_video_generator |
prompt, optional image_url, duration (4/5/6/8/10/15), resolution (480p/768p), aspect_ratio (16:9/9:16/1:1) |
URL of the MP4, with sound |
freeimagetovideo_check_status |
task_id |
URL once ready, or where the run is |
The model is MiniMax H3. Video takes minutes: the generator waits up to timeout seconds (600 by default) and otherwise hands back the task id, so the agent can call the status tool later instead of blocking.
On the site the same model runs as image to video AI with sound and free text to video AI.
API key and plans
Create a key at freeimagetovideo.ai/settings/apikeys and pass it as api_key= or set FREEIMAGETOVIDEO_API_KEY. API runs need a paid plan: each run draws on the plan's full-speed allowance, then waits in the relaxed queue. See pricing.
Refusals come back to the agent as text rather than an exception: a missing or wrong key, no paid plan, not enough credits, too many runs at once, or a prompt the filter refused. The agent can reword or tell the user what to do instead of crashing the run.
Built on the freeimagetovideo Python SDK.
MIT licensed. Source: github.com/hanshs474/langchain-freeimagetovideo.
Metadata
Release files for langchain-freeimagetovideo 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langchain_freeimagetovideo-0.1.0.tar.gz | 6.0 kB | Without provenance | Details for langchain_freeimagetovideo-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_freeimagetovideo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_freeimagetovideo-0.1.0-py3-none-any.whl |
Total release size: 12.0 kB
Release files / langchain_freeimagetovideo-0.1.0.tar.gz
| Download URL | langchain_freeimagetovideo-0.1.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89a460dfe493329330b36abf852a2f2d4489e305d7075b506fa53b43d41bd7ee
|
|
BLAKE2b-256 checksum How to use checksums |
9f24426300f9479a6878284e74142854529f181f191924c0c569a8c638fd4eac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Release files / langchain_freeimagetovideo-0.1.0-py3-none-any.whl
| Download URL | langchain_freeimagetovideo-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0211f6ddcf05775788910936970dc42915a6bf578e5f0be92cae389f76ac5ef
|
|
BLAKE2b-256 checksum How to use checksums |
27f3943562c189db61ba95f0a75e4ad2e2ccc52513372bf94939dde46d3ecf2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Security for langchain-freeimagetovideo 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.