Three-step migration
- Create an account and review the current service rules.
- Create an API key and choose a model available to that key.
- Set your SDK base URL to the generated value and test a small request.
OpenAI-compatible API migration
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
Use the model ID currently shown in your dashboard or returned by authenticated /v1/models.
2. Copy a starter
Replace the placeholder environment variable locally. Never paste a live API key into a public Space, issue, or discussion.
Localized starting point
Model availability, plans, and pricing can change. Read the dashboard rather than hard-coding a model list or assuming a fixed plan.
AI ROUTER is not an official OpenAI or Hugging Face service. “OpenAI-compatible” refers only to compatible request patterns.