SystemOne

Submit a System One request

Changed on

Sends state and typed questions to a System One model such as Jev and returns its answers. Compatible with the TypeSafe SDKs. Bare System One model IDs such as jev-1.13 and jev-latest are mapped onto the typesafe/ namespace.

post/systemone

Request

  • Base URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP bearer

Request body

DecisionsRequest required
assets, object

Images keyed by reference string, as in TypeSafe's API. Write a reference wherever the image belongs in state, instructions, or criteria; every asset must be referenced at least once, or the request fails with 400 naming the unused key. TypeSafe Jev endpoints receive assets as written and read a reference as a whole string value or inside longer text. Every other provider has each whole-string reference resolved to an image_url part before the request is sent, so it is accepted only where that provider reads image_url parts (top-level state items), and a reference inside longer text fails with 400. image_url parts and assets can be mixed in one request.

model, string required
provider, intersection

Provider routing preferences for the request.

questions, object required
session_id, string

A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.

state, union required

The content to evaluate: a plain string, or a JSON object or array of related context.

trace, TraceConfig

Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.

user, string

Example request

{
  "provider": {
    "allow_fallbacks": true
  },
  "session_id": "session-1234",
  "trace": {
    "trace_id": "trace-abc123",
    "trace_name": "my-app-trace"
  }
}

Response

Decisions response

DecisionsResponse required
annotations, DecisionsUrlCitationAnnotation[]

Sources for the request as a whole, when the provider returns them. Not attributed to individual answers.

answers, object required
id, string
model, string required
provider, string
usage, object required

Example response

{
  "usage": {
    "cost_details": {
      "upstream_inference_completions_cost": 0.0004,
      "upstream_inference_cost": null,
      "upstream_inference_prompt_cost": 0.0008
    }
  }
}

Changes

    • info

      added the new optional request property provider/allOf[#/components/schemas/ProviderPreferences]/options/celeris

    • info

      added the new Celeris enum value to the request property provider/allOf[#/components/schemas/ProviderPreferences]/ignore/items/anyOf[#/components/schemas/ProviderName]

    • info

      added the new Celeris enum value to the request property provider/allOf[#/components/schemas/ProviderPreferences]/only/items/anyOf[#/components/schemas/ProviderName]

    1 more change in this revision