Skip to content

Models

Session-authenticated APIs used by the Manage Models UI for the active database configuration.

Operations

MethodPathPurpose
GET/api/openground/modelsList models (optional ?provider=)
POST/api/openground/modelsCreate or update a model
DELETE/api/openground/models?model_id=&provider=Delete a model

Examples

bash
curl -X GET "/api/openground/models" \
  -H "Cookie: <signed-in-session-cookie>"
bash
curl -X POST "/api/openground/models" \
  -H "Content-Type: application/json" \
  -H "Cookie: <signed-in-session-cookie>" \
  -d '{
    "provider": "openai",
    "model": {
      "id": "gpt-4o-custom",
      "model_id": "gpt-4o-custom",
      "displayName": "GPT-4o Custom",
      "modelType": "chat",
      "contextWindow": 128000,
      "inputPricePerMToken": 2.5,
      "outputPricePerMToken": 10,
      "capabilities": ["function-calling"]
    }
  }'
bash
curl -X DELETE "/api/openground/models?model_id=gpt-4o-custom&provider=openai" \
  -H "Cookie: <signed-in-session-cookie>"

INFO

These routes require a signed-in ARMS browser session. They are not the same as API-key authenticated SDK endpoints such as Vault.

Copyright © 2026 elsai foundry.