{"id":28163,"library":"sambanova","title":"SambaNova Python SDK","description":"The official Python library for the SambaNova API. Provides synchronous and asynchronous clients for chat completions, embeddings, audio, responses, and vision. Actively maintained, version 1.8.2, with frequent releases.","status":"active","version":"1.8.2","language":"python","source_language":"en","source_url":"https://github.com/sambanova/sambanova-python","tags":["sambanova","llm","api-client","openai-compatible"],"install":[{"cmd":"pip install sambanova","lang":"bash","label":"Install with pip"}],"dependencies":[],"imports":[{"wrong":"from sambanova import SambaNovaClient","symbol":"Client","correct":"from sambanova import Client"},{"symbol":"AsyncClient","correct":"from sambanova import AsyncClient"},{"symbol":"AsyncSambaNova","correct":"from sambanova import AsyncSambaNova"}],"quickstart":{"code":"from sambanova import SambaNovaClient\n\nclient = SambaNovaClient(\n    api_key=os.environ.get('SAMBANOVA_API_KEY', ''),\n)\ntry:\n    response = client.chat.completions.create(\n        model='Meta-Llama-3.1-8B-Instruct',\n        messages=[{'role': 'user', 'content': 'Hello'}],\n    )\n    print(response.choices[0].message.content)\nexcept Exception as e:\n    print(f'Error: {e}')","lang":"python","description":"Initialize the sync client with an API key (env var recommended) and call chat completions."},"warnings":[{"fix":"Set os.environ['SAMBANOVA_API_KEY'] or pass api_key argument to SambaNovaClient().","message":"API key must be set either via environment variable SAMBANOVA_API_KEY or passed directly. The library will raise an authentication error if missing.","severity":"breaking","affected_versions":"all"},{"fix":"Refer to SambaNova documentation for exact model IDs.","message":"The model name must match SambaNova's model IDs exactly (e.g., 'Meta-Llama-3.1-8B-Instruct', 'Llama-3.2-11B-Vision-Instruct'). Using a generic OpenAI model name will fail.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade Python to 3.9 or higher.","message":"Support for Python 3.8 was dropped after version 1.5.0. The library now requires Python >=3.9.","severity":"deprecated","affected_versions":">=1.6.0"}],"env_vars":null,"search_vec":"'1.8.2':28 'activ':25 'api':11,35 'api-cli':34 'asynchron':15 'audio':21 'chat':18 'client':16,36 'compat':39 'complet':19 'embed':20 'frequent':30 'librari':7 'llm':33 'maintain':26 'offici':5 'openai':38 'openai-compat':37 'provid':12 'python':2,6 'releas':31 'respons':22 'sambanova':1,10,32 'sdk':3 'synchron':13 'version':27 'vision':24","created_at":"2026-05-09T05:54:03.373048+00:00","updated_at":"2026-05-09T05:54:03.373048+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://sambanova.ai","github":"https://github.com/sambanova/sambanova-python","docs":null,"changelog":null,"pypi":"https://pypi.org/project/sambanova/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["llm-agents","ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}