AI ROUTER Developer utility

OpenAI-compatible API migration

Build a safe request example before you change your code.

Choose a model ID, add a test message, and get curl, Python, or Node.js code. The generator runs entirely in this browser.

1. Configure an example

Request details

Use the model ID currently shown in your dashboard or returned by authenticated /v1/models.

2. Copy a starter

Generated code

Replace the placeholder environment variable locally. Never paste a live API key into a public Space, issue, or discussion.

Localized starting point

Continue in your preferred language

Three-step migration

  1. Create an account and review the current service rules.
  2. Create an API key and choose a model available to that key.
  3. Set your SDK base URL to the generated value and test a small request.

Keep integrations predictable

Model availability, plans, and pricing can change. Read the dashboard rather than hard-coding a model list or assuming a fixed plan.

Independent service

AI ROUTER is not an official OpenAI or Hugging Face service. “OpenAI-compatible” refers only to compatible request patterns.