Skip to content

MaaS_Typesafe

Model Overview

Item Value
Model ID (model) jev-1.13.0
Context length 64K tokens total per request
Max input state plus the longest single questions entry must not exceed 32K tokens
Max output No text generation; structured answers + usage
Input modality Text (string, JSON object, text array)
Output modality Structured decisions (Choice / Score / Noul)

Request Protocol

https

Parameter Name Type Required Description
Content-Type string Yes application/json
Authorization string Yes Bearer ${your_AK}

TypeSafe System One

Request URL

POST https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/systemone

Request Body Parameters

Parameter Name Second-level Parameter Third-level Parameter Type Required Description
model - - string Yes Fixed as MaaS_Typesafe_Jev_1.13 (gateway maps to vendor jev-1.13.0 / jev-latest)
state - - string / object / array Yes Content to be evaluated; does not support images/audio/video
questions - - object Yes Question set; keys are caller-defined IDs
[questionId] - object Yes Single question; key name is not used in inference
type
string Yes choice / score / noul
instructions string / object / array Yes
Question description; can use backticks to reference paths within state
criteria object / array Depends on type Choice: options map (up to 255); Score: ordered array (2–10 levels); Noul: optional { "true","false" } semantics

Request Example

curl -X POST 'https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/systemone' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer ${your_AK}' \
  -d '{
    "model": "MaaS_Typesafe_Jev_1.13",
    "state": "Help! My payouts have been failing for 3 days.",
    "questions": {
      "is_urgent": {
        "type": "noul",
        "instructions": "Does this convey urgency?"
      },
      "department": {
        "type": "choice",
        "instructions": "Which team should handle this?",
        "criteria": {
          "billing": "Payments, invoicing, refunds",
          "technical": "Bugs, outages, integrations",
          "sales": "Pricing, upgrades, new accounts"
        }
      },
      "frustration": {
        "type": "score",
        "instructions": "How frustrated is the customer?",
        "criteria": ["Calm", "Frustrated", "Very angry"]
      }
    }
  }'

Response Body Parameters

Parameter Name Second-level Parameter Third-level Parameter Type Description
model - - string Gateway may echo the MaaS name or actual upstream version ID
answers - - object Same keys as questions
[questionId] - object Single question answer
type string noul / choice / score
noul number Noul: 0–1
choice string Choice: selected option
probabilities object Choice/Score: probability distribution
confidence number Choice/Score: 0–1
score number Score: weighted level
legend object Score: level index → description
usage - - object Token usage
input_tokens - integer Input tokens (primary billing basis)
output_tokens - integer Output tokens (currently free from vendor)

Response Example

{
  "model": "MaaS_Typesafe_Jev_1.13",
  "answers": {
    "is_urgent": { "type": "noul", "noul": 0.95 },
    "department": {
      "type": "choice",
      "choice": "billing",
      "probabilities": { "billing": 0.88, "technical": 0.12, "sales": 0.0 },
      "confidence": 0.81
    },
    "frustration": {
      "type": "score",
      "score": 1.05,
      "legend": { "0": "Calm", "1": "Frustrated", "2": "Very angry" },
      "probabilities": { "0": 0.0, "1": 0.95, "2": 0.05 },
      "confidence": 0.92
    }
  },
  "usage": { "input_tokens": 318, "output_tokens": 34 }
}

SDK Usage

from typesafe_sdk import Choice, Noul, TypeSafeClient

with TypeSafeClient(base_url="https://genaiapi.cloudsway.net/v1/ai/{endpointPath}") as client:
    response = client.system_one(
        model="MaaS_Typesafe_Jev_1.13",
        state="Help! My payouts have been failing for 3 days.",
        questions={
            "is_urgent": Noul(instructions="Does this convey urgency?"),
            "department": Choice(
                instructions="Which team should handle this?",
                criteria={"billing": "Payments, invoicing, refunds", "technical": "Bugs, outages"},
            ),
        },
    )