> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bitiful.com/en/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bitiful.com/_mcp/server.
> If something on this page is wrong or missing, POST JSON {"page": "<page URL>", "message": "<what is wrong>"} to https://docs.bitiful.com/_biti/feedback/agent.

# AI image and video generation

> Design storage and delivery for AI image, video, and digital human products: view results while they're still being written, multi-size previews and placeholders, AI-generated label watermarks, original access by membership tier, near-duplicate removal and filtering, and global delivery with crawler protection.

AI generation products produce huge numbers of images and videos every day. Users want to **see results right away**, the product wants **previews that save traffic and originals that hold their value**, and the platform also has to deal with **crawlers scraping in bulk** and **storage costs that keep growing over time**. Bitiful's storage, media processing, and CDN cover the whole path from "result written to storage" to "result in front of the user."

## Common challenges

| Challenge               | What it looks like                                                                                                         |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| Results need to be fast | Video generation takes tens of seconds to several minutes, and users don't want to wait for the whole file to be written   |
| Previews are expensive  | Each generation produces 4–8 candidate images of several MB each. Loading every original is slow and uses a lot of traffic |
| Originals need tiers    | Free users see watermarked previews; paying users download high-resolution originals without watermarks                    |
| Labels are required     | Generated content needs a prominent label such as "AI-generated," as regulations require                                   |
| Duplicates and quality  | Many similar, duplicate, or even low-quality results take up storage and hurt recommendations and display                  |
| Content gets scraped    | Crawlers bulk-download originals from public artwork pages                                                                 |

## Industry examples

> **Note**
>
> The products mentioned here only illustrate common needs in the industry and don't imply that they use Bitiful.

### AI video generation: products like Kling and Jimeng

**Background**: Users enter a description or an image and wait tens of seconds to several minutes for a video to be generated. The longer the wait, the more users drop off. Results also need to appear in the feed of work as covers and animated previews.

**How Bitiful helps**:

- The inference service uploads with a single PutObject while it generates, and the frontend adds [`no-wait`](https://docs.bitiful.com/en/bitiful-s4/features/simul-transfer.md) to its request, so playback starts as soon as the beginning of the video is written, without waiting for the whole video;
- `frame=auto` automatically picks a sharp, good-looking frame as the cover, and `frame=0:3000&fmt=webp&w=480` generates an animated hover preview for the feed, with no extra storage needed for either;
- When work is shared, it's delivered from global CDN nodes, so overseas users get the same smooth experience.

**Result**: Users see results sooner, the feed has covers and animated previews, and the product doesn't need to run separate frame capture and transcoding jobs for each video.

### AI art communities: communities like Midjourney and LiblibAI

**Background**: Each generation produces about 4 candidate images. Users pick from a grid, then upscale or create variations. The best work goes into a public gallery, where it gets lots of views and is also heavily scraped by crawlers.

**How Bitiful helps**:

- Store each original only once. Grid thumbnails, gallery cards, and large detail images are all output in real time through [styles](https://docs.bitiful.com/en/coreix/handbook/styles.md), and `fmt=auto` uses AVIF/WebP automatically;
- Use [text watermarks](https://docs.bitiful.com/en/coreix/features/watermark.md) or [SVG template watermarks](https://docs.bitiful.com/en/coreix/features/watermark-svg.md) to add an "AI-generated" label to every preview, meeting the explicit labeling requirements of regulations such as China's Measures for Labeling AI-Generated Synthetic Content;
- Turn on [original file protection](https://docs.bitiful.com/en/coreix/handbook/origin-protect.md) so the gallery shows only labeled previews, and originals are downloaded through [presigned URLs](https://docs.bitiful.com/en/developer/s3/presigned-url.md) with a request limit;
- Use `fmt=aesthetics` to pick the best-looking candidate as the cover, `fmt=phash` to merge duplicate submissions, and `fmt=featureprint` for "find similar";
- Combine the visitor IP ranking in [Top content](https://docs.bitiful.com/en/console/popular.md) with [edge rules](https://docs.bitiful.com/en/cdn/handbook/rules.md) to block bulk scraping.

**Result**: The gallery loads faster and uses less traffic, labels are consistent and compliant, originals can no longer be taken freely, and recommendations get better.

## What each part of Bitiful does

| Capability                                                                                                                                                            | What it does here                                                                                                                                                                 |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [S4 object storage](https://docs.bitiful.com/en/bitiful-s4/intro.md)                                                                                                  | Stores generated results and reference images uploaded by users. There are no storage tiers, so older work never needs to move to archive storage and there are no retrieval fees |
| [Simul-Transfer](https://docs.bitiful.com/en/bitiful-s4/features/simul-transfer.md)                                                                                   | The inference service uploads a video while the frontend reads it with the `no-wait` parameter, without waiting for the file to be fully written                                  |
| [Conditional requests](https://docs.bitiful.com/en/developer/s3/conditional-requests.md)                                                                              | When several inference nodes write the result of the same task, `If-None-Match: *` makes sure only the first write succeeds, so they don't overwrite each other                   |
| [Sub-user permissions](https://docs.bitiful.com/en/bitiful-s4/handbook/permissions.md)                                                                                | Inference nodes can only write to the `outputs/` directory and the web backend can only read, which limits the damage if a key leaks                                              |
| [CoreIX resizing and formats](https://docs.bitiful.com/en/coreix/features/resize.md)                                                                                  | Serves candidate thumbnails and large detail images from the same original in real time, and `fmt=auto` uses AVIF/WebP automatically                                              |
| [BlurHash / ThumbHash](https://docs.bitiful.com/en/bitiful-s4/features/hash-placeholder.md)                                                                           | Shows a blurred placeholder before and after generation finishes, so the list doesn't jump                                                                                        |
| [Text watermarks](https://docs.bitiful.com/en/coreix/features/watermark.md) / [SVG template watermarks](https://docs.bitiful.com/en/coreix/features/watermark-svg.md) | Overlays an "AI-generated" label, platform name, author name, or task ID on previews                                                                                              |
| [Styles](https://docs.bitiful.com/en/coreix/handbook/styles.md) + [original file protection](https://docs.bitiful.com/en/coreix/handbook/origin-protect.md)           | Anonymous visitors only get the watermarked style image; originals are available only through signed links                                                                        |
| [Video frame extraction and clipping](https://docs.bitiful.com/en/coreix/features/frame.md)                                                                           | `frame=auto` picks a cover automatically, and `frame=0:3000&fmt=gif` generates an animated hover preview                                                                          |
| [Image analysis](https://docs.bitiful.com/en/coreix/features/analysis.md)                                                                                             | `fmt=phash` for deduplication, `fmt=featureprint` for similar-image search, `fmt=aesthetics` for picking the best by aesthetic score, and `fmt=tags` for automatic tagging        |
| [Face blurring](https://docs.bitiful.com/en/coreix/features/face-privacy.md)                                                                                          | Automatically blurs faces in publicly displayed images to reduce privacy risk                                                                                                     |
| [CDN](https://docs.bitiful.com/en/cdn/intro.md)                                                                                                                       | Delivers work from global nodes, so overseas users get the same speed                                                                                                             |
| [Edge rules](https://docs.bitiful.com/en/cdn/handbook/rules.md)                                                                                                       | Requires signatures for the originals directory, blocks crawlers by User-Agent and region, and caches generated results for a long time                                           |
| [Top content](https://docs.bitiful.com/en/console/popular.md) / [Live logs](https://docs.bitiful.com/en/console/access-logs.md)                                       | Finds work that's being downloaded in bulk and unusual IPs, revealing scraping                                                                                                    |

## Recommended architecture

### Plan your directories

Organize keys by purpose and date to make permissions and statistics easier:

```text
uploads/{userID}/{date}/{file}          Reference images uploaded by users
outputs/{date}/{taskID}/{index}.png     Generated original images
outputs/{date}/{taskID}/video.mp4       Generated videos
```

### Write results from the inference service

Create a [sub-user](https://docs.bitiful.com/en/bitiful-s4/handbook/permissions.md) for inference nodes with write permission on `outputs/` only. Include [`If-None-Match: *`](https://docs.bitiful.com/en/developer/s3/conditional-requests.md) when writing, so a task that runs twice won't overwrite an existing result. Upload videos with a single PutObject while they're being generated. The frontend adds the `no-wait` parameter when reading, so playback or download can start while the upload is still in progress.

### Show previews in the frontend

Use small thumbnails and [placeholders](https://docs.bitiful.com/en/bitiful-s4/features/hash-placeholder.md) on list pages and large images on detail pages, all accessed through [styles](https://docs.bitiful.com/en/coreix/handbook/styles.md):

| Use             | Style name | Example parameters                                      |
| --------------- | ---------- | ------------------------------------------------------- |
| Candidate grid  | `grid`     | `w=384&h=384&pos=smart&fmt=auto&q=75`                   |
| Detail preview  | `preview`  | `w=1600&fmt=auto` plus an "AI-generated" text watermark |
| Video cover     | `cover`    | `frame=auto&w=960&fmt=auto`                             |
| Hover animation | `hover`    | `frame=0:3000&fmt=webp&w=480`                           |
| Placeholder     | —          | `fmt=thumbhash`                                         |

### Control access to originals

Turn on [original file protection](https://docs.bitiful.com/en/coreix/handbook/origin-protect.md) and set the default style to `preview`. When a paying user clicks download, your backend issues a [presigned link](https://docs.bitiful.com/en/developer/s3/presigned-url.md) that's valid for 10 minutes and can be used only once (`x-bitiful-max-requests=1`). You can also set a download file name.

### Deliver through the CDN

Bind a [CDN domain](https://docs.bitiful.com/en/cdn/handbook/domains.md) for your work and turn on global nodes. Use [edge rules](https://docs.bitiful.com/en/cdn/handbook/rules.md) to:

- Cache files under `outputs/` for a long time (file names include the task ID, so the content never changes);
- Require an [advanced authentication](https://docs.bitiful.com/en/best-practice/token-link.md) signature on paths that download originals;
- Block User-Agents of known crawlers and, if needed, limit per-connection speed.

### Deduplicate and filter

After generation finishes, call the analysis parameters and store the results in your database: `phash` to find duplicate images, `featureprint` for "find similar," `aesthetics` to pick a cover from several candidates, and `tags` for categorized search.

## Key practices

### View generated videos while they're being written

Traditional object storage lets you read a file only after it's fully written. Bitiful's [Simul-Transfer](https://docs.bitiful.com/en/bitiful-s4/features/simul-transfer.md) lets the frontend request the file as soon as the inference service starts uploading it, with download speed following upload progress:

```text
https://img.example.com/outputs/2026-11-27/task-8f3a/video.mp4?no-wait=10
```

`no-wait=10` means wait up to 10 seconds if the upload hasn't started yet. For private files, include `no-wait` in the signature when you issue the presigned link.

> **Note**
>
> Simul-Transfer works only for new files uploaded with a single PutObject (up to 250 GiB per file) and doesn't support multipart uploads. Many SDKs' high-level upload APIs split large files into parts automatically. When using Simul-Transfer, call PutObject directly or raise the multipart threshold.

### Separate previews from originals to preserve their value

```text
https://img.example.com/outputs/2026-11-27/task-8f3a/1.png!style:preview   Watermarked preview, visible to anyone
https://img.example.com/outputs/2026-11-27/task-8f3a/1.png?<signature parameters>   Original, accessible only with a signed link
```

Previews are served from the CDN cache at low cost; links to originals are issued only when users actually need them. With [per-connection rate limits](https://docs.bitiful.com/en/developer/s3/presigned-url.md#s4-extension-parameters), you can also control download speed for free users.

### Add AI-generated labels

Use [text watermarks](https://docs.bitiful.com/en/coreix/features/watermark.md) to overlay fixed text in a corner, or use [SVG template watermarks](https://docs.bitiful.com/en/coreix/features/watermark-svg.md) to design a label template with your platform logo in advance and fill in variables such as the author name and generation date at request time. Put the label in a style so it applies to every preview, and change the style to adjust them all at once.

### Use analysis results to improve recommendations

| Parameter          | Returns         | Use                                                                                   |
| ------------------ | --------------- | ------------------------------------------------------------------------------------- |
| `fmt=phash`        | Perceptual hash | Treat a Hamming distance below a threshold as a duplicate to show fewer repeats       |
| `fmt=featureprint` | Feature vector  | Store it in a vector database for reverse image search and "similar work"             |
| `fmt=aesthetics`   | Aesthetic score | Pick a cover from several candidates automatically, or filter out low-quality results |
| `fmt=tags`         | Content tags    | Automatic categorization, search, and content operations                              |
| `fmt=palette`      | Dominant colors | Card background colors and filtering by color                                         |

Analysis runs on the processed image, so you can resize first to speed it up, for example `?w=512&fmt=phash`.

## Cost tips

- Store each original only once. CoreIX generates thumbnails and watermarked images in real time and the CDN caches them, so you don't need to store extra copies;
- `fmt=auto` usually makes previews much smaller than PNG, which directly lowers data transfer charges;
- Work kept for a long time doesn't need to move to infrequent access or archive storage, and there are no retrieval fees;
- Once your traffic is stable, buy [resource packages](https://docs.bitiful.com/en/prices/handbook/resource-packages.md) to lower the unit price.

## Launch checklist

- [ ] Inference nodes, the web backend, and data analysis each use a separate sub-user with access only to the directories they need
- [ ] Generated results are written with `If-None-Match: *`
- [ ] Previews, covers, and animations are all saved as styles, with original file protection on and a default style set
- [ ] The preview style includes an AI-generated label
- [ ] Original downloads use signed links with a short validity period and a request limit
- [ ] The CDN domain has HTTPS and global nodes turned on, with cache and blocking rules configured
- [ ] Top content and Live logs show no unusual bulk downloads

## Related docs

- [Simul-Transfer](https://docs.bitiful.com/en/bitiful-s4/features/simul-transfer.md)
- [Image analysis](https://docs.bitiful.com/en/coreix/features/analysis.md)
- [Original file protection](https://docs.bitiful.com/en/coreix/handbook/origin-protect.md)
- [Advanced hotlink protection for CDN](https://docs.bitiful.com/en/best-practice/token-link.md)
- [Upload files securely from the client](https://docs.bitiful.com/en/best-practice/web-uploads.md)
