from pathlib import Path
from vlmrun.client import VLMRun
from vlmrun.client.types import PredictionResponse
# Initialize the client
client = VLMRun(api_key="<VLMRUN_API_KEY>", base_url="https://api.vlm.run/v1")
# Process a document
response: PredictionResponse = client.document.generate(
file=Path("path/to/document.pdf"),
model="vlm-1",
domain="document.markdown",
)