OpenAI-compatible API access
One API key for leading models, billed in BDT.
Use the OpenAI SDK you already know. Top up in BDT and pay as you go.
- OpenAI-compatibleAPI
- BDTbilling
- Pay as you goUsage-based spending
curl https://api.oxrouter.link/chat/completions \ -H "Authorization: Bearer $GATEWAY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "auto-free", "messages": [ {"role": "user", "content": "Say hello from Dhaka"} ] }'
import os from openai import OpenAI client = OpenAI( base_url="https://api.oxrouter.link", api_key=os.environ["GATEWAY_API_KEY"], ) reply = client.chat.completions.create( model="auto-free", messages=[{"role": "user", "content": "Say hello from Dhaka"}], ) print(reply.choices[0].message.content)
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.oxrouter.link", apiKey: process.env.GATEWAY_API_KEY, }); const reply = await client.chat.completions.create({ model: "auto-free", messages: [{ role: "user", content: "Say hello from Dhaka" }], }); console.log(reply.choices[0].message.content);
Change the base URL and the key. The rest of your code stays the same.
From sign-up to first response
Five steps, all in the console, all in BDT.
Create an account
Your name, email, date of birth and a password.
Verify your email
Confirm your email address through the link we send you.
Top up
Use your free tokens, or buy a token pack.
Create a key
Copy it straight away. We show it once.
Call the API
Send requests to
/v1/chat/completions.
Models you can call
Pass the API id in the model field. Prices shown are USD per million tokens.
Which models you can use depends on your plan.
Browse all modelsPick what works for you
Every price is in BDT. Payments go through SSLCommerz.
Your first request is a few minutes away.
Create an account, top up and copy your key.