Skip to main content
GET
/
models
/
{model_id}
JavaScript
import SambaNova from 'sambanova';

const client = new SambaNova({
  apiKey: 'My API Key',
});

const modelResponse = await client.models.retrieve('model_id');

console.log(modelResponse.id);
{
  "id": "<string>",
  "object": "model",
  "owned_by": "<string>",
  "context_length": 123,
  "max_completion_tokens": 123,
  "sn_metadata": {
    "region": "EU",
    "architecture": "<string>",
    "category": "<string>",
    "license": "<string>"
  },
  "pricing": {
    "prompt": 123,
    "completion": 123,
    "duration_per_hour": 123
  }
}

Authorizations

Authorization
string
header
required

Infercom API Key

Path Parameters

model_id
string
required

model id to get metadata

Response

Successful Response

model metadata

id
string
required

model id

object
enum<string>
default:model

type

Available options:
model
Allowed value: "model"
owned_by
string

model owner

context_length
integer

model context length

max_completion_tokens
integer

model max completion tokens

sn_metadata
sn metadata · object

Additional metadata provided by SambaNova. For EU-hosted models, includes region, architecture, category, and license information. For models on SambaNova's global infrastructure, this object may be empty. Use the ?verbose=true query parameter on /v1/models to ensure this field is populated.

pricing
pricing · object

pricing details