Decisions

Create a typed decision with the official TypeSafe SDK shape

Changed on

Compatibility endpoint for the official TypeSafe JavaScript and Python SDKs. Configure the SDK base URL as https://api.nano-gpt.com/api (or https://nano-gpt.com/api); the SDK appends /v1/systemone. It accepts every decision model listed for /v1/decisions. Bare model IDs jev-1.13, jev-latest and clef are mapped to the matching NanoGPT models. Image input and include_usage work as on /v1/decisions. The SDK model-list method remains unsupported because NanoGPT's /api/v1/models endpoint uses the NanoGPT/OpenAI-compatible response shape.

post/v1/systemone

Request

  • Base URL
    https://api.nano-gpt.com/api
  • URL
    https://api.nano-gpt.com/api/v1/systemone
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Request body

model'jev-1.13' | 'jev-latest' | 'typesafe/jev-1.13' | '~typesafe/jev-latest' | 'typesafe/jev-latest' | 'liquid/d1' | 'cloudflare/clef' | 'clef' | 'cloudflare/clef-flash' | 'perplexity/pplx-decider-v1.2' | 'perplexity/pplx-decider-v1.1-27b' required

Decision model ID. clef is an alias of the prefixed IDs. Use perplexity/pplx-decider-v1.2 for PPLX; perplexity/pplx-decider-v1.1-27b remains accepted as a compatibility alias for v1.2.

questionsobject required
providerobject nullable
session_idstring
traceobject
userstring
include_usageboolean

Wait for billing to settle and report the exact charge as usage.cost. By default the response returns without waiting and reports usage.estimated_cost.

Response

TypeSafe System One result

idstring
modelstring required
answersobject required

Changes