Skip to content

Connect to AiMUX

AiMUX serves OpenAI-compatible chat at https://aimux.me/v1/chat/completions. Each product has its own upstream credentials. Client applications authenticate with an AiMUX product key.

  1. Open the console and sign in with Cloudflare Access.
  2. Create a product. Under Providers, choose the adapter and product, then enter the provider credential. Hosted adapters supply the base URL. Self-hosted adapters require an approved HTTPS origin.
  3. Under Routes, map a model and endpoint type to the connected credential.
  4. Under Product keys, choose the product and save. Copy the key at issuance. You can edit model restrictions, limits and routing policy later.

Keep keys in your server environment. Check a client credential before making a billable request.

Terminal window
curl https://aimux.me/v1/key -H "Authorization: Bearer $AIMUX_PRODUCT_KEY"

Use the gateway reference for request formats and the AI index for machine-readable Markdown.