GraphCanon updated 3w · GitHub synced 3w
Decision brief
vlmrun-hub offers predefined schemas for VLM tasks like invoice metadata extraction, integrated with popular vision-language models.
Good fit when
- When you need to quickly implement invoice metadata extraction from images using preset schemas and any chosen VLM.
- Suitable for developers working on computer vision projects that require integration of industry-standard document schema understanding.
Avoid when
- Avoid if you are looking for a general-purpose library without predefined domain-specific schemas like invoices or documents.
- Not ideal for projects requiring real-time, low-latency VLM processing as it may introduce additional API call overhead.
Observed Jul 17, 2026 · Source: enrich:decision_facts
Verify the decision
Maintenance and security
Full trust report- Maintenance
- Slowing (227d since push)
- As of 3w
- Provenance
- Not a fork · Organization account
- As of 3w
- Security (OSV)
- No lockfile
- As of 1mo
Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.
Install
pip install vlmrun-hub PyPISimilar tools
Same-category neighbours. No typed graph edges are catalogued for this tool yet.
Evidence and technical details
Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.
Overview
Provides predefined schemas like Invoice for use with various Vision Language Models (VLMs) in tasks such as invoice metadata extraction from images.
Capability facts
- Languages
- python
Source: github.language+pyproject.toml · Jul 31, 2026
Categories
Compatibility
Sourced claims from the README excerpt - not unsourced marketing copy.
Source: README excerpt (regex_v1, Jul 31, 2026)
```python pip install vlmrun-hubSource link
Tags
README
🚀 Getting Started
Let's say we want to extract invoice metadata from an invoice image. You can readily use our Invoice schema we have defined under vlmrun.hub.schemas.document.invoice and use it with any VLM of your choosing.
For a comprehensive walkthrough of available schemas and their usage, check out our Schema Showcase Notebook.
💾 Installation
pip install vlmrun-hub
With VLM Run Python SDK
import os
from PIL import Image
from vlmrun.client import VLMRun
from vlmrun.client.types import PredictionResponse
from vlmrun.common.utils import download_image
VLMRUN_BASE_URL = os.getenv("VLMRUN_BASE_URL", "https://api.vlm.run/v1")
VLMRUN_API_KEY = os.getenv("VLMRUN_API_KEY", None)
client = VLMRun(base_url=VLMRUN_BASE_URL, api_key=VLMRUN_API_KEY)
IMAGE_URL = "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/document.invoice/invoice_1.jpg"
image: Image.Image = download_image(IMAGE_URL)
response: PredictionResponse = client.image.generate(
images=[image],
domain="document.invoice",
)
With Instructor / OpenAI
import instructor
from openai import OpenAI
from vlmrun.hub.schemas.document.invoice import Invoice
IMAGE_URL = "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/document.invoice/invoice_1.jpg"
client = instructor.from_openai(
OpenAI(), mode=instructor.Mode.MD_JSON
)
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[
{ "role": "user", "content": [
{"type": "text", "text": "Extract the invoice in JSON."},
{"type": "image_url", "image_url": {"url": IMAGE_URL}, "detail": "auto"}
]}
],
response_model=Invoice,
temperature=0,
)
JSON Response:
| Image | JSON Output 🔐 |
|
|
With OpenAI Structured Outputs API
import instructor
from openai import OpenAI
from vlmrun.hub.schemas.document.invoice import Invoice
IMAGE_URL
For agents
This page has a .md twin and JSON over the API.