> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orkeia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Detail Model by ID

> Returns a specific model from the company/environment.

## Endpoint

`GET https://gateway.orkeia.ai/ai-models/{id}`

## Headers

Requires header `authorization:  <your_token>`.

```http theme={null}
authorization:  <your_token>
Content-Type: application/json
```

## Route Parameters

* `id` — Model ID (e.g., `MODEL_12345`)

## Request Body

```json theme={null}
{
  "environment": {
    "company": "acme-inc",
    "sector": "support"
  }
}
```

## Response (200)

> If there is an `apikey`, it is **masked** for your privacy and security (e.g., `sk-ABCD****-****`).

```json theme={null}
{
"status": "ok", 
"data": {
  "id": "MODEL_12345",
  "name": "GPT-4 Orkeia",
  "sectors": ["engineering", "support"],
  "description": "Advanced reasoning model",
  "enabled": true,
  "provider": "openai",
  "model": "gpt-4-0613",
  "apikey": "sk-ABCD****-****"
}
```

## Error Codes

### 500 — Server Error

```json theme={null}
{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}
```

### 400 — Client Error

```json theme={null}
{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}
```
