/compute/llms/{modelId}Get LLM Model
Retrieves metadata for a single LLM model by its identifier, including name, provider class, modality, token cost (per million input and output tokens), and supported parameters.
Requires any Forge, Studio, or Workspace cohort role.
| modelId * | path | The model's id, as the model list returns it. |
| projectSlug * | path | The project's slug: the path segment after It is unique within the org. |
| HTTP | K9O Code | Description |
|---|---|---|
| 200 | Success | |
| 400 | K9O_MODEL_NOT_DECLARED | The requested model ID is not in the supported model catalogue. |
| 401 | K9O_INVALID_CREDENTIALS | The request credentials are missing or invalid. |
| 401 | K9O_SESSION_EXPIRED | Your session has expired; sign in again to continue. |
| 403 | K9O_ACCESS_DENIED | Your role does not grant access to read model metadata for this project. |
| data * | object | A model in the project's model library. |
| id * | string | The model's id. Pass it as |
| provider * | "self_hosted" | "anthropic" | "openai" | Who serves the model. |
| providerClass * | "platform" | "tenant_key" | platform: run and billed by the platform. tenant_key: called with the project's own provider key and billed by that provider. |
| modality * | "text_completion" | "text_completion_with_tools" | "embeddings" | What the model does. |
| invocable * | boolean | Whether this model can be invoked through the platform. |
| reason | "tenant_key_only" | Present only when invocable is false. |
| priceIn * | any | US dollars per 1M input tokens (embedding tokens for an embeddings model). Null for a tenant_key model or when no rate is set. |
| One of: number | ||
| or: null | ||
| priceOut * | any | US dollars per 1M output tokens. Null for an embeddings model, a tenant_key model, or when no rate is set. |
| One of: number | ||
| or: null | ||
| priceUnit * | "usd_per_million_tokens" | The unit of |
| meta * | any | |
// const k9o = new K9o({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })
const { data } = await k9o.compute.llms.read('mistral-7b')Showing example in TypeScript
{
"data": {
"id": "string",
"provider": "self_hosted",
"providerClass": "platform",
"modality": "text_completion",
"invocable": false,
"reason": "tenant_key_only",
"priceIn": 0,
"priceOut": 0,
"priceUnit": "usd_per_million_tokens"
}
}