{"data":{"billing":{"currency":"USD","mode":"rules","parameters":[],"policy_version":2,"sale":{"addons":[],"base_price_micro_usd":"0","max_cost_micro_usd":"11011","quantities":[{"id":"measured_usage","label":"Billable input tokens","max_quantity":"262144","measure":"value","pointer":"/usage/input_tokens","price_micro_usd":"42000","quantity_scale":0,"source":"response","unit":"token","unit_quantity":"1000000"}],"rounding":"ceil","variants":[]}},"capabilityId":"a2a95019-5c84-4a87-bc23-97102294774d","catalogType":"api","categories":["ai-generation"],"dataPlatform":"TypeSafe","dataPlatformLogoUrl":"https://monid.ai/logos/providers/typesafe.png","dataPlatformTranslations":{"ar":"TypeSafe","ja":"TypeSafe","zh":"TypeSafe"},"dataProduct":"decision","description":"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.","descriptionTranslations":{"ar":"استخدم TypeSafe قرارات النصوص API عبر OpenAny، مع تقديم Idempotency-Key, model, state بصيغة طلب POST الموثقة، لدعم تكامل التطبيقات ومراجعة النتائج. تتضمن صفحة التفاصيل قالب الطلب والمدخلات المدعومة ومرجع الاستجابة والسعر الحالي للتنفيذ المحدد؛ احتفظ بالمعرفات والحقول المتاحة معا عند مراجعة النتائج.","ja":"OpenAny から TypeSafe テキスト判定 API を利用し、POST リクエスト形式で Idempotency-Key, model, state を指定して、アプリケーション連携と結果の確認に利用できます。詳細ページにはリクエスト例、対応入力、応答参照、選択した実装の現在の料金があり、結果を確認する際は識別子と利用可能なフィールドを関連付けて保持できます。","zh":"通过 OpenAny 使用 TypeSafe 文本决策 API，按所选实现的 POST 请求格式提供 Idempotency-Key, model, state，用于应用集成和结果核对。详情页提供请求模板、支持的输入、响应参考及所选实现的当前价格；核对结果时，将返回标识与可用字段关联保留。"},"effectContentHtml":"","executionMode":"sync","id":"c31f8934-cb1a-47b0-87c0-b1c9f2c34755","includedContentHtml":"","inputs":[{"description":"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.","location":"header","max_length":128,"min_length":1,"name":"Idempotency-Key","nullable":false,"required":true,"type":"string"},{"description":"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.","json_schema":{"additionalProperties":false,"allOf":[{"if":{"properties":{"model":{"const":"jev-1.13.0"}},"required":["model"]},"then":{"properties":{"questions":{"additionalProperties":{"properties":{"type":{"enum":["noul","choice","score"]}}}}}}},{"if":{"not":{"required":["assets"]}},"then":{"properties":{"questions":{"additionalProperties":{"properties":{"type":{"enum":["noul","choice","score"]}}}}}}},{"if":{"properties":{"assets":{"maxProperties":0}},"required":["assets"]},"then":{"properties":{"questions":{"additionalProperties":{"properties":{"type":{"enum":["noul","choice","score"]}}}}}}}],"description":"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.","properties":{"assets":{"additionalProperties":{"additionalProperties":false,"description":"PNG/JPEG image encoded in JSON. format and data_base64 are required; optional type must be image. Multipart part is unavailable in this profile.","properties":{"data_base64":{"description":"Standard padded Base64, without whitespace or a data: prefix. Decoded PNG/JPEG at most 16 MiB; image validation is required in the gateway.","maxLength":22369624,"minLength":4,"pattern":"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","title":"Data Base64","type":"string"},"format":{"description":"The image format, required with data_base64. The actual format is detected from the bytes.","enum":["png","jpg","jpeg"],"title":"Format","type":"string"},"type":{"const":"image","description":"Identifies an image asset.","title":"Type","type":"string"}},"required":["format","data_base64"],"type":"object"},"description":"Images keyed by nonblank references used in string VALUES of state, instructions or criteria. Reference byte limits, matching and image/expanded-size checks require the gateway. Send TypeSafe-Danger-Zone-Images: true when using assets or Box.","minProperties":1,"propertyNames":{"maxLength":1024,"minLength":1,"pattern":"\\S","type":"string"},"title":"Assets","type":"object"},"model":{"description":"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"],"examples":["jev-latest"],"title":"Model","type":"string"},"questions":{"additionalProperties":{"description":"A question about the supplied content.","discriminator":{"mapping":{"box":"#/components/schemas/BoxQuestion","choice":"#/components/schemas/ChoiceQuestion","noul":"#/components/schemas/NoulQuestion","score":"#/components/schemas/ScoreQuestion"},"propertyName":"type"},"oneOf":[{"additionalProperties":false,"description":"A yes/no question or statement, answered with the probability of yes or true.","properties":{"criteria":{"anyOf":[{"description":"Criteria defining what counts as a yes or no answer.","properties":{"false":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"description":"What counts as a no answer.","examples":["The message is a legitimate conversation."],"title":"False","x-accepts":"string | object | array"},"true":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"description":"What counts as a yes answer.","examples":["The message is unsolicited advertising."],"title":"True","x-accepts":"string | object | array"}},"title":"NoulCriteria","type":"object"},{"type":"null"}],"description":"Criteria clarifying what counts as a yes or no answer.","examples":[{"false":"A legitimate conversation","true":"Unsolicited advertising"}]},"instructions":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"description":"The yes/no question or statement to evaluate.","examples":["Is this message spam?","This message contains unsolicited advertising.",{"task":"Identify unsolicited advertising."}],"title":"Instructions","x-accepts":"string | object | array"},"type":{"const":"noul","description":"Identifies a yes/no question or statement.","examples":["noul"],"title":"Type","type":"string"}},"required":["type"],"title":"Noul","type":"object"},{"additionalProperties":false,"description":"A question that selects one option from the choices you define.","properties":{"criteria":{"additionalProperties":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"x-accepts":"string | object | array"},"description":"Choice names and descriptions of when each applies. A choice without a description is interpreted by its name alone.","examples":[{"angry":"An upset or hostile message","calm":"A neutral or polite message","excited":"An enthusiastic or eager message"}],"maxProperties":255,"minProperties":1,"title":"Criteria","type":"object"},"instructions":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"description":"What the model should decide when choosing an option.","examples":["What is the tone of this message?"],"title":"Instructions","x-accepts":"string | object | array"},"type":{"const":"choice","description":"Identifies a question that selects one of the choices in criteria.","examples":["choice"],"title":"Type","type":"string"}},"required":["type","criteria"],"title":"Choice","type":"object"},{"additionalProperties":false,"description":"A question that assigns a score using an ordered rubric.","properties":{"criteria":{"description":"Ordered descriptions of the score levels. Each description's position determines its score, starting at zero.","examples":[["Can wait","Needs attention this week","Needs attention today"]],"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}],"x-accepts":"string | object | array"},"maxItems":10,"minItems":1,"title":"Criteria","type":"array"},"instructions":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"description":"What the model should rate.","examples":["How urgent is this message?"],"title":"Instructions","x-accepts":"string | object | array"},"type":{"const":"score","description":"Identifies a question that rates the content using the levels in criteria.","examples":["score"],"title":"Type","type":"string"}},"required":["type","criteria"],"title":"Score","type":"object"},{"additionalProperties":false,"description":"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.","properties":{"instructions":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"description":"What to locate in the image.","title":"Instructions","x-accepts":"string | object | array"},"type":{"const":"box","description":"Identifies a box question.","title":"Type","type":"string"}},"required":["type"],"title":"Box","type":"object"}]},"description":"Questions to ask about the content, each with a name you choose. The response uses those names to identify the answers.","examples":[{"billing":{"instructions":"Is this message about billing?","type":"noul"}}],"minProperties":1,"title":"Questions","type":"object"},"state":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}],"description":"The content all questions in this request refer to.","examples":["I was charged twice. Please help.",{"message":"Please help.","subject":"Duplicate charge"}],"title":"State","x-accepts":"string | object | array"}},"required":["model","state","questions"],"title":"SystemOneRequest","type":"object","x-openany-profile":"typesafe-json-base64-box-long-context-v2"},"location":"body","name":"body","nullable":false,"pointer":"","required":true,"type":"object"},{"description":"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.","enum_values":["true"],"location":"header","name":"TypeSafe-Danger-Zone-Images","nullable":false,"required":false,"type":"string"},{"description":"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.","enum_values":["true"],"location":"header","name":"TypeSafe-Danger-Zone-Long-Context","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://docs.typesafe.ai/mintlify-assets/_mintlify/favicons/ts-docs/zg2v0DiYB7xPw0I2/_generated/favicon/android-chrome-192x192.png","method":"POST","name":"TypeSafe Text and Image Decisions","nameTranslations":{"ar":"TypeSafe قرارات النصوص","ja":"TypeSafe テキスト判定","zh":"TypeSafe 文本决策"},"overviewHtml":"\u003ch2\u003eTypeSafe Text and Image Decisions API\u003c/h2\u003e\n\u003cp\u003eRetrieve 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.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003ebody: body\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003etypesafe · TypeSafe Text and Image Decisions\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eFollow the selected implementation pricing, billing unit, quantity and charge rules\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eApplication integration and result review\u003c/strong\u003e: Keep the request context attached to available returned results.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eIntegration reference\u003c/strong\u003e: Use the selected request format and keep source identifiers with the returned result.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eDocumented Response Fields\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eanswers.billing.noul\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned noul field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eanswers.billing.type\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned type field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003emodel\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned model field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eusage.input_tokens\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned input tokens field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eusage.output_tokens\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned output tokens field\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the JSON body and supported fields shown in the request template.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl \\\n  \u0026#39;https://api.openany.si/v1/agent-apis/typesafe/v1/systemone\u0026#39; \\\n  -X POST \\\n  -H \u0026#34;Authorization: Bearer $OPENANY_API_KEY\u0026#34; \\\n  -H \u0026#39;Content-Type: application/json\u0026#39; \\\n  -H \u0026#39;Idempotency-Key: offline-typesafe-text-0001\u0026#39; \\\n  --data-raw \u0026#39;{\n  \u0026#34;model\u0026#34;: \u0026#34;jev-1.14.0\u0026#34;,\n  \u0026#34;questions\u0026#34;: {\n    \u0026#34;billing\u0026#34;: {\n      \u0026#34;instructions\u0026#34;: \u0026#34;Is this message about billing?\u0026#34;,\n      \u0026#34;type\u0026#34;: \u0026#34;noul\u0026#34;\n    }\n  },\n  \u0026#34;state\u0026#34;: \u0026#34;I was charged twice. Please refund the extra charge.\u0026#34;\n}\u0026#39;\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response illustration is a schema template, not a captured business response. Replace request placeholders and read actual returned values for your target resource.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/c31f8934-cb1a-47b0-87c0-b1c9f2c34755\"\u003ePublished TypeSafe Text and Image Decisions API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhich inputs identify this request?\u003c/h3\u003e\n\u003cp\u003eProvide 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.\u003c/p\u003e\n\u003ch3\u003eWhich values can I use for TypeSafe-Danger-Zone-Images?\u003c/h3\u003e\n\u003cp\u003eThe selected schema accepts true. Keep the documented string type and exact spelling for this input.\u003c/p\u003e\n\u003ch3\u003eHow should I structure the JSON body?\u003c/h3\u003e\n\u003cp\u003eSend 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.\u003c/p\u003e\n\u003ch3\u003eHow should I map the returned fields?\u003c/h3\u003e\n\u003cp\u003eUse 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.\u003c/p\u003e\n\u003ch3\u003eWhich API key should I use?\u003c/h3\u003e\n\u003cp\u003eUse your OpenAny API key as Bearer authentication on the documented OpenAny route.\u003c/p\u003e\n\u003ch3\u003eWhere can I check the current request price?\u003c/h3\u003e\n\u003cp\u003eCheck the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/web/web-automation-agent-tinyfish\"\u003eWeb Automation Agent (TinyFish)\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/tradingagentstack/tradingagentstack-check\"\u003eTradingAgentStack Check\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/wikivoyage/wikivoyage-travel-guide-capability\"\u003eWikivoyage Travel Guide\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/typesafe/typesafe-text-decisions?offering=c31f8934-cb1a-47b0-87c0-b1c9f2c34755","providerId":"typesafe","publicPath":"/v1/agent-apis/typesafe/v1/systemone","requestContentType":"application/json","revision":8,"samples":[{"http_status":200,"name":"Documentation template · Offline contract illustration","request":{"body":{"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."},"headers":{"Idempotency-Key":"offline-typesafe-text-0001"},"path":{},"query":{}},"response_body":{"answers":{"billing":{"noul":0.98,"type":"noul"}},"model":"jev-1.14.0","usage":{"input_tokens":120,"output_tokens":12}}},{"http_status":200,"name":"Documentation template · TypeSafe Image-Noul — offline contract","request":{"body":{"assets":{"offline-image-280x280":{"data_base64":"iVBORw0KGgoAAAANSUhEUgAAARgAAAEYCAIAAAAI7H7bAAADH0lEQVR4nO3TQQkAMAzAwPo3vYloYDDuFOSTOcDavA6AHxgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCgJEgYCQIGAkCRoKAkSBgJAgYCQJGgoCRIGAkCBgJAkaCwAVHyV7eA9YY1wAAAABJRU5ErkJggg==","format":"png","type":"image"}},"model":"jev-1.14.0","questions":{"visible":{"instructions":"Is the image a plain white square?","type":"noul"}},"state":{"photo":"offline-image-280x280"}},"headers":{"Idempotency-Key":"offline-typesafe-image-noul-0001","TypeSafe-Danger-Zone-Images":"true"},"path":{},"query":{}},"response_body":{"answers":{"visible":{"noul":0.98,"type":"noul"}},"model":"jev-1.14.0","usage":{"input_tokens":10000,"output_tokens":12}}}],"seoDescription":"Get TypeSafe Text Decisions data via REST or MCP powered by Typesafe. Pay per call, no subscription. Retrieve returned noul field and returned type field.","updatedAt":"2026-12-03T02:53:15.535Z","usageInstructionsHtml":""}}