> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deapi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Pricing

> deAPI pay-as-you-go pricing: example rates for LLMs, image, video, audio, transcription and embedding models, and how to get exact prices from the API.

Example pricing is shown below for reference; exact, up-to-date rates are always available from the API.

**deAPI** uses a **pay-as-you-go pricing model**, where costs are calculated dynamically per task based on the resource usage, such as resolution, steps, duration, or number of output characters. The pricing examples shown on the public site ([https://deapi.ai/#pricing](https://deapi.ai/#pricing)) serve as reference points; final cost is determined by the API at runtime depending on the selected model and parameters.

### Pricing Overview

> [!NOTE]
>
> Up-to-date prices are always available via the `/price` endpoint for the selected model (v2) or `/price` (v1).

| Task Type | Pricing Metric | Example Rate | Endpoint (v2) |
| - | - | - | - |
| Image Generation (Flux.1 schnell) | resolution × steps | 0.00136 USD for 512x512, 4 steps | `POST /api/v2/images/generations` |
| Image Generation (Z-Image-Turbo INT8) | resolution × steps | 0.0034 USD for 512x512, 4 steps | `POST /api/v2/images/generations` |
| Image Generation (Flux.2 Klein 4B BF16) | resolution × steps | 0.00186 USD for 512x512, 4 steps | `POST /api/v2/images/generations` |
| Image Edit | steps (style transfer) | \~0.0179 USD for 512x512, 20 steps | `POST /api/v2/images/edits` |
| Text-to-Speech (TTS) | number of characters | 0.77 USD per 1 M characters | `POST /api/v2/audio/speech` |
| Text-to-Music | duration + inference steps | Use `/price` endpoint | `POST /api/v2/audio/music` |
| Video Generation | video duration + resolution | 0.001737 USD for 2s, 256×256 | `POST /api/v2/videos/generations` |
| Video Animation (Image-to-Video) | source image + motion interpolation | 0.001737 USD for 2s, 256×256 | `POST /api/v2/videos/animations` |
| Transcription (URL + file, all sources) | duration | from 0.05 USD per hour | `POST /api/v2/audio/transcriptions` |
| Transcription — TikTok & Instagram (WhisperLargeV3Ct2) | video length band | 0.015–0.105 USD per video | `POST /api/v2/audio/transcriptions` |
| Synchronous transcription (FluidSpeechPro, clips up to 60 s) | duration | 0.0004 USD per second (0.024 USD per minute) | `POST /api/v2/audio/transcriptions/sync` |
| Source metadata add-on (YouTube / TikTok / Instagram) | per request | 0.005 USD | `include_metadata: true` |
| Word timestamps + diarization add-on (WhisperLargeV3Ct2) | +50% of transcription price | segment timestamps are free | `ts_level: "word"`, `diarize: true` |
| Image OCR | input resolution | 0.00928 USD per image at 1024×1024 | `POST /api/v2/images/ocr` |
| Embeddings | number of tokens processed | 0.000084 USD per 1,000 tokens | `POST /api/v2/embeddings` |
| Image Background Removal | per image | Use `/price` endpoint | `POST /api/v2/images/background-removals` |
| Image Upscale | resolution × scale | Use `/price` endpoint | `POST /api/v2/images/upscales` |
| Video Upscale | resolution × duration × scale | Use `/price` endpoint | `POST /api/v2/videos/upscales` |
| Web Search | mode + number of results | 0.0048 USD (`quick`) / 0.0084 USD (`balanced`) per search, up to 10 results | `POST /api/v2/web/search` |
| Web Contents | pages read × content types | 0.0012 USD per page per content type | `POST /api/v2/web/contents` |
| Chat completions (LLMs) | input + output tokens | from 0.105 USD per 1M input and 0.42 USD per 1M output tokens (`seed-2.0-mini`) | `POST https://oai.deapi.ai/v1/chat/completions` |

> [!NOTE]
>
> **LLMs have no `/price` endpoint.** Their per-token prices are in `pricing` on each LLM entry of `GET https://oai.deapi.ai/v1/models` (USD per token, so multiply by 1,000,000 for the price per 1M tokens), and every chat response reports what it cost in `usage.cost` and the `X-DeAPI-Cost` header. Reasoning tokens are billed as output tokens. All 13 models and their prices: [Chat completions](https://docs.deapi.ai/openai-compatibility.md#chat-completions-llms).

***

### Partner (external) model pricing

Some models in the catalogue run on our partners' infrastructure rather than on deAPI's own GPU network — see [Partner (external) models](https://docs.deapi.ai/models.md#partner-external-models). You can recognise them by the `experimental` tag and `status: test_model` in the model list. They are billed differently from native fleet models.

> [!WARNING]
>
> For partner models, `/price` returns an **estimate, not a fixed rate**. The response carries `is_estimated: true`, and the amount you are finally charged is settled **after** the job completes.

Native fleet models are priced from a formula over your request parameters, so the quote is exact. Partner models are priced by the partner, so deAPI quotes an estimate up front and reconciles it once the partner reports the actual cost.

What this means in practice:

* **Read `is_estimated` on every `/price` response.** When it is `true`, treat the number as indicative and budget some headroom.
* **The final amount lands on the job, not on the quote.** Poll `GET /api/v2/jobs/{request_id}` — while the job runs, `price` is `null`; once it finishes, `price.amount` first appears with `is_estimated: true`, and switches to `is_estimated: false` once settled. Your balance is charged at that point.
* **Only the settled figure is authoritative.** Do not reconcile your own accounting against the estimate or against the unsettled amount on a freshly finished job.
* Estimate accuracy is best for the model's default resolution and lower for unusual sizes or quality tiers.

A failed job is normally refunded — `refunded: true` and `price.amount: 0`. Note that `refunded: false` covers two different situations: a charge deliberately kept, and a job that failed before it was ever charged. It does not by itself mean you were billed.

***

### Pricing by Task

**Image Generation**

* Users define width, height, steps via the API or UI.
* Public example: Flux Schnell model is used to estimate cost in the UI; for example, 512x512 at 4 steps gives **0.00136 USD**. For the Z-Image-Turbo INT8 model with the same parameters, the price is **0.0034 USD**, but the advantage is very realistic images.
* Higher resolutions and more steps yield better quality but incur higher cost.
* Important: For models other than Flux Schnell, pricing is model-specific and calculated on the server side.

**Text-to-Speech (TTS / Speech Generation)**

* Charged per character in your input (e.g. 1M characters → **0.77 USD**).
* Playback speed modifiers:
  * Standard (1.0×): base cost
  * Fast (2.0×): 0.5× the base cost
  * Slow (0.5×): 2.0× the base cost
* Useful tip: using faster playback (2×) for drafts can reduce cost by \~50%.
* All three TTS modes (custom\_voice, voice\_clone, voice\_design) use the same per-character pricing model.

**Text-to-Music (Music Generation)**

* Price depends on track duration and the number of inference steps. Duration is model-specific: **10–300 s** on `AceStep_1_5_XL_Turbo_INT8` and **30–300 s** on `AceStep_1_5_XL_Base_INT8` (read `min_duration` / `max_duration` from the models endpoint for the current range).
* `MiniMaxMusic3_11B_INT8` accepts **20–300 s** with steps fixed at 30. On this model `duration` is an upper limit: the song ends on its own when the lyrics run out, but the price is always for the duration you request.
* We recommend the XL models: `AceStep_1_5_XL_Turbo_INT8` (fast, 8 steps) and `AceStep_1_5_XL_Base_INT8` (more steps, higher quality).
* Turbo models use fewer steps (e.g. 8) and are cheaper; base models use more steps (e.g. 32+) for higher quality.
* Use the `/price` endpoint with your `model`, `duration`, and `inference_steps` to get exact pricing before generation.

**Text-to-Video**

* Price depends on clip length (`frames / fps`) and resolution. Length is model-specific: **1–4 s** on `Ltxv_13B_0_9_8_Distilled_FP8` (30–120 frames @ 30 fps), **\~2–10 s** on `Ltx2_3_22B_Dist_INT8` and `Ltx2_5_22B_Dist_INT8` (49–241 frames @ 24 fps).
* Example public rate: **0.001737 USD** for a 2-second clip at 256x256.
* You can scale resolution or duration, but cost increases accordingly.

**Image Edit (Image-to-Image)**

* Transforms an existing image based on a new prompt or style.
* Pricing scales with the number of inference steps and GPU time required — similar to Text-to-Image tasks.
* Example: a 20-step transformation costs roughly the same as generating a 512×512 image.
* Fewer steps → faster & cheaper transfers; more steps → better fidelity.

**Image-to-Video**

* Transform a static image into a motion clip with interpolation. Clip length follows the same per-model frame/fps limits as Text-to-Video above.
* Example: 256x256 for 2 seconds costs **0.001737 USD**.
* Use lower resolution or shorter duration to reduce cost.
* Use motion parameters in prompts to guide movement.
* For reference inputs, send `ref_images_count` (0–9, default `0`) and `ref_videos_count` (0–1, default `0`) to [Video Animation Price Calculation](https://docs.deapi.ai/api/v2/videos/animations-price.md); no file upload is needed for a quote. The source image does not count as a reference image.
* More than 2 reference images applies a **×2** multiplier; any reference video applies **×3**. Only the highest multiplier applies — 4 reference images plus 1 video is **×3**, not ×6. Exactly 2 reference images adds no surcharge, and reference audio adds no surcharge.

**Video-to-Text (Transcription)**

* Billed per hour of video processed.
* Sample public rate: **0.05 USD per hour**.
* For 5 minutes, cost is estimated at **0.0089 USD**.
* Supports timestamps, multilingual transcription, and batching for better throughput.

**Transcription — WhisperLargeV3Ct2 (TikTok & Instagram length bands)**

`WhisperLargeV3Ct2` adds word-level timestamps, per-segment confidence scores and speaker diarization. It is also the only model that transcribes TikTok — a TikTok URL sent with any other model is rejected with `422`. \
TikTok and Instagram videos share one fixed price list. The price depends on the video length and is as follows:

| Video length | Price per video |
| - | - |
| up to 1 min | 0.015 USD |
| up to 2 min | 0.0225 USD |
| up to 3 min | 0.030 USD |
| up to 5 min | 0.045 USD |
| up to 10 min | 0.0825 USD |
| over 10 min | 0.105 USD |

* The band is selected from the **whole video length, rounded up**: a 1:05 clip falls into the *up to 2 min* band and costs 0.0225 USD.

* The *over 10 min* band is flat — a 12-minute and a 30-minute video both cost 0.105 USD.

* The same bands apply to both platforms: a 41-second Instagram reel and a 41-second TikTok each cost 0.015 USD.

* [Video Description](https://docs.deapi.ai/api/v2/videos/descriptions.md) (`Marlin_2B`) uses the same card for TikTok and Instagram, scaled by the preset: ×0.75 for `fast`, ×1 for `balanced`, ×1.5 for `detail`. It accepts TikTok and Instagram videos up to 10 minutes, so the *over 10 min* band does not apply there.

Every other source — YouTube, X, Twitch, Kick, uploaded files — is billed by duration.

**Segment timestamps are free.** `include_ts: true` with the default `ts_level: "segment"` costs the same as a plain transcription. On `WhisperLargeV3Ct2` only word-level timestamps (`ts_level: "word"`) and speaker diarization (`diarize: true`) add **+50%** to the transcription price — diarization carries that surcharge at any granularity, `segment` included.

**Synchronous transcription — FluidSpeechPro**

* [Synchronous Transcription](https://docs.deapi.ai/api/v2/audio/transcriptions-sync.md) returns the transcript of a clip up to 60 seconds in the response itself.
* Billed per second of audio: **0.0004 USD per second** (0.024 USD per minute), with no per-request fee. A 10-second voice note costs 0.004 USD.
* Segment and word timestamps are included in the price.
* A call that answers `503` or `422` is not charged.

**Source metadata add-on (YouTube, TikTok & Instagram)**

* Setting `include_metadata: true` adds a flat **0.005 USD per request** on top of the transcription price.
* The surcharge applies only to sources that can actually return metadata. An uploaded file has no source to describe, always returns `null`, and is never charged for the flag.

**Image-to-Text (OCR / VLM)**

* Charged **per image, based on input resolution**. The number of characters returned does not affect the price — a blank image and a dense document page of the same size cost exactly the same.
* Baseline rate: **0.00928 USD** per image at 1024×1024.
* Example rates (read back from `POST /api/v2/images/ocr/price`):
  * 256×256 → **0.00101 USD**
  * 512×512 → **0.00266 USD**
  * 1024×1024 → **0.00928 USD**
  * 1920×1080 / 1080×1920 → **0.01791 USD**
  * 4096×4096 → **0.14168 USD**
* Price scales with pixel count: ≈ **0.00045 USD + 0.0000000084 USD per pixel**. Downscaling source images before OCR reduces cost proportionally — useful when running OCR across many video frames.
* `language` and `format` do not affect the price.
* Volume discounts available for bulk processing (100k+ images)—contact sales.

**Text-to-Embedding (Vector Representations)**

* Pricing is based on the number of tokens processed.
* Sample public rate: **0.000084 USD** per 1,000 tokens (client-side pricing).
* Embeddings are typically used for semantic search, retrieval-augmented generation (RAG), clustering, and similarity matching.
* Costs scale linearly with token count, making it efficient even at large volumes.
* Important: Different embedding models may have varying dimensionality (e.g. 768 vs. 1024), but pricing is standardized per token for simplicity.

**Web Search and Contents**

Both endpoints are synchronous and return the amount charged in the `cost` field of the response.

[Web Search](https://docs.deapi.ai/api/v2/web/search.md) (`POST /api/v2/web/search`):

* **0.0048 USD** per `quick` search and **0.0084 USD** per `balanced` search, covering up to 10 results.
* Each result above 10 (`limit` 11–25) adds **0.0012 USD**.
* `summary` (balanced mode only) adds **0.0012 USD** per result, counted from `limit`.
* `text` and `excerpts` are included at no extra cost.
* Example: `balanced`, `limit: 25`, with `summary` → 0.0084 + 15 × 0.0012 + 25 × 0.0012 = **0.0564 USD**.

[Web Contents](https://docs.deapi.ai/api/v2/web/contents.md) (`POST /api/v2/web/contents`):

* **0.0012 USD** per page for each content type requested — `text`, `excerpts` and `summary` each count once per page.
* Pages that cannot be read (any `status` other than `ok`) are not charged.
* Example: 5 URLs with `text` and `summary`, all read → 5 × 2 × 0.0012 = **0.012 USD**.

Use `POST /api/v2/web/search/price` and `POST /api/v2/web/contents/price` for an exact quote.

**Video Upscale**

* Increases video resolution (e.g. 2×, 4×) using AI super-resolution.
* Price scales with input resolution, video duration, and the selected `scale` factor (only for models with configurable scale — fixed-scale models use their built-in factor).
* Use the `/api/v2/videos/upscales/price` endpoint with your `model`, `width`, `height`, `duration`, and optional `scale` to get exact pricing before uploading the file. Always send `duration` — the price is proportional to it, and a request without it returns `price: 0`.

***

### Best Practices & Guidance

* Use the public calculator as a guide, but always rely on the API's final cost calculation (model + parameters).
* Avoid hardcoding prices or cost assumptions—always fetch or compute cost based on actual model usage.
* For reproducibility (e.g. in production or experiments), pin model versions and seeds so results are consistent across runs.
* Prepare fallback options in your integration: if a model is deprecated or disabled, switch to a sensible alternative automatically.
* Monitor usage and budget: higher resolution, longer clips, or more steps increase costs proportionally.

***

**Link to live pricing page for reference:** [https://deapi.ai/pricing](https://deapi.ai/pricing)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.