Skip to main content
All deAPI model endpoints use an asynchronous job queue. You submit a request, receive a request_id, and retrieve results using one of three methods:

Webhooks

Results pushed to your server (recommended).

WebSockets

Real-time updates with live previews.

Polling

Query /api/v2/jobs/{id} manually.

For most integrations, use webhooks. They’re the most reliable way to receive results without maintaining persistent connections or implementing polling logic.
With webhooks, deAPI sends an HTTP POST to your server when a job completes. Configure a global webhook URL in account settings, or override per-request:
Webhook payload (job.completed):
Why webhooks:
  • No polling required — results arrive automatically
  • Automatic retries with exponential backoff (up to 10 retries over ~24 hours)
  • Works with serverless and traditional backends
  • Secure with HMAC signature verification
Full Webhooks Documentation

WebSockets (Real-time)

For interactive applications that need instant feedback and live previews during generation:
Why WebSockets:
  • Instant updates (milliseconds latency)
  • Live preview images during generation
  • Progress percentage updates
  • Ideal for user-facing UIs
Full WebSockets Documentation

Polling (Fallback)

If webhooks or WebSockets aren’t feasible, poll the status endpoint:
Response fields:
Polling adds latency, wastes resources with unnecessary requests, and provides no live previews. Use webhooks or WebSockets when possible.
Get Job Results Endpoint Reference

Choosing a Method

Use webhooks as your primary method with WebSockets for UI updates. This gives you reliability (webhook retries) plus great UX (instant progress).

How Jobs Are Processed

Every model endpoint follows the same pattern:
1

Submit request

Send POST /api/v2/{resource}/{operation} with your parameters (optionally include webhook_url).
2

Receive request_id

Response contains request_id for tracking.
3

Job queued

Request enters the queue with status pending.
4

Worker processes

GPU worker picks up the job, status becomes processing.
5

Results delivered

Via webhook POST, WebSocket event, or polling response.
This queued model:
  • Keeps long-running jobs off the HTTP request path
  • Avoids timeout issues for video/audio generation
  • Enables efficient GPU scheduling across the distributed network
  • Provides a consistent pattern across all endpoints

Quick Reference