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": {},
  "pricing": {
    "prompt": 123,
    "completion": 123,
    "duration_per_hour": 123
  }
}

Authorizations

Authorization
string
header
required

SambaNova 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:
TitleConst
Objectmodel
owned_by
string

model owner

context_length
integer

model context length

max_completion_tokens
integer

model max completion tokens

sn_metadata
object

additional sn metadata

pricing
object

pricing details

I