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.
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"}}'
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.
Authorization: Bearer ov_live_8f2c...
POST /v1/tokens.Schemas
A schema lists the fields you want back. Each field gets a value and a probability. Supported types:
| Type | Example | Notes |
|---|---|---|
boolean | true | Yes/no decisions. |
enum | "billing" | Up to 512 options per field. |
number | 0.42 | Optional minimum / maximum. |
integer | 3 | Counts 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. |
{
"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.
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
| Name | Type | Description |
|---|---|---|
input required | string | object | Text or structured data to evaluate. Up to 64k tokens. |
schema required | object | JSON Schema describing output fields. Max 256 fields. |
model | string | Defaults to infer-1.2. |
seed | integer | For reproducible outputs. Defaults to 0. |
thresholds | object | Per-field minimum p; fields below are flagged needs_review. |
region | "us" | "eu" | Pin processing to a region. |
Response
{
"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.
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... queuedGET /v1/models
List available models and versions.
| Model | Context | Status |
|---|---|---|
infer-1.2 | 64k | Stable · alias for 1.2.4 |
infer-1.2-mini | 16k | Stable · lowest latency |
infer-1.1 | 32k | Deprecated · retired 2027-03-01 |
Errors
Errors return a JSON body with type and message.
| Status | Type | Meaning |
|---|---|---|
| 400 | invalid_schema | The schema could not be parsed or uses an unsupported type. |
| 401 | unauthorized | Missing or invalid API key. |
| 413 | input_too_large | Input exceeds the model context window. |
| 429 | rate_limited | Too many requests. Retry after Retry-After seconds. |
| 500 | server_error | Something went wrong on our side. Safe to retry. |
Rate limits
| Plan | Requests / s | Input tokens / month |
|---|---|---|
| Developer | 20 | 50M |
| Production | 2,000 | Unlimited |
| Enterprise | Custom | Custom |
SDKs
pip install orvane
npm i @orvane/sdk
go get .../orvane-go
Examples
Changelog
- 2026-11-18Infer 1.2
Batch endpoint, 31% lower latency, nested list fields.
- 2026-09-02Infer 1.1.3
EU region and per-field thresholds.
- 2026-06-20Infer 1.1
Go SDK, 32k context.
Last updated 26 Nov 2026 · Edit this page