> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.mixlayer.com/api-reference/platform-api/organizations/list-org-models/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.mixlayer.com/_mcp/server. # List models available to an organization GET https://api.mixlayer.com/v1/organizations/{org_id}/models When authenticated with an API key, this operation requires `api-read`. Reference: https://docs.mixlayer.com/api-reference/platform-api/organizations/list-org-models ## Authentication - `Authorization` header (bearer token, required) — Console user session or Mixlayer API key supplied as a Bearer token. ## Request ### Path parameters - `org_id` (string, required) — Organization ID ## Response ### 200 Organization model catalog - `data` (list of ApiDataResponseVecOrgModelResponseDataItems, required) — Response payload. ## Errors ### 401 Unauthorized Error Authentication is missing or invalid. - `error` (ApiErrorBody, required) — Structured error details. ### 403 Forbidden Error The authenticated principal cannot perform this operation. - `error` (ApiErrorBody, required) — Structured error details. ### 404 Not Found Error The requested resource is not visible to the authenticated principal. - `error` (ApiErrorBody, required) — Structured error details. ### 500 Internal Server Error An unexpected server or database error occurred. - `error` (ApiErrorBody, required) — Structured error details. ## Types ### ApiDataResponseVecOrgModelResponseDataItems Availability, capabilities, and pricing for one model. - `default_settings` (map from string to any, required) — Default inference settings for the model. - `input_modalities` (list of string, required) — Input types accepted by the model, such as `text` or `image`. - `max_context_len` (integer, required) — Maximum supported context length in tokens. - `model_kind` (enum, required) — Model capability category. - Allowed values: `generation`, `embedding` - `model_sku` (string, required) — Stable model SKU used in inference requests. - `output_modalities` (list of string, required) — Output types produced by the model, such as `text`. - `price_m_input_cache_read_tokens_usd` (double, required) — Cache-read input price in US dollars per million tokens. - `price_m_input_tokens_usd` (double, required) — Input price in US dollars per million tokens. - `price_m_output_tokens_usd` (double, required) — Output price in US dollars per million tokens. - `price_per_sec_usd` (double, required) — Usage price in US dollars per model execution second. - `public` (boolean, required) — Whether the model is publicly listed. - `quantization` (string, required) — Model weight quantization format. - `status` (enum, required) — Effective availability of the model for the organization. - Allowed values: `payment_method_required`, `prepaid_credits_required`, `spend_limit_exceeded`, `billing_setup_failed`, `access_pending`, `access_required`, `active`, `disabled` - `tools_supported` (boolean, required) — Whether the model supports tool calling. - `access` (enum, optional, nullable) — Organization access decision, or null when no request exists. - Allowed values: `pending`, `grant`, `deny` - `developer` (string, optional, nullable) — Model developer, when available. ### ApiErrorBody Structured error details returned by the platform API. - `message` (string, required) — Human-readable error message. - `code` (string, optional, nullable) — Stable machine-readable error code, when available. - `details` (any, optional) — Error-specific structured context, when available. ## Examples **Response** ```json { "data": [ { "default_settings": {}, "input_modalities": [ "string" ], "max_context_len": 1, "model_kind": "generation", "model_sku": "string", "output_modalities": [ "string" ], "price_m_input_cache_read_tokens_usd": 1.1, "price_m_input_tokens_usd": 1.1, "price_m_output_tokens_usd": 1.1, "price_per_sec_usd": 1.1, "public": true, "quantization": "string", "status": "payment_method_required", "tools_supported": true, "access": null, "developer": "string" } ] } ``` **SDK Code** ```python import requests url = "https://api.mixlayer.com/v1/organizations/org_id/models" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.mixlayer.com/v1/organizations/org_id/models'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.mixlayer.com/v1/organizations/org_id/models" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://api.mixlayer.com/v1/organizations/org_id/models") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.mixlayer.com/v1/organizations/org_id/models") .header("Authorization", "Bearer ") .asString(); ``` ```php request('GET', 'https://api.mixlayer.com/v1/organizations/org_id/models', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ```