Use any OpenAI-compatible SDK to call the OpenDunes API — no special client required.
OpenDunes is OpenAI-compatible, so the official OpenAI SDK — and any community SDK built on the same interface — works out of the box. Point the client at the OpenDunes base URL, set your API key, and call models by their provider/model slug.
Install the SDK for your language, set OPENDUNES_API_KEY, and you're ready.
from openai import OpenAI
import os
client = OpenAI(
base_url="https://opendunes.com/v1",
api_key=os.environ["OPENDUNES_API_KEY"],
)
resp = client.chat.completions.create(
model="anthropic/claude-sonnet-5",
messages=[{"role": "user", "content": "Marhba! Say hello in one line."}],
)
print(resp.choices[0].message.content)Each guide covers installation, configuration, and patterns specific to that ecosystem.
openai npm package, ESM + CJS, streaming, type safety.openai PyPI package, sync and async clients, streaming.openai-go package, idiomatic Go patterns.The broader OpenAI-compatible ecosystem — LangChain, LlamaIndex, Vercel AI SDK, and dozens of other tools — works with OpenDunes the same way: swap the base URL to https://opendunes.com/v1 and authenticate with your key.
See the OpenAI SDK community page for the full list of third-party clients.