Skip to main content
POST
/
ai-models

Endpoint

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

Headers

Requires header authorization: <your_token>.
authorization:  <your_token>
Content-Type: application/json

Request Body

{
  "model": {
    "name": "GPT-4 Orkeia",
    "sectors": ["engineering", "support"],
    "description": "GPT-4 model for advanced reasoning",
    "enabled": true,
    "provider": "openai",
    "model": "gpt-4-0613",
    "apikey": "sk-ABCD-1234-5678"
  },
  "environment": {
    "company": "acme-inc",
    "sector": "engineering"
  }
}
Provider/API Rules
  • openai, gemini, maritaca, anthropic require apikey.
  • alibaba, google, meta, deepseek, mistral, microsoft do not accept external apikey.

Response (201)

{
  "status": "OK",
  "id": "MODEL_67890"
}

Error Codes

500 — Server Error

{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}

400 — Client Error

{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}