Skip to main content
All routes are served from https://router.triw.io. Authentication is a Triw key in Authorization: Bearer sk-... unless a route states otherwise.

OpenAI-compatible

POST /v1/images/variations is registered but replies as not implemented — the upstream providers Triw relays do not expose it.

Anthropic-compatible

x-api-key: sk-... is accepted on these routes as well as Authorization.

Gemini-compatible

x-goog-api-key: sk-... is accepted here.

Midjourney task API

Midjourney is task-based: submit returns an id, then you poll until the task finishes. Availability depends on whether the operator connected a Midjourney channel.

Console API

The dashboard itself is a client of the gateway; these routes are session-authenticated and are not for third-party integrations: Use /v1/* for application traffic. The /api/* surface changes with the product and is not covered by stability guarantees.

Choosing a protocol

One key works across all three. See Authentication for header details and Errors for response codes.