[API reference]

API reference

The Topo API is a superset of the OpenAI API: same paths, same request and response shapes, plus one topo object for routing, verification and settlement.

Base URL

Every endpoint lives under one base URL. Requests are served from the nearest healthy region automatically.

url
https://api.topolabs.ai/v1

Endpoints

Headers

Send JSON bodies. Every response carries an x-topo-request-id header: quote it when you write to support.

HeaderRequiredDescription
AuthorizationYesBearer followed by your API key.
Content-TypeOn POSTAlways application/json.
Topo-VersionNoPin a dated API version such as 2026-10-01. Defaults to the version your key was created on.
Idempotency-KeyNoAny unique string. Retries with the same key are served and billed once.

The topo object

Topo extensions live under one topo field so they never collide with OpenAI parameters. SDKs that reject unknown fields can send it through extra_body.

  • topo.regionstring

    Keep the request in one region, such as eu-west-2. Max and Enterprise plans.

  • topo.prioritystring

    priority skips the standard queue at peak. Builder plans and up.

    Default: standard

  • topo.verificationstring

    strict checks every response with three attestors before release. See Verification.

    Default: sampled

  • topo.max_coststring (USDT)

    Reject the request with 402 if its estimated cost is higher than this.

  • topo.fallbackstring[]

    Model IDs to try, in order, when the requested model has no healthy capacity.

Versioning

Breaking changes ship as a new dated version. Older versions stay supported for at least 12 months after a successor ships, and every deprecation is announced in the changelog and by email.