kavel-haystack
A Haystack component that generates and edits images with Kavel AI, with no API key needed to start.
pip install kavel-haystack
from haystack import Pipeline
from haystack.components.builders import PromptBuilder
from kavel_haystack import KavelImageGenerator
pipe = Pipeline()
pipe.add_component("prompt", PromptBuilder(template="A cover image for an article about {{topic}}, editorial photo, soft light"))
pipe.add_component("image", KavelImageGenerator(aspect_ratio="16:9"))
pipe.connect("prompt.prompt", "image.prompt")
pipe.run({"prompt": {"topic": "sourdough baking"}})["image"]["images"]
# ['https://cdn.kavel.ai/uploads/kie/image/....webp']
Without a key it runs on Kavel's free anonymous tier. On 2026-10-02 a fresh client id was granted
5 credits and one generated image spent all five; free output is 1K and watermarked. Set
KAVEL_API_KEY (or pass api_key=Secret.from_token(...)) with a key from
kavel.ai/settings/apikeys
to run on your account, edit images with image_url=, and pick a model with model=.
MIT licensed.
Metadata
Release files for kavel-haystack 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 | |
|---|---|---|---|
| kavel_haystack-0.1.0.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kavel_haystack-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / kavel_haystack-0.1.0.tar.gz
| Download URL | kavel_haystack-0.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20df752e6be56f9f0dc24f8563642d87875b6b0f22bdfb7660ab30614ecf00eb
|
|
BLAKE2b-256 checksum How to use checksums |
840c7a2a5ea3d2b6570ef60343976e018e32c0b90d94ee1a483c19685f995d65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Release files / kavel_haystack-0.1.0-py3-none-any.whl
| Download URL | kavel_haystack-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b27359a4c8235777da74443f98376657864edc54a657751d9a874398498c8568
|
|
BLAKE2b-256 checksum How to use checksums |
a60f45087b7546b5b679d8c34829033474aa6671aafd56ba0d2f9cb397bd0607
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|