Use the OpenAI Node.js SDK to call the OpenDunes API from TypeScript or Node.
The OpenDunes API is OpenAI-compatible, so you can use the official openai npm package without any wrapper — just point it at the OpenDunes base URL and supply your key.
Store your key in an environment variable — never hard-code it. You can create and rotate keys from your dashboard.
Models are referenced by provider/model slug. Browse the full catalog at /models or fetch it programmatically via Models.
| Resource | Status | Path |
|---|---|---|
| Chat | Live | client.chat.completions.create(...) |
| Models | Live | GET /api/models |
| Credits | Live | GET /v1/credits |
| API Keys | Live | /v1/management/keys |
| Analytics | Live | GET /v1/activity |
| Embeddings | Live | — |
| Generations | Not yet available | — |
| Endpoints | Not yet available | — |
| Providers | Not yet available | — |
| Benchmarks | Not yet available | — |
| Guardrails | Not yet available | — |
| Observability | Not yet available | — |
| Organization | Not yet available | — |
| Workspaces | Not yet available | — |
| Presets | Not yet available | — |
| OAuth | Not yet available | — |
| Datasets | Not yet available | — |
| Files | Not yet available | — |
| Images | Live | — |
| Responses | Not yet available | — |
| Rerank | Live | — |
| Speech-to-Text | Live | — |
| Text-to-Speech | Live | — |
| Video Generation | Live | — |