> ## 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.

> Crea un nuevo modelo de IA para la empresa.

# Models create

## Endpoint

`POST https://gateway.orkeia.ai/ai-models`

## Encabezados

Requiere el encabezado `authorization:  <tu_token>`.

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

## Cuerpo de la solicitud

```json theme={null}
{
  "model": {
    "name": "GPT-4 Orkeia",
    "sectors": ["engineering", "support"],
    "description": "Modelo GPT-4 para razonamiento avanzado",
    "enabled": true,
    "provider": "openai",
    "model": "gpt-4-0613",
    "apikey": "sk-ABCD-1234-5678"
  },
  "environment": {
    "company": "acme-inc",
    "sector": "engineering"
  }
}
```

> **Reglas del proveedor/APIs**
>
> * `openai`, `gemini`, `maritaca`, `anthropic` **requieren** `apikey`.
> * `alibaba`, `google`, `meta`, `deepseek`, `mistral`, `microsoft` **no aceptan** `apikey` externa.

## Respuesta (201)

```json theme={null}
{
  "status": "OK",
  "id": "MODEL_67890"
}
```

## Códigos de error

### 500 — Error del Servidor

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

### 400 — Error del Cliente

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