Skip to main content
GET
/
models
/
{model_id}
Python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.infercom.ai/v1",
    api_key="your-infercom-api-key",
)

model = client.models.retrieve("MiniMax-M2.7")
print(model.id)
{
  "id": "<string>",
  "object": "model",
  "owned_by": "<string>",
  "context_length": 123,
  "max_completion_tokens": 123,
  "sn_metadata": {
    "region": "EU",
    "is_external": false,
    "architecture": "<string>",
    "provider": "<string>",
    "capabilities": [
      "<string>"
    ],
    "license": "<string>",
    "status": "<string>",
    "hf_link": "<string>",
    "overview": "<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. Use the ?verbose=true query parameter on /v1/models to ensure this field is populated.

pricing
pricing · object

pricing details