Skip to main content
deAPI’s OpenAI-compatible API gives you access to image generation, speech synthesis, transcription, video generation, and embeddings — at lower cost, on decentralized GPU infrastructure. Switch from OpenAI by changing two parameters. Your existing code stays unchanged. This is the same approach used by Groq, Together AI, Fireworks AI, and other leading inference providers.

Quick start

Get your API key at app.deapi.ai/dashboard. New accounts receive a $5 bonus — no credit card required.

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:
Response follows the OpenAI format:
Models are added and updated regularly. For the full, always-current list with capabilities, limits, and defaults, see the Model Selection endpoint and the Models guide.

Supported endpoints


Migration examples

Image generation (DALL-E → deAPI)

Before (OpenAI):
After (deAPI) — change api_key, base_url, and model:

Text-to-speech (OpenAI TTS → deAPI)

Before (OpenAI):
After (deAPI):
Supported output format: 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):
After (deAPI):
Supported 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):
After (deAPI):
Supports single string and array input. Supports encoding_format: "base64".

Framework integrations

Because deAPI uses the OpenAI API format, it works with any framework that accepts a base_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:
For multi-provider setups (e.g. OpenAI for chat, deAPI for images and audio), instantiate separate clients:

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