Skip to main content
GET
Get model

Authorizations

Authorization
string
header
required

Create an API key in the console.

Path Parameters

model_id
string
required

Response

Successful Response

A base model or a trained adapter.

id
string
required
status
string
required
evaluation_key
string
required
name
string
description
string
family
string
size_order
integer
lora
string | null
metrics
Metrics · object | null
max_input_tokens
integer

The most input tokens a request to it may carry, counted as they are billed (usage.input_tokens), images included. A longer request is refused with context_too_long.

max_questions
integer
calibration
string
availability_reason
string

Why it can't answer now: no_engine (its pool has no engine right now), not_served (this server doesn't serve it), or, for an adapter, base_mismatch, engine_unconfigured or engine_changed.

adapter_capacity
AdapterCapacity · object | null
created_at
number
deleted_at
number

When its owner deleted it. A deleted model answers and runs nothing.

discarded_at
number

When a rollback of its family discarded it. A discarded model answers and runs nothing.

on_at
number | null

When its own switch went on: it answers calls to its number, such as router@4. Null while it is off.

keep_warm
boolean

Whether it is kept warm on its own switch. A family's keep warm doesn't set it: see keep_warm_window.

keep_warm_window
KeepWarmWindow · object | null

The hour of keep warm being billed for it, through its family or its own switch, or null when nothing is billed.

keep_warm_stopped_at
number | null

When its own keep warm switched off because the next hour couldn't be reserved, while it stays off. Otherwise null.

used_at
number | null

Its idle clock: the latest of its last production call by an API key that named it, its last evaluation that named it, and when it was switched on.

switches_off_at
number | null

When idling switches it off unless it's used. Null while it is off or kept warm on its own switch, and when idling never switches anything off. A family's is also null while it serves no model.

off_reason
enum<string> | null

Why it is off: owner when it was switched off by hand, idle when nothing used it for too long. Null otherwise.

Available options:
owner,
idle
off_at
number | null

When it went off, with off_reason. Null otherwise.

job_id
string
model_name
string | null
version
integer
parent
string | null
decision_price_nano
string | null

Exact integer string of nano-USD per billed input token from the current billing policy. Zero means free; null means unpriced.

base
string

An adapter's base model id: the base whose prices it pays.

evaluation_set
EvaluationSet · object | null
request_latency
RequestLatency · object