EUrouter

Decisions

Send a question to a decision model through EUrouter and get back a typed answer with a probability for each possible option.

OpenAPI JSON

Submit a System One request

POST
/api/v1/systemone

Send state and typed questions to a decision model and get typed answers with probabilities instead of generated text. Compatible with the TypeSafe SDKs: set their base URL to https://api.eurouter.pro/api and their model (or defaultModel) to a decision model id. Identical to POST /api/alpha/decisions. List decision models with GET /v1/models?output_modalities=decisions.

Authorization

bearerAuth
AuthorizationBearer <token>

API key in format: eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://api.eurouter.pro/api/v1/systemone" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "state": "string",    "questions": {      "property1": {        "type": "noul",        "instructions": "string"      },      "property2": {        "type": "noul",        "instructions": "string"      }    },    "property1": null,    "property2": null  }'
{
  "model": "string",
  "answers": {
    "property1": {
      "type": "noul",
      "noul": 0
    },
    "property2": {
      "type": "noul",
      "noul": 0
    }
  },
  "usage": {
    "input_tokens": -9007199254740991,
    "output_tokens": -9007199254740991,
    "cost": 0,
    "cost_currency": "USD",
    "cost_eur": 0,
    "is_byok": true
  },
  "id": "string",
  "provider": "string"
}

Submit a Decisions request

POST
/api/alpha/decisions

Ask a decision model typed questions about the state you send. Each question is a yes/no (noul), choice, or score question, and each answer comes back under the same key with its probabilities. Input tokens are billed at the model’s price and usage.cost reports the cost of the request; look it up later with GET /v1/generation and the x-request-id response header. List decision models with GET /v1/models?output_modalities=decisions.

Authorization

bearerAuth
AuthorizationBearer <token>

API key in format: eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://api.eurouter.pro/api/alpha/decisions" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "state": "string",    "questions": {      "property1": {        "type": "noul",        "instructions": "string"      },      "property2": {        "type": "noul",        "instructions": "string"      }    },    "property1": null,    "property2": null  }'
{
  "model": "string",
  "answers": {
    "property1": {
      "type": "noul",
      "noul": 0
    },
    "property2": {
      "type": "noul",
      "noul": 0
    }
  },
  "usage": {
    "input_tokens": -9007199254740991,
    "output_tokens": -9007199254740991,
    "cost": 0,
    "cost_currency": "USD",
    "cost_eur": 0,
    "is_byok": true
  },
  "id": "string",
  "provider": "string"
}

Was this page helpful?

Still stuck? Contact support