Notice: MAI Image 2.7 launch limited-time 20% off, covering the full text-to-image and image editing lineup, try it now
Notice: Black Friday 2026 × Cyber Monday: Get up to 30% extra on top-ups, DeepSeek free to use · View the promotion
Open navigation

Media artifact storage

Every output you generate with HiAPI — images, audio, and video, whether through the API or the website — is served from HiAPI’s CDN and returned as a cdn_url. By default outputs are temporary and expire about 7 days after creation. Output Storage lets you keep the outputs you choose for the long term and manage them with your API key. Downloads are always free.

Tip

TL;DR: $0.05 per GB per month, billed daily. Keep only what you choose, delete to stop charges instantly, free downloads.

Storage tiers

TierDefaultRetentionStorage cost
tempYesAuto-deleted ~7 days after creationFree
persistentNoKept long-term until you delete itBilled by stored size
static—Platform-owned assets kept permanentlyNot billed to you

The tier is named storage in the task detail response (temp / persistent / static) and storage_tier in the storage list (temporary / persistent / static) — same state, different field name. static is reserved for platform-hosted assets such as the sample media on model pages; it never appears in a normal account’s storage list and those items cannot be promoted or deleted.

Keep an output long-term

This is a per-output model — you decide which individual outputs to keep. Two ways:

  1. At creation — pass "storage": "persistent" in Create Task. The output is written straight to long-term storage.
  2. After the fact — promote a temporary output any time before it expires. You can also manage everything from the dashboard: Dashboard → Storage (Artifact Storage) lists every output with Temporary / Persistent filters and per-item promote / delete.

To stop paying for a persistent output, delete it — there is no demote.

Endpoints

All endpoints authenticate with your API key (Authorization: Bearer YOUR_API_KEY) and act only on the calling account’s outputs.

Pricing

ItemDetail
Unit price$0.05 / GB · month
Billing cadenceOnce per day at UTC 00:30. Today’s charge = stored size × $0.05 ÷ 30
Egress (downloads)Free — unlimited downloads, no metering
Write operationsFree for users — HiAPI absorbs CDN PUT/operation fees

Example bills

You storeMonthlyPer day
5 GB$0.25$0.0083
50 GB$2.50$0.083
100 GB (cap)$5.00$0.167

Delete to save instantly: delete half today, tomorrow’s bill drops by half. You only pay for what you store, while you store it.

Limits & lifecycle

Capacity

  • Per-account cap: 100 GB by default (configurable per account group). Promoting past the cap is rejected with cap_exceeded; creating a task with "storage": "persistent" over the cap silently falls back to temporary — generation still succeeds. Contact us for a larger cap.

Insufficient balance

Persistent storage is charged daily against your credit balance.

  1. If your balance can’t cover the charge for 3 consecutive days, the affected outputs enter a 7-day grace window and a warning email is sent.
  2. Top up any time to resume — the grace window clears immediately and the outputs stay.
  3. If the grace window expires, the outputs are deleted.

Caution

Deleted or grace-expired files cannot be recovered. Download anything you want to keep.

Access control

  • Output URLs are public but contain an un-guessable random path — outsiders cannot enumerate or guess your files.
  • Anyone with the URL can download (useful for sharing or embedding in your product).
  • Signed / private URL options aren’t offered today. Contact us if your use case requires them.

FAQ

Where does the money come from?

The same credit balance you use for API calls. The $0.05/GB·month is deducted from your top-up balance.

Are videos counted too?

Yes. All HiAPI-generated images and videos count toward your persistent storage usage. Videos can be large — watch your bill.

Are output URLs public?

Yes — they’re public, with un-guessable random paths. Anyone with the URL can download. Don’t share URLs you don’t want others to access.

What if 100 GB isn’t enough?

Beyond the cap, new persistent writes fall back to 7-day expiry (generation still works). Delete older outputs to free space, or contact us for a larger cap.