Console API and onboarding
Use the signed-in operator console at https://console.aimux.me. Its management API is rooted at /console/api and expects JSON on writes. Authentication uses Cloudflare Access. A product bearer belongs on the gateway host. An unauthenticated browser may receive a sign-in redirect before its request reaches the Worker.
| Step | Request | Response to retain |
|---|---|---|
| Create product | POST /products with {"name":"Example app"} |
Product id |
| Connect OpenRouter | POST /providers with the body below |
Provider id and provider_key_id |
| Map a chat model | POST /routes with {"model":"<MODEL_ID>","endpoint_type":"chat","provider_key_id":"<UPSTREAM_ID>"} |
Route id |
| Issue client credential | POST /product-keys with {"product_id":"<PRODUCT_ID>"} |
Client id and one-time key |
| Revoke client credential | DELETE /product-keys/<CLIENT_ID> |
Wait for success before testing revocation |
{ "name": "OpenRouter", "adapter": "openrouter", "product_id": "<PRODUCT_ID>", "secret": "<DEDICATED_UPSTREAM_KEY>"}The combined write creates the provider and its first encrypted upstream credential together. For another dedicated key on an existing provider, use Upstream keys. Providers with standard adapters supply the base URL. A self-hosted provider requires an approved HTTPS base URL.
List resources with GET, for example GET /providers?limit=10&offset=0. Follow next_offset until it is null. Use q for literal text filtering. Inspect /usage for provider token totals and /metrics for gateway outcomes. A client can read its own usage at https://aimux.me/v1/usage.
If an issued key can read /v1/key but inference returns 503 upstream_unavailable, inspect the route’s model, endpoint type, owning product, credential status and quota windows.