Skip to main content

langchain-saymaker

LangChain tools that let an agent generate images and video on SayMaker: one API key runs Veo 3.1, Kling 3.0, Seedance 2.0, MiniMax H3, Nano Banana 2, GPT Image 2.5, Seedream 5.0 and the rest of the shelf on your own credits.

pip install langchain-saymaker
export SAYMAKER_API_KEY=sk-...   # create one at https://saymaker.ai/settings/apikeys
from langchain_saymaker import SayMakerImageGenerator, SayMakerVideoGenerator

image = SayMakerImageGenerator()
video = SayMakerVideoGenerator()  # MiniMax H3 Fast by default; model="veo-3-1" on a plan

image.invoke({"prompt": "a paper boat at sunrise, soft fog, 35mm film", "aspect_ratio": "16:9"})
video.invoke({"prompt": "a fox trotting through fresh snow at dawn, tracking shot", "duration": 6})

Hand both to any tool-calling agent:

from langchain.agents import create_agent

agent = create_agent("openai:gpt-5", tools=[image, video])
agent.invoke({"messages": [("user", "Make a 16:9 cover image of a lighthouse in fog, then a 6-second clip of the beam sweeping")]})

Tools

Tool Input Returns
saymaker_image_generator prompt, optional aspect_ratio, optional image_url to edit a photo URL of the image
saymaker_video_generator prompt, optional image_url (first frame), duration, aspect_ratio URL of the clip

For an edit, the prompt names the change and what must stay ("change the jacket to dark green, keep the face and background"). That second half is what decides whether the edit holds.

Refusals come back to the agent as text rather than an exception: out of credits, a model that needs a plan, another run still rendering, or a prompt the filter refused. The agent can reword, wait or switch model instead of crashing the run.

Set model= on either tool for a specific engine: gpt-image-2-5-flare, seedream-5-pro, nano-banana-2 for images; veo-3-1, kling-3-0, seedance-2 for video (pricing). Runs on a free account wait in a queue before they start; the default timeouts cover the longest wait.

Built on the saymaker client. MIT licensed. Made by SayMaker, the AI video generator agent.

Metadata

Release files for langchain-saymaker 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 langchain-saymaker 0.1.0
File Size Uploaded
langchain_saymaker-0.1.0.tar.gz 4.4 kB Details

Built distribution (wheel)

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

Total release size: 9.6 kB

Release files / langchain_saymaker-0.1.0.tar.gz

Download URL langchain_saymaker-0.1.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
29aeab39bb3e911068a291a13fa59814daae4102b4b1d34dc8f50e5b68cfc055
BLAKE2b-256 checksum
How to use checksums
75bb7535097b4263f0d5d76fb424428baa253360057308a6b02f22adeae2e958
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / langchain_saymaker-0.1.0-py3-none-any.whl

Download URL langchain_saymaker-0.1.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
feab1e57f519493b860ae3a37a04b759a8d0d85a10bb2629f1de20be005cb1b7
BLAKE2b-256 checksum
How to use checksums
d467cabcdf92e210bdb205a642ecccb367e222c64982929f66a058b0ae4ab75f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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