CoolFace
Apppublic

ai-router/openai-compatible-api-quickstart

sourceHugging Facemitupdated 2mo agoView on Hugging Face
1likes
App README

AI ROUTER OpenAI-compatible API migration playground

This is a browser-only request-example generator for developers moving an existing OpenAI-compatible integration to AI ROUTER. It creates curl, Python, and Node.js examples locally in the browser; it never receives, stores, or sends an API key.

What it helps with

  • Use a current model ID from the AI ROUTER dashboard or authenticated /v1/models response.
  • Generate an OpenAI-compatible /v1/chat/completions request.
  • See the base_url change needed by common OpenAI SDKs.
  • Open the matching AI ROUTER landing page for one of 48 supported languages.

Start with AI ROUTER

Create an account, review the current plans, create an API key, and choose a model shown for that key in the dashboard. Open the AI ROUTER website.

Current new-user offer

Eligible new users receive 20U in total: 5U is available at registration and the remaining 15U unlocks after an equal-value top-up. Eligible daily check-ins earn at least USD 1 in token credit. Eligibility, availability, risk controls, regional restrictions, and current dashboard rules apply.

Localized developer notes

The Space language selector uses a matching localized destination for every supported language. The source repository also includes 48 concise, language-specific developer notes in `docs/locales/`.

Service boundary

AI ROUTER is an independent service. “OpenAI-compatible” describes the request/response format; it does not mean that AI ROUTER is affiliated with, endorsed by, or an official service of OpenAI or Hugging Face. Do not use the service for spam, abuse, or activity that violates applicable policies.