Wizard

Wizard Chat

post

Process chat with strongly-typed validation and auto field conversion.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

Chat request with automatic field conversion.

messagestringRequired
project_idstringRequiredExample: proj_abc123456
modestring · enumRequiredPossible values:
modelstring · enumOptionalDefault: gpt-5-2025-08-07Possible values:
Responses
200

Successful Response

application/json
post
/v2/wizard/chat
POST /v2/wizard/chat HTTP/1.1
Host: api.mithril.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 137

{
  "message": "text",
  "project_id": "proj_abc123456",
  "mode": "compute",
  "model": "gpt-5-2025-08-07",
  "history": [
    {
      "role": "user",
      "content": "text"
    }
  ]
}
{
  "content": "text",
  "recommendations": [
    {
      "type": "spot",
      "id": "text",
      "reasoning": "text",
      "region": "text",
      "price": 1,
      "quantity": 1,
      "instanceType": "text",
      "duration": 1,
      "config": {
        "instanceTypeId": "text",
        "clusterId": "text",
        "regionId": "text",
        "limitPrice": 1,
        "startTime": "text",
        "endTime": "text"
      }
    }
  ]
}

Last updated