{"id":27527,"library":"vlmrun","title":"VLM Run Python SDK","description":"Official Python SDK for VLM Run, a platform for running vision-language models. Current version 0.6.2, requires Python >=3.9. Active development with frequent releases.","status":"active","version":"0.6.2","language":"python","source_language":"en","source_url":"https://github.com/vlmrun/vlmrun-python","tags":["sdk","vision-language","ai","llm","vlm-run"],"install":[{"cmd":"pip install vlmrun","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Main client class.","symbol":"VLM","correct":"from vlmrun import VLM"},{"note":"Submodule for request/response models.","symbol":"models","correct":"from vlmrun import models"}],"quickstart":{"code":"import os\nfrom vlmrun import VLM\n\nclient = VLM(api_key=os.environ.get('VLM_RUN_API_KEY', ''))\nresponse = client.infer(\n    model=\"gpt-4o\",\n    prompt=\"Describe this image\",\n    image_url=\"https://example.com/image.jpg\"\n)\nprint(response)","lang":"python","description":"Initialize client with API key from environment variable and run inference."},"warnings":[{"fix":"Set VLM_RUN_API_KEY environment variable or pass api_key parameter.","message":"API key required; must be set via environment variable VLM_RUN_API_KEY or passed directly to constructor. Missing key leads to authentication error.","severity":"gotcha","affected_versions":"all"},{"fix":"Use correct model identifier as per docs.","message":"The 'infer' method requires both 'model' and 'prompt' parameters; model string must match available models exactly (e.g., 'gpt-4o', 'claude-3'). Case-sensitive.","severity":"gotcha","affected_versions":"all"},{"fix":"Remove base_url usage; use environment or default endpoint.","message":"Version 0.5.0 changed the client initialization signature. Old pattern 'VLM(api_key=..., base_url=...)' still works but base_url is deprecated.","severity":"deprecated","affected_versions":">=0.5.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Set VLM_RUN_API_KEY environment variable or pass api_key='sk-...' to VLM constructor.","cause":"API key not provided.","error":"AuthenticationError: No API key provided. Please set VLM_RUN_API_KEY environment variable or pass 'api_key' parameter."},{"fix":"Use an exact model identifier from the list of available models.","cause":"Using incorrect model name.","error":"ModelNotFoundError: Model 'gpt-4' not found. Available models: ['gpt-4o', 'claude-3-opus', 'claude-3-sonnet']"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}