Appearance
Models
Session-authenticated APIs used by the Manage Models UI for the active database configuration.
Operations
| Method | Path | Purpose |
|---|---|---|
GET | /api/openground/models | List models (optional ?provider=) |
POST | /api/openground/models | Create 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.