The OpenDunes API Gateway is OpenAI-Compatible
Swap two variables, the base URL and the key, and your existing OpenAI code runs through OpenDunes, billed in DA.
The OpenDunes API gateway speaks the standard OpenAI schema. If your code already talks to OpenAI, or to any OpenAI-compatible API, migrating is a two-line change: point the base URL at OpenDunes and swap in your dinar-funded key.
The gateway keeps the request and response shapes your OpenAI code already expects. No proprietary SDK, no rewrite.
The whole migration
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://opendunes.com/v1', // swapped
apiKey: process.env.OPENDUNES_API_KEY, // dinar-funded key
});That's it. Your model names, parameters, and streaming logic stay exactly as they are.
Frequently Asked Questions
Does it add latency?
The gateway is hosted locally, so the handshake happens in-country; onward routing adds only a few milliseconds, imperceptible in streaming completions.
Which frameworks work?
Anything that targets the OpenAI API — the official Python and JS SDKs, LangChain, LlamaIndex, and more.