Quick start
- Python
- Node.js / TypeScript
- cURL
What changes vs OpenAI
Your full API key looks like
dpn-sk-<id>|<secret> — the dpn-sk- prefix is required by the gateway, and applies only here (the native API at https://api.deapi.ai takes the raw key). You can find it in your Dashboard → Settings → API Keys.
Everything else — request format, response schema, error envelope — follows the OpenAI specification.
Available models
deAPI runs open-source models, not OpenAI’s proprietary ones. Model IDs are native slugs (e.g.Flux1schnell, Kokoro, WhisperLargeV3) — not OpenAI model names. This is by design.
Use GET /v1/models to fetch the current list:
Supported endpoints
Migration examples
Image generation (DALL-E → deAPI)
Before (OpenAI):api_key, base_url, and model:
Text-to-speech (OpenAI TTS → deAPI)
Before (OpenAI):mp3 only. Any other response_format is rejected with 400.
Kokoro supports the same six OpenAI voice aliases (alloy, echo, fable, onyx, nova, shimmer). Voice language is determined by the voice prefix, not the input text: af_/am_ → US English, bf_/bm_ → British English. See the TTS endpoint docs for the full voice list.Transcription (Whisper → deAPI)
Before (OpenAI):response_format values: "json" (default), "text", "verbose_json".
The maximum audio file size is 20 MB, subject to a global 75 MB request body cap. See Limits & Quotas → File Uploads for the full breakdown.
Embeddings
Before (OpenAI):encoding_format: "base64".
Framework integrations
Because deAPI uses the OpenAI API format, it works with any framework that accepts abase_url / api_base parameter.
LangChain
LlamaIndex
Vercel AI SDK
Environment variables
If your codebase already uses the standard OpenAI environment variables, override them at the process level — zero code changes required:Known differences
For the full list of models, supported parameters, and limits, see the Model Selection endpoint.
Next steps
Models
Discover all available models and their capabilities
Quickstart
Get your API key and make your first request
API v2 Reference
Full native API reference with all endpoints
Pricing
Pay-as-you-go rates per task and model