English
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 } }
SambaNova API Key
model id to get metadata
Successful Response
model metadata
model id
type
model
"model"
model owner
model context length
model max completion tokens
additional sn metadata
pricing details
Show child attributes
price per prompt token in USD
price per completion token in USD
price per input hour