API quickstart

Ombriel is reached with one HTTP POST. It is not an OpenAI-compatible endpoint: the path, the request body and the response are Ombriel's own, and the examples below are plain HTTP rather than a vendor SDK.

Testing and research scale
This API is open to testers and researchers for evaluation at small scale. It is not offered for production volume, and a tester key carries a spending cap we set. If you want Ombriel behind something your own users depend on, do not start here. Tell us about the load and we will be glad to show you what Ombriel does at production scale. Use of this surface is covered by the API terms.

Base URL and authentication

Endpoint POST https://<gateway-host>/v1/ombriel/run
Gateway host Issued with your key, in Canada or in the United States.
Auth Ocp-Apim-Subscription-Key: <your key>
Content type application/json

There are two gateways, one in Canada and one in the United States, and they are the whole of it. There is no European endpoint, and that is a product decision rather than a gap. We do not publish the hostnames: you receive the one your key is issued against, because a key is scoped to a single gateway and a key posted at the other one is refused. The API is reachable only through the gateway, so a request that arrives without the subscription key header is refused before it reaches the engine.

Keys are issued per organisation. Treat a key as a credential: send it only from a server you control, never from a browser or a mobile app, and rotate it if it is exposed.

What you send

Field What it is
product "ombriel" or "ombriel-fr". The product carries the language.
mode "long-context", "answer" or "agentic". Defaults to long-context.
instructions The brief. In answer mode this is the question itself.
document The source text. Required in long-context mode, and only there.
grounding Optional. Passed to every seat identically.

There is deliberately no language parameter. The product carries the language, because a second language input is a second thing that can disagree with the first: a run once came back in a language nobody had asked for while both inputs looked correct. One source of truth, and it is product.

One request with curl

curl https://<gateway-host>/v1/ombriel/run \
  -H "Ocp-Apim-Subscription-Key: $OMBRIEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "product": "ombriel",
    "mode": "answer",
    "instructions": "Summarise the trade-offs in this decision."
  }'

The same request in Python

Plain HTTP. There is no Ombriel SDK and the OpenAI client cannot be pointed at this endpoint: it would POST to a path that does not exist, with a body the engine does not read, under a header it refuses.

import os, requests

response = requests.post(
    "https://<gateway-host>/v1/ombriel/run",
    headers={
        "Ocp-Apim-Subscription-Key": os.environ["OMBRIEL_API_KEY"],
        "Content-Type": "application/json",
    },
    json={
        "product": "ombriel",
        "mode": "answer",
        "instructions": "Summarise the trade-offs in this decision.",
    },
    timeout=600,
)
response.raise_for_status()
result = response.json()

print(result["page"])
print(result["run_id"])

Set a generous timeout. A run deliberates across several engines before it answers, so it is slower than a single model call and your client spends most of that time waiting.

What comes back

Field What it is
run_id Identifies the run. ⭐ Keep it. One run produces several ledger rows, and this is the one identifier an invoice line and a support request can both name.
mode The mode the run actually used.
page The result.

Usage fields

Every response carries two blocks at the top level, usage and billed. Ombriel runs at one reasoning level, high, and reasoning tokens are billed as output, so the output count on your invoice includes them.

Field Type What it is
usage.input_tokens integer Tokens you sent.
usage.cached_input_tokens integer or null A subset of input_tokens, never an addition to it. null means no split was recorded on this call, which is not the same as nothing having been cached. The field may also be absent on an older server, which says the same thing.
usage.output_tokens integer Tokens returned, reasoning tokens included.
usage.calls_recorded integer Ledger rows written for the call.
usage.metering_error string or null Set when metering did not complete.
billed.usd decimal The charge for the call, in United States dollars.
billed.rate_input_per_1m_usd, billed.rate_output_per_1m_usd decimal The rates the charge was computed at. They are published with every response so that a question about a charge months later can be answered from the response itself rather than from the amount alone.
billed.rate_cached_input_per_1m_usd decimal or null null means this product has no cached rate, which is a different statement from a rate of zero.
billed.recorded boolean false means the amount was computed but not stored. Do not read a figure as proof that a charge was recorded.
elapsed_ms, over_sync_budget number, boolean Also at the top level, beside the two blocks.

There is no total. The response carries no total_tokens field. A client that wants one adds usage.input_tokens and usage.output_tokens itself.

Measured usage by task type is available on request.

Rate limits

Limit Value
Requests per minute 100, per subscription

A request over the limit returns 429 with a Retry-After header. Wait the stated delay rather than retrying immediately. A 429 carrying hourly_capacity_exceeded is a different condition: a ceiling across the service rather than on your key, and it clears on its own. Handle both the same way, by backing off.

Error codes

Code Meaning What to do
400 Malformed request. Check the JSON body and the required fields.
401 Missing or invalid key. Check the Authorization header.
403 Key not permitted for this engine or tier. Get in touch.
404 Unknown engine name. Check the model field.
422 Request understood but cannot be processed. Read the message; often a context length.
429 Rate limit or quota reached. Back off on Retry-After.
500, 503 Server error or capacity. Retry with exponential backoff. Report persistent failures.

Data handling

Zero data retention: no prompts and no outputs are stored after the session. Operational metadata is kept, specifically token counts, timing and errors. See the data policy for what that means in detail, and hosting and data for where inference runs on each tier.

Support

Write to support@theuntraceable.ai. Include the request id from the response headers if you have one; it lets us find the event without you sending us any content.