Registry / llm-agents / sambanova

sambanova

JSON →
library1.8.2pypypi✓ verified 79d ago

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.

pip install sambanova
INSTALL
IMPORT
SIG · SAMBANOVA
S
sambanova
llm-agentspythonv1.8.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
from sambanova import Client
from sambanova import SambaNovaClient
AsyncClient
from sambanova import AsyncClient
AsyncSambaNova
from sambanova import AsyncSambaNova

Initialize the sync client with an API key (env var recommended) and call chat completions.

from sambanova import SambaNovaClient client = SambaNovaClient( api_key=os.environ.get('SAMBANOVA_API_KEY', ''), ) try: response = client.chat.completions.create( model='Meta-Llama-3.1-8B-Instruct', messages=[{'role': 'user', 'content': 'Hello'}], ) print(response.choices[0].message.content) except Exception as e: print(f'Error: {e}')
Debug
Known issues
breakingAPI key must be set either via environment variable SAMBANOVA_API_KEY or passed directly. The library will raise an authentication error if missing.
fix
Set os.environ['SAMBANOVA_API_KEY'] or pass api_key argument to SambaNovaClient().
affects: all
gotchaThe 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.
fix
Refer to SambaNova documentation for exact model IDs.
affects: all
deprecatedSupport for Python 3.8 was dropped after version 1.5.0. The library now requires Python >=3.9.
fix
Upgrade Python to 3.9 or higher.
affects: >=1.6.0
Upgrade
Version history
1.8.2latest on PyPI · released May 7, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
OpenAI (training)
1
Resources
sambanova — pip install sambanova · libregistry