Models
Session-authenticated APIs used by the Manage Models UI for the active database configuration.
Operations
Section titled “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
Section titled “Examples”curl -X GET "/api/openground/models" \ -H "Cookie: <signed-in-session-cookie>"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"] } }'curl -X DELETE "/api/openground/models?model_id=gpt-4o-custom&provider=openai" \ -H "Cookie: <signed-in-session-cookie>"