Get started

Orvane Documentation

Orvane Infer is a decision model. You send an input and a schema describing the fields you need. It returns a typed value for every field, with a calibrated probability you can act on.

Quickstart

1. Install the SDK for your language.

pip install orvane
npm install @orvane/sdk
go get github.com/orvane/orvane-go

2. Set your API key as an environment variable.

shell
export ORVANE_API_KEY="ov_live_..."

3. Make your first request.

from orvane import Orvane

client = Orvane()
r = client.infer(
    input="Hi, I was charged twice for my order.",
    schema={"is_refund_request": "boolean"},
)
print(r.is_refund_request.value, r.is_refund_request.p)  # True 0.97
import { Orvane } from "@orvane/sdk";

const client = new Orvane();
const r = await client.infer({
  input: "Hi, I was charged twice for my order.",
  schema: { is_refund_request: "boolean" },
});
console.log(r.is_refund_request); // { value: true, p: 0.97 }
curl https://api.orvane.dev/v1/infer \
  -H "Authorization: Bearer $ORVANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":"Hi, I was charged twice for my order.",
       "schema":{"is_refund_request":"boolean"}}'
tip
The Developer plan includes 50M free input tokens per month. No credit card required.

Authentication

Every request needs a bearer token in the Authorization header. Create keys in the dashboard. Keys can be scoped to specific models, regions and IP ranges.

header
Authorization: Bearer ov_live_8f2c...
warning
Never ship keys in client-side code. Call Orvane from your server, or mint short-lived tokens with POST /v1/tokens.

Schemas

A schema lists the fields you want back. Each field gets a value and a probability. Supported types:

TypeExampleNotes
booleantrueYes/no decisions.
enum"billing"Up to 512 options per field.
number0.42Optional minimum / maximum.
integer3Counts and ratings.
string"Pro plan"Extracted spans; max 256 chars.
array["a","b"]Multi-label; p is given per item.
object{...}Nested up to 4 levels.
schema.json
{
  "type": "object",
  "properties": {
    "urgency": { "enum": ["low", "medium", "high"] },
    "team":    { "enum": ["billing", "support", "sales"],
                 "description": "Which team should own the ticket" }
  }
}

Field descriptions are used by the model. Short, concrete descriptions improve accuracy.

Probabilities & thresholds

Probabilities are calibrated: of all answers reported at p = 0.80, about 80% are correct. Use a threshold per field to decide what gets automated.

threshold simulatorauto 0%

Start conservative (0.95), measure accuracy on the auto-handled items, and lower the threshold as review data comes in.

Determinism

Given the same input, schema, model version and seed, Orvane returns the identical response, byte for byte. Pin a model version (for example infer-1.2.4) in production so upgrades are explicit.

POST /v1/infer

Run one input against a schema.

Body parameters

NameTypeDescription
input requiredstring | objectText or structured data to evaluate. Up to 64k tokens.
schema requiredobjectJSON Schema describing output fields. Max 256 fields.
modelstringDefaults to infer-1.2.
seedintegerFor reproducible outputs. Defaults to 0.
thresholdsobjectPer-field minimum p; fields below are flagged needs_review.
region"us" | "eu"Pin processing to a region.

Response

200 OK
{
  "id": "inf_01JD8X2...",
  "model": "infer-1.2.4",
  "latency_ms": 108,
  "fields": {
    "urgency": { "value": "high",    "p": 0.81, "needs_review": true },
    "team":    { "value": "billing", "p": 0.93, "needs_review": false }
  },
  "usage": { "input_tokens": 212 }
}

POST /v1/batch

Submit up to 50,000 inputs at once at 50% of the normal price. Results are ready within 24 hours (usually minutes) and can be delivered to a webhook.

Python
job = client.batch.create(
    inputs=tickets,                 # list of strings or dicts
    schema=Triage,
    webhook_url="https://example.com/hooks/orvane",
)
print(job.id, job.status)           # bat_01JD... queued

GET /v1/models

List available models and versions.

ModelContextStatus
infer-1.264kStable · alias for 1.2.4
infer-1.2-mini16kStable · lowest latency
infer-1.132kDeprecated · retired 2027-03-01

Errors

Errors return a JSON body with type and message.

StatusTypeMeaning
400invalid_schemaThe schema could not be parsed or uses an unsupported type.
401unauthorizedMissing or invalid API key.
413input_too_largeInput exceeds the model context window.
429rate_limitedToo many requests. Retry after Retry-After seconds.
500server_errorSomething went wrong on our side. Safe to retry.

Rate limits

PlanRequests / sInput tokens / month
Developer2050M
Production2,000Unlimited
EnterpriseCustomCustom

SDKs

python
orvane

pip install orvane

typescript
@orvane/sdk

npm i @orvane/sdk

go
orvane-go

go get .../orvane-go

Examples

Changelog

  1. 2026-11-18Infer 1.2

    Batch endpoint, 31% lower latency, nested list fields.

  2. 2026-09-02Infer 1.1.3

    EU region and per-field thresholds.

  3. 2026-06-20Infer 1.1

    Go SDK, 32k context.

Last updated 26 Nov 2026 · Edit this page

Copied