DrAI API Documentation
One API key. 18+ frontier AI models. One OpenAI-compatible endpoint. Build with GPT-5, Claude 4, DeepSeek V3, Gemini 2.5 Pro and more — in minutes, not days.
Updated Aug 16, 2026 · First request in 5 minutes →What is the DrAI API?
The DrAI API is a unified gateway to 18+ frontier and open-weight models — GPT-5, Claude 4, DeepSeek, Gemini, Llama, Qwen and more — behind a single, OpenAI-compatible interface. Write your integration once and switch models with a one-line change.
# Base URL for all API requests
https://api.dr-ai.top/v1
Because the API follows the OpenAI wire format, every SDK, library and tool that speaks OpenAI-compatible REST (the official openai Python & Node packages, LangChain, LlamaIndex, Vercel AI SDK, Open WebUI and hundreds more) works with DrAI out of the box — just point it at our base URL.
Authentication
Every request must include an API key in the Authorization header. You create keys in the DrAI dashboard (Sign in → API Keys → Create key). Keys start with sk-; keep them server-side and never commit them to client code.
curl https://api.dr-ai.top/v1/chat/completions \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-5-mini","messages":[{"role":"user","content":"Hello!"}]}'
Start building in 5 minutes
Three steps from zero to your first response. No credit card required.
1 · Get your API key
Create a free account and generate a key from the dashboard. Keys are created instantly and scoped to your subscription.
Create your key →2 · Send your first request
One curl command against /v1/chat/completions. Copy-paste it and you are live.
3 · Use your favorite SDK
Python, Node.js, LangChain or raw HTTP — the OpenAI-compatible SDKs work unchanged with our base URL.
Pick your language →Core endpoints
Everything you need day one. The full contract — parameters, request/response bodies and error codes — lives in the API Reference.
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/chat/completions | Chat & agent completions on any model. Supports streaming (SSE), function calling and vision inputs. |
| GET | /v1/models | List the models available to your account with their IDs. |
| POST | /v1/embeddings | Text embeddings for RAG and semantic search. |
| POST | /v1/images/generations | Image generation with GPT Image and Midjourney models. |
SDKs & integrations
All OpenAI-compatible clients work. These are the most common setups.
🟩 Node.js / TypeScript
npm install openai — works in Node, Deno and Bun, plus the Vercel AI SDK.
🔗 LangChain / LlamaIndex
Drop-in via ChatOpenAI(base_url=...) — agents, RAG and tools just work.
🧰 Any OpenAI-compatible tool
Open WebUI, LobeChat, n8n, Dify, Continue, Cursor-style agents — point them at https://api.dr-ai.top/v1.
Get started in 5 minutes
Create your free account, grab an API key and make your first request today. No credit card required.
Get Started — free Read the Quickstart