SambaNova
Call open models on SambaNova SambaCloud through OpenAI Chat Completions, Responses or Anthropic Messages, stay inside tier limits and spend, connect it to LiteLLM and coding tools, and revoke keys when finished.
Scope: SambaCloud (the hosted API at https://api.sambanova.ai/v1) and, briefly, the fact that SambaStack (SambaNova's dedicated or on-prem deployment) uses admin-provided URLs and keys. Out of scope: choosing a provider (cloud-llms), gateway design (llm-gateway, litellm), self-hosting on GPUs (self-hosted-llms, vllm). Naming: the product is now SambaCloud (earlier "SambaNova Cloud"); the console is cloud.sambanova.ai.
Work through the steps in order. Load a reference only when a step names it. Models turn over quickly, so list them live.
Discover first
Read-only. Nothing here prints a key.
env | cut -d= -f1 | grep -i -E '^(SAMBANOVA|ANTHROPIC|OPENAI|LITELLM)' || echo "no related env vars"
command -v curl jq python3 node
# Models this key can use (ids only)
curl -sS https://api.sambanova.ai/v1/models -H "Authorization: Bearer $SAMBANOVA_API_KEY" | jq -r '.data[].id'
The /v1/models response also carries per-model metadata (the caching page says pricing is available there). Inspect it with jq '.data[0]' before parsing.
Decision flow
- No key: create one in the SambaCloud portal, API section (
references/setup-and-auth.md). Keys are shown once.
- Pick a model: Production for real traffic, Preview for experiments only (limited capacity, removable at short notice) (
references/models-and-features.md).
- Calling: OpenAI SDK (
/v1/chat/completions, /v1/responses) or Anthropic SDK (/v1/messages) (references/api-and-compat.md).
- Hitting 429 or 410: tier limit, queue full or deprecated model (
references/limits-and-quotas.md, references/troubleshooting.md).
- Through a gateway:
sambanova/<model-id> in LiteLLM (references/litellm-and-clients.md).
- Need higher limits, retired models or private capacity: contact SambaNova sales, SambaStack is the route.
- Finished: delete keys (
references/teardown.md).
Rules
- Ask before billable or account changes. Linking a payment method moves the account from Free to Developer tier; creating keys; contacting sales.
- Secrets never touch output. Keys live in
SAMBANOVA_API_KEY or a 0600 file. Keys cannot be viewed again after creation, so store them right away. Do not echo them.
- Pin exact model IDs and read the deprecation page. Production models get at least two to three weeks notice, Preview models may be removed on short notice, and a retired model returns
410 model_deprecated.
- Budget first. Developer tier is capped by requests per minute and day and by a daily token ceiling. Spend alerts or caps are not documented on the pages read; put budgets in your gateway.
- Keep one key per app or environment (up to 25 keys per user) so each can be revoked alone.
- Always tear down. Delete unused keys and remove them from gateways and CI.
Workflows
1. Account and key
2. First call
3. Connect to LiteLLM, OpenAI clients and coding tools
4. Limits and spend
5. Update models
6. Tear down
7. Troubleshoot
Reference index
references/setup-and-auth.md: SambaCloud versus SambaStack, API keys, tiers, secrets handling.
references/api-and-compat.md: base URLs, OpenAI, Responses and Anthropic compatibility, unsupported params, error format.
references/models-and-features.md: Production and Preview models, deprecation record, caching, features.
references/limits-and-quotas.md: tiers, RPM, RPD, TPD, headers.
references/litellm-and-clients.md: LiteLLM, OpenAI SDK, Claude Code.
references/teardown.md: key revocation and cleanup.
references/troubleshooting.md: error codes and fixes.
Companion skills
cloud-llms: compare providers and hybrid routing. Install: npx skills add ScaleDockHQ/llm-skills --skill cloud-llms.
llm-gateway: one endpoint in front of SambaNova and others. Install: npx skills add ScaleDockHQ/llm-skills --skill llm-gateway.
litellm: proxy configuration in depth. Install: npx skills add ScaleDockHQ/llm-skills --skill litellm.
cerebras, groq, together-ai: other fast managed APIs. Install: npx skills add ScaleDockHQ/llm-skills --skill cerebras.
llm-evals: re-check quality after a model swap. Install: npx skills add ScaleDockHQ/llm-skills --skill llm-evals.
llm-observability: cost and trace tracking. Install: npx skills add ScaleDockHQ/llm-skills --skill llm-observability.
self-hosted-llms: run open models on owned GPUs. Install: npx skills add ScaleDockHQ/llm-skills --skill self-hosted-llms.
1---2name: sambanova3description: Use SambaNova SambaCloud (api.sambanova.ai) for fast OpenAI- and Anthropic-compatible open-model APIs, with API keys, model listing, rate-limit tiers, prompt caching, deprecations, LiteLLM, Claude Code and OpenAI client wiring, and teardown. Use when the user mentions SambaNova, SambaNova Cloud, SambaCloud, SambaStack, SAMBANOVA_API_KEY, cloud.sambanova.ai, RDU inference, `sambanova/` LiteLLM models, 429 queue_full or insufficient_quota, or 410 model_deprecated. For provider-neutral choices use cloud-llms; for gateways use llm-gateway or litellm; for owned GPUs use self-hosted-llms.4license: MIT5compatibility: Any OS with bash, curl and jq; Python or Node SDKs are optional. Needs a SambaCloud account and an API key in an environment variable or a 0600 file. SambaStack is private infrastructure set up with SambaNova. Ask the user before linking a payment method or creating keys.6metadata:7 source: https://skillmd.com/skills/scaledockhq/sambanova8 author: ScaleDockHQ9 version: "0.1.0"10---1112# SambaNova1314Call open models on SambaNova SambaCloud through OpenAI Chat Completions, Responses or Anthropic Messages, stay inside tier limits and spend, connect it to LiteLLM and coding tools, and revoke keys when finished.1516**Scope:** SambaCloud (the hosted API at `https://api.sambanova.ai/v1`) and, briefly, the fact that SambaStack (SambaNova's dedicated or on-prem deployment) uses admin-provided URLs and keys. Out of scope: choosing a provider (`cloud-llms`), gateway design (`llm-gateway`, `litellm`), self-hosting on GPUs (`self-hosted-llms`, `vllm`). Naming: the product is now SambaCloud (earlier "SambaNova Cloud"); the console is `cloud.sambanova.ai`.1718Work through the steps in order. Load a reference only when a step names it. Models turn over quickly, so list them live.1920## Discover first2122Read-only. Nothing here prints a key.2324```bash25env | cut -d= -f1 | grep -i -E '^(SAMBANOVA|ANTHROPIC|OPENAI|LITELLM)' || echo "no related env vars"26command -v curl jq python3 node2728# Models this key can use (ids only)29curl -sS https://api.sambanova.ai/v1/models -H "Authorization: Bearer $SAMBANOVA_API_KEY" | jq -r '.data[].id'30```3132The `/v1/models` response also carries per-model metadata (the caching page says pricing is available there). Inspect it with `jq '.data[0]'` before parsing.3334## Decision flow35361. No key: create one in the SambaCloud portal, API section (`references/setup-and-auth.md`). Keys are shown once.372. Pick a model: Production for real traffic, Preview for experiments only (limited capacity, removable at short notice) (`references/models-and-features.md`).383. Calling: OpenAI SDK (`/v1/chat/completions`, `/v1/responses`) or Anthropic SDK (`/v1/messages`) (`references/api-and-compat.md`).394. Hitting 429 or 410: tier limit, queue full or deprecated model (`references/limits-and-quotas.md`, `references/troubleshooting.md`).405. Through a gateway: `sambanova/<model-id>` in LiteLLM (`references/litellm-and-clients.md`).416. Need higher limits, retired models or private capacity: contact SambaNova sales, SambaStack is the route.427. Finished: delete keys (`references/teardown.md`).4344## Rules4546- **Ask before billable or account changes.** Linking a payment method moves the account from Free to Developer tier; creating keys; contacting sales.47- **Secrets never touch output.** Keys live in `SAMBANOVA_API_KEY` or a `0600` file. Keys cannot be viewed again after creation, so store them right away. Do not echo them.48- **Pin exact model IDs and read the deprecation page.** Production models get at least two to three weeks notice, Preview models may be removed on short notice, and a retired model returns `410 model_deprecated`.49- **Budget first.** Developer tier is capped by requests per minute and day and by a daily token ceiling. Spend alerts or caps are not documented on the pages read; put budgets in your gateway.50- **Keep one key per app or environment** (up to 25 keys per user) so each can be revoked alone.51- **Always tear down.** Delete unused keys and remove them from gateways and CI.5253## Workflows5455### 1. Account and key5657- [ ] Sign in at `cloud.sambanova.ai`, open the API section, generate a key, save it immediately -> `references/setup-and-auth.md`58- [ ] Store: `umask 077; read -rs K; printf '%s' "$K" > ~/.config/sambanova.key; unset K`59- [ ] Verify with `GET /v1/models` (Discover first).6061### 2. First call6263- [ ] Chat Completions, Responses or Messages example -> `references/api-and-compat.md`64- [ ] Reasoning, tools, vision, structured output, caching -> `references/models-and-features.md`6566### 3. Connect to LiteLLM, OpenAI clients and coding tools6768- [ ] `model: sambanova/<id>`, `api_key: os.environ/SAMBANOVA_API_KEY` -> `references/litellm-and-clients.md`69- [ ] Anthropic-protocol tools (Claude Code) use the Messages endpoint; see the same file.7071### 4. Limits and spend7273- [ ] Read tier limits and response headers -> `references/limits-and-quotas.md`74- [ ] Add gateway-side RPM and token caps below the SambaNova limits (`llm-gateway`).7576### 5. Update models7778- [ ] Check `https://docs.sambanova.ai/docs/en/models/deprecations.md`, swap retired IDs, rerun evals (`llm-evals`).7980### 6. Tear down8182- [ ] Delete keys in the portal, drop them from configs -> `references/teardown.md`83- [ ] Verify the old key returns `401`.8485### 7. Troubleshoot8687- [ ] Use the error code table -> `references/troubleshooting.md`8889## Reference index9091- `references/setup-and-auth.md`: SambaCloud versus SambaStack, API keys, tiers, secrets handling.92- `references/api-and-compat.md`: base URLs, OpenAI, Responses and Anthropic compatibility, unsupported params, error format.93- `references/models-and-features.md`: Production and Preview models, deprecation record, caching, features.94- `references/limits-and-quotas.md`: tiers, RPM, RPD, TPD, headers.95- `references/litellm-and-clients.md`: LiteLLM, OpenAI SDK, Claude Code.96- `references/teardown.md`: key revocation and cleanup.97- `references/troubleshooting.md`: error codes and fixes.9899## Companion skills100101- `cloud-llms`: compare providers and hybrid routing. Install: `npx skills add ScaleDockHQ/llm-skills --skill cloud-llms`.102- `llm-gateway`: one endpoint in front of SambaNova and others. Install: `npx skills add ScaleDockHQ/llm-skills --skill llm-gateway`.103- `litellm`: proxy configuration in depth. Install: `npx skills add ScaleDockHQ/llm-skills --skill litellm`.104- `cerebras`, `groq`, `together-ai`: other fast managed APIs. Install: `npx skills add ScaleDockHQ/llm-skills --skill cerebras`.105- `llm-evals`: re-check quality after a model swap. Install: `npx skills add ScaleDockHQ/llm-skills --skill llm-evals`.106- `llm-observability`: cost and trace tracking. Install: `npx skills add ScaleDockHQ/llm-skills --skill llm-observability`.107- `self-hosted-llms`: run open models on owned GPUs. Install: `npx skills add ScaleDockHQ/llm-skills --skill self-hosted-llms`.