Skip to main content
All endpoints use base URL https://api.deapi.ai and require authentication via Authorization: Bearer <API_KEY> header.
Each generation/analysis endpoint has a corresponding /price-calculation endpoint to estimate costs before execution.

Generation

Create images, videos, audio, and embeddings from text or images.
MethodEndpointDescriptionDocs
POST/api/v1/client/txt2imgGenerate image from text prompt
POST/api/v1/client/txt2img/price-calculationCalculate text-to-image price
POST/api/v1/client/txt2videoGenerate video from text prompt
POST/api/v1/client/txt2video/price-calculationCalculate text-to-video price
POST/api/v1/client/img2videoGenerate video from image (animate)
POST/api/v1/client/img2video/price-calculationCalculate image-to-video price
POST/api/v1/client/txt2audioGenerate speech from text (TTS)
POST/api/v1/client/txt2audio/price-calculationCalculate text-to-speech price
POST/api/v1/client/txt2embeddingGenerate embeddings from text
POST/api/v1/client/txt2embedding/price-calculationCalculate embedding price

Analysis

Extract text and transcriptions from images, videos, and audio.
MethodEndpointDescriptionDocs
POST/api/v1/client/img2txtExtract text from image (OCR)
POST/api/v1/client/img2txt/price-calculationCalculate OCR price
POST/api/v1/client/vid2txtTranscribe video from URL (YouTube, X)
POST/api/v1/client/vid2txt/price-calculationCalculate video transcription price
POST/api/v1/client/aud2txtTranscribe X Spaces audio
POST/api/v1/client/aud2txt/price-calculationCalculate X Spaces transcription price
POST/api/v1/client/videofile2txtTranscribe uploaded video file
POST/api/v1/client/videofile2txt/price-calculationCalculate video file transcription price
POST/api/v1/client/audiofile2txtTranscribe uploaded audio file
POST/api/v1/client/audiofile2txt/price-calculationCalculate audio file transcription price

Transformation

Modify existing images.
MethodEndpointDescriptionDocs
POST/api/v1/client/img2imgTransform image with text prompt
POST/api/v1/client/img2img/price-calculationCalculate image transformation price
POST/api/v1/client/img-rmbgRemove image background
POST/api/v1/client/img-rmbg/price-calculationCalculate background removal price
POST/api/v1/client/img-upscaleUpscale image resolutionComing soon
POST/api/v1/client/img-upscale/price-calculationCalculate image upscale priceComing soon

Utilities

Account management and job status tracking.
MethodEndpointDescriptionDocs
GET/api/v1/client/balanceGet current account balance
GET/api/v1/client/request-status/{request_id}Check job status and get results
GET/api/v1/client/modelsList all available models

Workflow

Typical API usage follows this pattern:
1

Check available models

Call GET /api/v1/client/models to get current models and their parameters.
2

Calculate price (optional)

Call the /price-calculation endpoint with your parameters to estimate cost.
3

Submit job

Call the main endpoint (e.g., POST /api/v1/client/txt2img) with your parameters. Response contains request_id.
4

Poll for results

Call GET /api/v1/client/request-status/{request_id} until status is done or error.
5

Download result

When status is done, use result_url to download your generated content.

Response Formats

{
  "data": {
    "request_id": "c08a339c-73e5-4d67-a4d5-231302fbff9a"
  }
}
Response structure varies by endpoint. See individual endpoint documentation for exact schemas.
See Errors for detailed error handling documentation.