{"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.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install sambanova"],"cli":null},"imports":["from sambanova import SambaNovaClient","from sambanova import AsyncSambaNovaClient"],"auth":{"required":false,"env_vars":[]},"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.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}