langchain-veida
A LangChain tool that generates images with no API key and no account.
pip install langchain-veida
from langchain_veida import VeidaImageGenerator
tool = VeidaImageGenerator()
url = tool.invoke({"prompt": "a paper boat on a calm lake at sunrise, soft light", "aspect_ratio": "16:9"})
# https://cdn.veida.ai/uploads/....webp
Hand it to an agent like any other tool:
from langchain.agents import create_agent
agent = create_agent("openai:gpt-5-mini", tools=[VeidaImageGenerator()])
The tool calls the anonymous tier of Veida, so it works on a machine with nothing configured. Measured against the running service: one image per client id (the library mints a new id each call), about seven images a day per machine, 1K output with a watermark. A run takes 40 to 120 seconds.
When the free allowance is spent or the content filter refuses a prompt, the tool returns that as text instead of raising, so the agent can wait or reword rather than crash.
Signing in on veida.ai removes the watermark and opens larger models such as GPT Image 2 for pictures that must contain readable text. Prompt examples live in the prompt library.
Built on the zero-dependency veida client; full docs at
veida.readthedocs.io. MIT.
Metadata
Release files for langchain-veida 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 | |
|---|---|---|---|
| langchain_veida-0.1.0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_veida-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / langchain_veida-0.1.0.tar.gz
| Download URL | langchain_veida-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04085cbb389f796519ced7f7ad7a27a5f670adead89010cf911692e753463f09
|
|
BLAKE2b-256 checksum How to use checksums |
0a1a2b5a956e8a2f44137f76cc06241c140d48c641634722979dc326d8793519
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / langchain_veida-0.1.0-py3-none-any.whl
| Download URL | langchain_veida-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f56d5d82c9aba071633f4e0d98024988441c909233c9cc848481cd489a81c37
|
|
BLAKE2b-256 checksum How to use checksums |
a3da1751c815e052791ea3ba3fe39a973ca839b3b2f8d87bde75cffd1c5ceb27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|