/compute/llmsList LLM Models
Returns the curated library of LLM models available to the project; every model is available on every plan.
Each entry includes model identifier, provider class, modality (text-completion, text-completion + tool-use, or embeddings), and price.
Requires any Forge, Studio, or Workspace cohort role.
| projectSlug * | path | The project's slug: the path segment after It is unique within the org. |
| HTTP | K9O Code | Description |
|---|---|---|
| 200 | Success | |
| 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 list LLM models for this project. |
| data * | object[] | Every model in the library, platform-run models first. |
| 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.list()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"
}
]
}