Skip to content
EASYJEV

HTTP & curl

Call POST /v1/systemone directly over HTTP from any language: curl, Python requests, Node fetch and Go examples with the exact JSON request/response shapes.

The endpoint

Every judgment is one POST to https://api.easyjev.online/v1/systemone with a Bearer sk- key. Auth header: Authorization: Bearer sk-.... The JSON body needs model, state and questions — unknown fields pass through to the upstream unchanged.

Examples in four languages

curl
curl -X POST "https://api.easyjev.online/v1/systemone" \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "typesafe/jev-latest",
    "state": "User asks: can I get a refund for order #1024?",
    "questions": {
      "refund": {"type": "noul", "instructions": "Is this a refund request?"}
    }
  }'
Python · requests
import requests

resp = requests.post(
    "https://api.easyjev.online/v1/systemone",
    headers={"Authorization": "Bearer sk-your-key"},
    json={
        "model": "typesafe/jev-latest",
        "state": "User asks: can I get a refund for order #1024?",
        "questions": {
            "refund": {"type": "noul", "instructions": "Is this a refund request?"}
        },
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json()["answers"]["refund"]["noul"])  # e.g. 0.97
JavaScript · fetch
const resp = await fetch("https://api.easyjev.online/v1/systemone", {
  method: "POST",
  headers: {
    Authorization: "Bearer sk-your-key",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "typesafe/jev-latest",
    state: "User asks: can I get a refund for order #1024?",
    questions: {
      refund: { type: "noul", instructions: "Is this a refund request?" },
    },
  }),
});

const data = await resp.json();
console.log(data.answers.refund.noul); // e.g. 0.97
Go · net/http
package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"net/http"
)

func main() {
	payload, _ := json.Marshal(map[string]any{
		"model": "typesafe/jev-latest",
		"state": "User asks: can I get a refund for order #1024?",
		"questions": map[string]any{
			"refund": map[string]any{
				"type":         "noul",
				"instructions": "Is this a refund request?",
			},
		},
	})
	req, _ := http.NewRequest("POST", "https://api.easyjev.online/v1/systemone", bytes.NewReader(payload))
	req.Header.Set("Authorization", "Bearer sk-your-key")
	req.Header.Set("Content-Type", "application/json")

	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	var out struct {
		Answers map[string]struct {
			Noul float64 `json:"noul"`
		} `json:"answers"`
	}
	json.NewDecoder(resp.Body).Decode(&out)
	fmt.Println(out.Answers["refund"].Noul) // e.g. 0.97
}

Reading the response

Answers arrive keyed by question id under answers, each with the question type echoed plus type-specific fields (noul probability, choice + probabilities, interpolated score, confidence). Billing meters appear under usage. See the full reference for every field.

JSON · 200 OK
{
  "model": "typesafe/jev-latest",
  "answers": {
    "refund": {
      "type": "noul",
      "noul": 0.97,
      "confidence": 0.93
    }
  },
  "usage": {"input_tokens": 1234, "output_tokens": 0}
}