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

# Criar Modelo de IA

> Cria um novo modelo de IA para a empresa.

## Endpoint

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

## Cabeçalhos

Requer cabeçalho `authorization:  <seu_token>`.

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

## Corpo da requisição

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

> **Regras do provider/APIs**
>
> * `openai`, `gemini`, `maritaca`, `anthropic` **exigem** `apikey`.
> * `alibaba`, `google`, `meta`, `deepseek`, `mistral`, `microsoft` **não aceitam** `apikey` externa.

## Resposta (201)

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

## Códigos de erro

### 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
}
```
