OpenAny
Get API keyAPI Key
APIAI Generation

TypeSafe logo
TypeSafe Text Decisions API

Get TypeSafe Text Decisions data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Typesafe, pass parameters such as model, questions, state, and retrieve structured data including returned noul field, returned type field, returned model field, returned input tokens field, and returned output tokens field for application integration and result review, and integration reference.

Selected price
$0.042 / million input tokensPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

TypeSafe Text Decisions API

Prepare your request, then continue with your agent.

Pricing

$0.042 / million input tokens

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
TypeSafe Text Decisions API

TypeSafe Text and Image Decisions API

Retrieve text and Image Decisions with the TypeSafe API. Provide Idempotency-Key in header, model in body, state in body, questions in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs body: body
Selected implementation typesafe · TypeSafe Text and Image Decisions
Billing Follow the selected implementation pricing, billing unit, quantity and charge rules

What You Can Build

  • Application integration and result review: Keep the request context attached to available returned results.
  • Integration reference: Use the selected request format and keep source identifiers with the returned result.

Documented Response Fields

Field Meaning
answers.billing.noul Returned noul field
answers.billing.type Returned type field
model Returned model field
usage.input_tokens Returned input tokens field
usage.output_tokens Returned output tokens field

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the JSON body and supported fields shown in the request template.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl \
  'https://api.openany.si/v1/agent-apis/typesafe/v1/systemone' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: offline-typesafe-text-0001' \
  --data-raw '{
  "model": "jev-1.14.0",
  "questions": {
    "billing": {
      "instructions": "Is this message about billing?",
      "type": "noul"
    }
  },
  "state": "I was charged twice. Please refund the extra charge."
}'

Request and Response Examples

The response illustration is a schema template, not a captured business response. Replace request placeholders and read actual returned values for your target resource.

Published TypeSafe Text and Image Decisions API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Required OpenAny idempotency key: 1–128 printable ASCII bytes, excluding spaces/control characters. Reuse only for the same request; this local contract is stricter than PageIndex's upstream 255-character limit.
body*object

body

JSON Base64 images, text and optional long context on pinned Jev 1.14/1.13. Box requires 1.14 and an image. Multipart and model aliases remain excluded. Long-context gateway adaptation and target acceptance pending.
Experimental images opt-in. Required when assets is nonempty or a Box question is used; optional for text-only requests. Gateway adaptation confirmed by user; target runtime enforcement not independently verified.
Optional long-context opt-in for pinned Jev 1.14.0 and 1.13.0. Send the STRING true to use the official 262k per-request and per-question limits. Omit for default 64k per-request/32k per-question. Same input-token price; output free. This header may accompany the Images header. Gateway long-context acceptance pending.

Response template · not a real response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
typesafeCurrent
TypeSafe Text and Image Decisions · POST · View API reference
$0.042 / million input tokens0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · typesafeUSD / million input tokens
Pricing
$0.042

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 8. Price update time: not supplied.

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/typesafe/v1/systemone
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

Fields follow the saved API contract. Additional official reference fields are labelled separately when they are not included. Official API reference

With the long-context header, the official per-request and per-question limits are both 262k tokens. Without it, the defaults are 64k and 32k. The input-token price is unchanged.

assets is a field inside body, not a separate request location. For example: body.assets.{name}.data_base64. Box questions belong under body.questions.{name}.

ParameterLocationTypeRequiredDescription
AuthorizationRequest headersheadersstringYes

Use an OpenAny API key. The TypeSafe credential is managed by OpenAny.

Idempotency-KeyRequest headersheadersstringYes

Required OpenAny idempotency key. Reuse it only for the same request; it is not forwarded to TypeSafe.

minLength: 1 · maxLength: 128

modelJSON request bodybodystringYes

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

enum: "jev-1.14.0", "jev-1.13.0"

Use a pinned model version from the allowed values; provider aliases are not enabled here.

stateJSON request bodybodystring | object | arrayYes

The content all questions in this request refer to.

questionsJSON request bodybodyobjectYes

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

minProperties: 1

Box requires Jev 1.14 and an image. Noul, Choice and Score can also use images.

Nested fields and variants

body.questions.{name} · Named entries · object

Nested fields and variants

Noul

A yes/no question or statement, answered with the probability of yes or true.

Nested fields and variants
body.questions.{name}.criteria object | null · Optional

Parent object: body.questions.{name}

Criteria clarifying what counts as a yes or no answer.
Nested fields and variants

NoulCriteria

Criteria defining what counts as a yes or no answer.

Nested fields and variants
body.questions.{name}.criteria.false string | object | array | null · Optional

Parent object: body.questions.{name}.criteria

What counts as a no answer.
body.questions.{name}.criteria.true string | object | array | null · Optional

Parent object: body.questions.{name}.criteria

What counts as a yes answer.
body.questions.{name}.instructions string | object | array | null · Optional

Parent object: body.questions.{name}

The yes/no question or statement to evaluate.
body.questions.{name}.type string · Required

Parent object: body.questions.{name}

Identifies a yes/no question or statement.

const: "noul"

Choice

A question that selects one option from the choices you define.

Nested fields and variants
body.questions.{name}.criteria object · Required

Parent object: body.questions.{name}

Choice names and descriptions of when each applies. A choice without a description is interpreted by its name alone.

minProperties: 1 · maxProperties: 255

Nested fields and variants

body.questions.{name}.criteria.{name} · Named entries · string | object | array | null

body.questions.{name}.instructions string | object | array | null · Optional

Parent object: body.questions.{name}

What the model should decide when choosing an option.
body.questions.{name}.type string · Required

Parent object: body.questions.{name}

Identifies a question that selects one of the choices in criteria.

const: "choice"

Score

A question that assigns a score using an ordered rubric.

Nested fields and variants
body.questions.{name}.criteria array · Required

Parent object: body.questions.{name}

Ordered descriptions of the score levels. Each description's position determines its score, starting at zero.

minItems: 1 · maxItems: 10

Nested fields and variants

body.questions.{name}.criteria[] · Array item · string | object | array

body.questions.{name}.instructions string | object | array | null · Optional

Parent object: body.questions.{name}

What the model should rate.
body.questions.{name}.type string · Required

Parent object: body.questions.{name}

Identifies a question that rates the content using the levels in criteria.

const: "score"

Box

A question that locates what its instructions describe in the request's image. Requests with box questions must send the header TypeSafe-Danger-Zone-Images: true.

Nested fields and variants
body.questions.{name}.instructions string | object | array | null · Optional

Parent object: body.questions.{name}

What to locate in the image.
body.questions.{name}.type string · Required

Parent object: body.questions.{name}

Identifies a box question.

const: "box"

TypeSafe-Danger-Zone-ImagesRequest headersheadersstringNo

Set to true to use assets or box questions.

enum: "true"

Required for images or Box. Send the string true; text-only requests may omit it.

TypeSafe-Danger-Zone-Long-ContextRequest headersheadersstringNo

Set to true to use long context.

enum: "true"

Send the string true for long context on Jev 1.14 or 1.13. Omit it for default limits. The input-token price is unchanged.

assetsJSON request bodybodyobjectNo

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.

minProperties: 1

Images are nested inside the JSON request body. Each asset name maps to one image object.

Nested fields and variants

body.assets.{name} · Named entries · object

Nested fields and variants
body.assets.{name}.data_base64 string · Required

Parent object: body.assets.{name}

Standard padded Base64, without whitespace or a data: prefix. Decoded PNG/JPEG at most 16 MiB; image validation is required in the gateway.

minLength: 4 · maxLength: 22369624 · pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$

body.assets.{name}.format string · Required

Parent object: body.assets.{name}

The image format, required with data_base64. The actual format is detected from the bytes.

enum: "png", "jpg", "jpeg"

body.assets.{name}.type string · Optional

Parent object: body.assets.{name}

Identifies an image asset.

const: "image"

Required markers inside a nested object or variant apply when that object or variant is used.

Full provider request schema

Output parameters

Official response structure. Answers use the names and types of the submitted questions.

ParameterLocationTypeRequiredDescription
modelJSON response bodyresponsestringYes

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

answersJSON response bodyresponseobjectYes

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

minProperties: 1

Nested fields and variants

response.answers.{name} · Named entries · object

Nested fields and variants

Noul

The probability of a yes answer or a true statement.

Nested fields and variants
response.answers.{name}.type string · Required

Parent object: response.answers.{name}

Identifies a yes/no answer.

const: "noul"

response.answers.{name}.noul number · Required

Parent object: response.answers.{name}

Probability of a yes answer or a true statement, from 0 to 1. Values near 1 favor yes or true, values near 0 favor no or false, and values near 0.5 indicate uncertainty.

Choice

The selected choice, confidence, and probabilities for a choice question.

Nested fields and variants
response.answers.{name}.type string · Required

Parent object: response.answers.{name}

Identifies a selection from the requested choices.

const: "choice"

response.answers.{name}.choice string · Required

Parent object: response.answers.{name}

The name of the choice with the highest probability among the question's criteria.
response.answers.{name}.confidence number · Required

Parent object: response.answers.{name}

Confidence in the selected choice, from 0 to 1. Higher values indicate greater certainty; use lower values to flag uncertain selections for review.
response.answers.{name}.probabilities object · Required

Parent object: response.answers.{name}

Probability of each choice in criteria, keyed by choice name, from 0 to 1. Shows how likely the alternatives are; values sum to approximately 1.
Nested fields and variants

response.answers.{name}.probabilities.{name} · Named entries · number

Score

An expected score with its rubric, confidence, and score-level probabilities.

Nested fields and variants
response.answers.{name}.type string · Required

Parent object: response.answers.{name}

Identifies a rating against the requested score levels.

const: "score"

response.answers.{name}.score number · Required

Parent object: response.answers.{name}

Expected score: the probability-weighted average of the rubric levels. May fall between integer levels.
response.answers.{name}.confidence number · Required

Parent object: response.answers.{name}

Confidence in the score, from 0 to 1. Higher values indicate greater certainty; use lower values to flag uncertain ratings for review.
response.answers.{name}.legend object · Required

Parent object: response.answers.{name}

The requested criteria mapped to their score levels, so you can interpret the score.
Nested fields and variants

response.answers.{name}.legend.{name} · Named entries · string | object | array

response.answers.{name}.probabilities object · Required

Parent object: response.answers.{name}

Probability of each score level, from 0 to 1, using the same keys as legend. Shows how likely the alternatives are; values sum to approximately 1.
Nested fields and variants

response.answers.{name}.probabilities.{name} · Named entries · number

Box

A located box with normalized edge coordinates and confidence.

Nested fields and variants
response.answers.{name}.type string · Required

Parent object: response.answers.{name}

Identifies a box answer.

const: "box"

response.answers.{name}.box object · Required

Parent object: response.answers.{name}

The box's edges as fractions of image height and width, from 0 to 1. Each coordinate is the expected value of its edge's predicted position.
Nested fields and variants
response.answers.{name}.box.top number · Required

Parent object: response.answers.{name}.box

Top edge of the box, as a fraction of image height from the top (0-1).
response.answers.{name}.box.bottom number · Required

Parent object: response.answers.{name}.box

Bottom edge of the box, as a fraction of image height from the top (0-1).
response.answers.{name}.box.left number · Required

Parent object: response.answers.{name}.box

Left edge of the box, as a fraction of image width from the left (0-1).
response.answers.{name}.box.right number · Required

Parent object: response.answers.{name}.box

Right edge of the box, as a fraction of image width from the left (0-1).
response.answers.{name}.confidence number | null · Required

Parent object: response.answers.{name}

Confidence for the given box, from 0 to 1, with 1 being more confident. Null when the model does not provide confidence.
usageJSON response bodyresponseobjectYes

Input and output token counts for this evaluation.

Nested fields and variants
response.usage.input_tokens integer · Required

Parent object: response.usage

Number of billable input tokens used to evaluate the request.
response.usage.output_tokens integer · Required

Parent object: response.usage

Number of output tokens used to answer the questions. Output tokens are currently free of charge.
Full provider response schema

Provider error responses

Provider validation formats are shown for reference. OpenAny may return its own gateway error envelope.

HTTP 400
ParameterLocationTypeRequiredDescription
detailJSON response bodyresponsestring | objectYes

Explanation of the invalid request. String details and message fields are bounded, with shortened text ending with ….

HTTP 422
ParameterLocationTypeRequiredDescription
detailJSON response bodyresponsearrayNo

Validation errors describing which request values are missing or invalid.

Nested fields and variants

response.detail[] · Array item · object

Nested fields and variants
response.detail[].loc array · Required

Parent object: response.detail[]

Path to the invalid value: the request location followed by field names and array indices. May be empty.
Nested fields and variants

response.detail[].loc[] · Array item · string | integer

response.detail[].msg string · Required

Parent object: response.detail[]

Human-readable explanation of the validation failure. May be shortened with ….
response.detail[].type string · Required

Parent object: response.detail[]

Machine-readable validation error code.
response.detail[].input string · Optional

Parent object: response.detail[]

Text preview of the rejected input. May be shortened with ….
response.detail[].ctx object · Optional

Parent object: response.detail[]

Additional context used to explain the validation failure. Entries may be omitted or shortened.

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Billable input tokens$0.042000 / million input tokensResponse · /usage/input_tokens · Numeric valueAlways262144 token · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.011011.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Documentation template · Offline contract illustration

Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 4

    Review these request fields before running. Keep the published provider and request method unchanged.

    Idempotency-Key
    Required OpenAny idempotency key: 1–128 printable ASCII bytes, excluding spaces/control characters. Reuse only for the same request; this local contract is stricter than PageIndex's upstream 255-character limit.
    body
    JSON Base64 images, text and optional long context on pinned Jev 1.14/1.13. Box requires 1.14 and an image. Multipart and model aliases remain excluded. Long-context gateway adaptation and target acceptance pending.
    TypeSafe-Danger-Zone-Images
    Experimental images opt-in. Required when assets is nonempty or a Box question is used; optional for text-only requests. Gateway adaptation confirmed by user; target runtime enforcement not independently verified.
    TypeSafe-Danger-Zone-Long-Context
    Optional long-context opt-in for pinned Jev 1.14.0 and 1.13.0. Send the STRING true to use the official 262k per-request and per-question limits. Omit for default 64k per-request/32k per-question. Same input-token price; output free. This header may accompany the Images header. Gateway long-context acceptance pending.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/typesafe/v1/systemone' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      -H 'Idempotency-Key: offline-typesafe-text-0001' \
      --data-raw '{
      "model": "jev-1.14.0",
      "questions": {
        "billing": {
          "instructions": "Is this message about billing?",
          "type": "noul"
        }
      },
      "state": "I was charged twice. Please refund the extra charge."
    }'
  3. Check the response

    Response template · not a real response · Documented HTTP 200

    Response template · not a real response
    {
      "answers": {
        "billing": {
          "noul": 0.98,
          "type": "noul"
        }
      },
      "model": "jev-1.14.0",
      "usage": {
        "input_tokens": 120,
        "output_tokens": 12
      }
    }

Common questions

Which inputs identify this request?

Provide Idempotency-Key in header (string); model in body (string); state in body (documented JSON type); questions in body (object). Keep identifiers and URLs in the formats documented for this implementation.

Which values can I use for TypeSafe-Danger-Zone-Images?

The selected schema accepts true. Keep the documented string type and exact spelling for this input.

How should I structure the JSON body?

Send the body according to its root JSON schema. Do not add a second body wrapper around the documented properties, and preserve the declared types of nested values.

How should I map the returned fields?

Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

Which API key should I use?

Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

Where can I check the current request price?

Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

Use TypeSafe Text Decisions API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.