Skip to content

AI image and video generation

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

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

Industry examples

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 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, and fmt=auto uses AVIF/WebP automatically;
  • Use text watermarks or SVG template watermarks 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 so the gallery shows only labeled previews, and originals are downloaded through presigned URLs 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 with edge rules 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

CapabilityWhat it does here
S4 object storageStores 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-TransferThe 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 requestsWhen 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 permissionsInference 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 formatsServes candidate thumbnails and large detail images from the same original in real time, and fmt=auto uses AVIF/WebP automatically
BlurHash / ThumbHashShows a blurred placeholder before and after generation finishes, so the list doesn't jump
Text watermarks / SVG template watermarksOverlays an "AI-generated" label, platform name, author name, or task ID on previews
Styles + original file protectionAnonymous visitors only get the watermarked style image; originals are available only through signed links
Video frame extraction and clippingframe=auto picks a cover automatically, and frame=0:3000&fmt=gif generates an animated hover preview
Image analysisfmt=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 blurringAutomatically blurs faces in publicly displayed images to reduce privacy risk
CDNDelivers work from global nodes, so overseas users get the same speed
Edge rulesRequires signatures for the originals directory, blocks crawlers by User-Agent and region, and caches generated results for a long time
Top content / Live logsFinds work that's being downloaded in bulk and unusual IPs, revealing scraping

Plan your directories

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

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 for inference nodes with write permission on outputs/ only. Include If-None-Match: * 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 on list pages and large images on detail pages, all accessed through styles:

UseStyle nameExample parameters
Candidate gridgridw=384&h=384&pos=smart&fmt=auto&q=75
Detail previewprevieww=1600&fmt=auto plus an "AI-generated" text watermark
Video covercoverframe=auto&w=960&fmt=auto
Hover animationhoverframe=0:3000&fmt=webp&w=480
Placeholder—fmt=thumbhash

Control access to originals

Turn on original file protection and set the default style to preview. When a paying user clicks download, your backend issues a presigned link 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 for your work and turn on global nodes. Use edge rules to:

  • Cache files under outputs/ for a long time (file names include the task ID, so the content never changes);
  • Require an advanced authentication 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 lets the frontend request the file as soon as the inference service starts uploading it, with download speed following upload progress:

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.

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

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, you can also control download speed for free users.

Add AI-generated labels

Use text watermarks to overlay fixed text in a corner, or use SVG template watermarks 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

ParameterReturnsUse
fmt=phashPerceptual hashTreat a Hamming distance below a threshold as a duplicate to show fewer repeats
fmt=featureprintFeature vectorStore it in a vector database for reverse image search and "similar work"
fmt=aestheticsAesthetic scorePick a cover from several candidates automatically, or filter out low-quality results
fmt=tagsContent tagsAutomatic categorization, search, and content operations
fmt=paletteDominant colorsCard 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 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