OhMyGPT

Evaluate with System One

POST
/v1/systemone

TypeSafe System One answers named questions about state with typed answers and calibrated confidence. Requests and responses follow TypeSafe's format. Send JSON, or multipart/form-data with the JSON in a first part named request followed by one part per image. Request headers that start with TypeSafe-Danger-Zone- reach the model as sent. Billing follows the token usage the model reports, at the prices in GET /v1/models.

Authorization

ApiKeyAuth
headerAuthorization<token>

Header Parameters

TypeSafe-Danger-Zone-Images?"true"

Set to true to use assets or box questions.

Value in"true"
TypeSafe-Danger-Zone-Long-Context?"true"

Set to true to use long context.

Value in"true"

Request Body

  1. body

Content and named questions to evaluate together using a TypeSafe model.

assets?

Media assets keyed by an opaque placeholder (recommend a per-image UUID). Each placeholder, wherever it appears as or inside a string in state, question instructions, or criteria, is replaced with the asset. Image assets require a vision-language model.

Properties1 <= properties
model*Model

Name or alias of the model to use. Available names are returned by GET /v1/models.

questions*

Questions to ask about the content, each with a name you choose. The response uses those names to identify the answers.

Properties1 <= properties
state*||array<unknown>

The content all questions in this request refer to.

Response Body

Successful response

application/json
  1. response

Answers grouped by question name, with the model used and token usage.

answers*

Answers keyed by the question names supplied in the request. Each answer's type matches its question's type.

Properties1 <= properties
model*Model

Name of the model that answered the questions. May differ from the alias supplied in the request.

usage*

Input and output token counts for this evaluation.

Example Request
curl -X POST 'https://api.ohmygpt.com/v1/systemone' \  -H 'Content-Type: application/json' \  -d '{  "model": "jev-latest",  "questions": {    "billing": {      "instructions": "Is this message about billing?",      "type": "noul"    }  },  "state": "I was charged twice. Please help."}'
Example Response
{  "answers": {    "billing": {      "noul": 0.98,      "type": "noul"    }  },  "model": "jev-latest",  "usage": {    "input_tokens": 120,    "output_tokens": 12  }}

Was this page helpful?

Still stuck? Live chat · [email protected] · Telegram group