vemb
httpie for embeddings. Embed text, images, audio, video, and PDFs from the command line.
pipx install vemb
export GEMINI_API_KEY=your_key
vemb text "hello world"
Powered by Gemini Embedding 2, the first natively multimodal embedding model. One model, one vector space for everything.
Install
pipx install vemb
# or
pip install vemb
Get a free API key at https://aistudio.google.com/apikey
export GEMINI_API_KEY=your_key
Commands
vemb text "hello world" # embed text
vemb embed photo.jpg # embed any file (auto-detects type)
vemb embed *.jpg --jsonl # batch embed, one JSON per line
vemb image photo.jpg # embed image (PNG, JPEG)
vemb audio clip.mp3 # embed audio (MP3, WAV)
vemb video clip.mp4 # embed video (MP4, MOV)
vemb pdf doc.pdf # embed PDF
vemb similar photo1.jpg photo2.jpg # cosine similarity between two files
vemb search ./photos "sunset at beach" # search a directory
Pipe from stdin:
echo "hello world" | vemb text -
cat document.txt | vemb text -
Output
Default output is JSON:
{
"model": "gemini-embedding-2-preview",
"dimensions": 768,
"values": [0.012, -0.034, ...]
}
Options:
vemb text "hello" --compact # just the vector array
vemb text "hello" --numpy # numpy format
vemb text "hello" --dim 768 # set dimensions (128-3072)
vemb text "hello" --task RETRIEVAL_QUERY # set task type
Batch mode outputs JSONL (one embedding per line):
vemb embed *.jpg --jsonl > embeddings.jsonl
Search
Search indexes a directory and finds files similar to your query:
vemb search ./photos "sunset at beach" --top 5
Embeddings are cached in .vemb/cache.json inside the searched directory. Unchanged files won't be re-embedded on subsequent searches.
Supported formats
| Type | Formats |
|---|---|
| Text | any string, stdin |
| Image | PNG, JPEG |
| Audio | MP3, WAV (up to 80s) |
| Video | MP4, MOV (up to 128s) |
| up to 6 pages |
License
MIT
Metadata
Release files for vemb 0.3.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 |
|---|---|---|---|---|
| vemb-0.3.0.tar.gz | 600.8 kB | With provenance | Details for vemb-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vemb-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for vemb-0.3.0-py3-none-any.whl |
Total release size: 608.5 kB
Release files / vemb-0.3.0.tar.gz
| Download URL | vemb-0.3.0.tar.gz |
|---|---|
| Size | 600.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aede506af5c3bb881e8f4882ce472febda25f6a3b5d3d50729d93a73a80350d3
|
|
BLAKE2b-256 checksum How to use checksums |
e405168d660efbd04de161a6bd9cc1660d02f6ccdd7eebd3a0d0a61907c931bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 19, 2026.
Transparency logRelease files / vemb-0.3.0-py3-none-any.whl
| Download URL | vemb-0.3.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85c2aad6da4bd99c94b268ddb1ec491bf22c381fd47e2850cb454805f79ac35b
|
|
BLAKE2b-256 checksum How to use checksums |
6f7a6f5da33ad0ea3ef2ffc460db60d376609809e53932132eeef58f4541245d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 19, 2026.
Transparency logSecurity for vemb 0.3.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for vemb-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 19, 2026.
Transparency logA 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.