https://api.deapi.ai and require authentication via Authorization: Bearer <API_KEY> header.
Each POST endpoint has a corresponding
/price endpoint to estimate costs before execution.Images
| Method | Endpoint | Description | Docs |
|---|---|---|---|
POST | /api/v2/images/generations | Generate image from text prompt | → |
POST | /api/v2/images/generations/price | Calculate image generation price | → |
POST | /api/v2/images/edits | Edit/transform an image | → |
POST | /api/v2/images/edits/price | Calculate image edit price | → |
POST | /api/v2/images/ocr | Extract text from image (OCR) | → |
POST | /api/v2/images/ocr/price | Calculate OCR price | → |
POST | /api/v2/images/background-removals | Remove image background | → |
POST | /api/v2/images/background-removals/price | Calculate bg removal price | → |
POST | /api/v2/images/upscales | Upscale image resolution | → |
POST | /api/v2/images/upscales/price | Calculate image upscale price | → |
Videos
| Method | Endpoint | Description | Docs |
|---|---|---|---|
POST | /api/v2/videos/generations | Generate video from text prompt | → |
POST | /api/v2/videos/generations/price | Calculate video generation price | → |
POST | /api/v2/videos/animations | Animate image into video | → |
POST | /api/v2/videos/animations/price | Calculate animation price | → |
POST | /api/v2/videos/audio-syncs | Generate video from audio + prompt | → |
POST | /api/v2/videos/audio-syncs/price | Calculate audio-sync price | → |
POST | /api/v2/videos/replacements | Replace character in video | → |
POST | /api/v2/videos/replacements/price | Calculate replacement price | → |
POST | /api/v2/videos/upscales | Upscale video resolution | → |
POST | /api/v2/videos/upscales/price | Calculate video upscale price | → |
Audio
| Method | Endpoint | Description | Docs |
|---|---|---|---|
POST | /api/v2/audio/speech | Generate speech from text (TTS) | → |
POST | /api/v2/audio/speech/price | Calculate TTS price | → |
POST | /api/v2/audio/music | Generate music from text | → |
POST | /api/v2/audio/music/price | Calculate music price | → |
POST | /api/v2/audio/transcriptions | Transcribe audio/video (unified) | → |
POST | /api/v2/audio/transcriptions/price | Calculate transcription price | → |
Embeddings
Prompt Enhancement
AI-powered prompt optimization tools. These endpoints share the v1 URL path — v2 clients call them without any change in authentication or rate limits.| Method | Endpoint | Description | Docs |
|---|---|---|---|
POST | /api/v1/client/prompt/image | Image prompt booster | → |
POST | /api/v1/client/prompt/video | Video prompt booster | → |
POST | /api/v1/client/prompt/speech | Speech prompt booster | → |
POST | /api/v1/client/prompt/image2image | Image-to-image prompt booster | → |
GET | /api/v1/client/prompts/samples | Generate sample prompts | → |
Utilities
Workflow
Typical API usage follows this pattern:Submit job
Call the main endpoint (e.g.,
POST /api/v2/images/generations). Response contains request_id.Poll or receive via webhook
Call
GET /api/v2/jobs/{request_id} or use webhooks / WebSockets for push updates.Response Formats
Response structure varies by endpoint. See individual endpoint documentation for exact schemas.