Use the OpenDunes API from Go via any OpenAI-compatible client library.
OpenDunes is OpenAI-compatible, so any Go client that supports a custom base URL works out of the box. The examples below use openai-go, the official Go library from OpenAI. Its request parameter helpers change between releases, so treat the per-resource pages' wire surface (curl + JSON) as the source of truth and check your installed SDK version's own documentation for the exact call shape.
Point the client at https://opendunes.com/api/v1 and pass your key from the environment:
See Chat for a first request (with the exact wire surface it maps to).
Set your key before running:
| Resource | Status | Page |
|---|---|---|
| Chat | Live | Send messages, stream responses |
| Models | Live | Browse and inspect the model catalog |
| Credits | Live | Check balance and usage in DA |
| API Keys | Live | Create and manage API keys |
| Analytics | Live | Request and token usage history |
| Embeddings | Live | Vector embeddings |
| Generations | Not yet available | Per-request cost lookup |
| Endpoints | Not yet available | Per-model provider availability |
| Providers | Not yet available | Provider routing |
| Benchmarks | Not yet available | Model benchmarks |
| Guardrails | Not yet available | Content safety rules |
| Observability | Not yet available | Logs and traces |
| Organization | Not yet available | Org-level management |
| Workspaces | Not yet available | Isolated workspaces |
| Presets | Not yet available | Saved parameter presets |
| OAuth | Not yet available | OAuth PKCE flow |
| Datasets | Not yet available | Dataset management |
| Files | Not yet available | File uploads |
| Images | Live | Image inputs and outputs |
| Responses | Not yet available | Responses API |
| Rerank | Live | Result reranking |
| Speech-to-Text | Live | Audio transcription |
| Text-to-Speech | Live | Speech synthesis |
| Video Generation | Live | Video generation |