Skip to content

Core concepts

This page briefly introduces the concepts that come up again and again in Bitiful. Once you understand them, the product docs become much easier to read.

Account

A Bitiful account belongs to a single individual or organization. You need to complete identity verification before you can create buckets, sub-users, and CDN domains. All charges in your account are deducted from the same balance, which you can check under Balance and top-up.

The account itself isn't used to call the storage APIs. Programs access storage with a sub-user's AccessKey, and call management APIs such as statistics, CDN, and certificates with an API token. The two aren't interchangeable.

Storage

Buckets

A bucket is a container for files. Its name is globally unique and can't be changed after creation. There's no capacity limit. Public read, hotlink protection, CORS, mirror back-to-origin, and media processing settings are all configured per bucket.

Every Bitiful bucket is a directory bucket: directories are real objects, so you can natively rename and move whole directories, and listing directories is faster. See Bucket management.

Objects and keys

An object is a file, made up of a key, data, and metadata. The key is the full path including directories, such as images/2026/avatar.jpg. Browsers rely on the Content-Type in the metadata to determine the file type, which can be detected automatically on upload.

S4 has only one storage class. There's no distinction between standard, infrequent access, and archive, so there are no retrieval fees and no minimum storage duration. See Key terms and concepts and Limits.

Region and Endpoint

There's currently one region: East China, cn-east-1. All S3 SDKs and tools connect to https://s3.bitiful.net. Each bucket also has a default domain, <bucket-name>.s3.bitiful.net, which is suited to testing and programmatic reads and writes. To deliver files publicly, use the CDN.

Access methods

You can access the same file in several ways. Choose based on your scenario:

MethodBest forDescription
Public linkWebsite images, public downloadsOnce a bucket or directory is set to public read, anyone can read files by link, but can't list directories
Presigned URLPrivate files, direct client uploadsA link your server signs with a key and that has an expiration time. You can also limit how many times it's used and its speed
CDN domainPublic delivery, your own domainA CDN domain with a bucket as its origin, which supports edge rules and HTTPS
S3 APIPrograms, tools, backupsSigned with a sub-user's AccessKey, with permissions determined by the sub-user

You can further restrict where public files are accessed from with hotlink protection (Referer, IP, request headers). Private files always require a signature.

Sub-users and keys

A sub-user is the smallest unit of permissions. Each sub-user can be granted access to a whole bucket or a specific directory, with permissions such as read, write, list, and tagging. A new sub-user has no permissions.

An AccessKey belongs to a sub-user and inherits all of its permissions. A sub-user can have multiple AccessKeys, so you can give different programs their own keys and rotate them separately.

A common approach is to create a sub-user per purpose: one for your website backend, one for backup scripts, one for data analysis, each granted only the directories it needs. See Sub-users and AccessKeys and Sub-user permissions.

Media processing

Processing parameters

CoreIX processes images and videos in real time when they're accessed. Add parameters such as ?w=800&fmt=auto to a link, and you get the processed result while the original file in the bucket stays unchanged. Parameters can be freely combined, covering resizing, cropping, watermarks, format conversion, video frame capture and clipping, color adjustment, face blurring, and image analysis. See CoreIX overview.

Styles

A style is a set of parameters saved in a bucket and called with filename!style:style-name. Styles make links shorter, let you change the look of all images at once by editing the style, and keep the actual parameters hidden. See Styles.

Original file protection

With Original file protection turned on, anonymous visitors can access images and videos only through styles. They can't get the original image or build their own parameters. This suits cases where you need to keep originals from leaking or being processed arbitrarily.

Delivery

CDN domains

A CDN domain is your own domain used on the CDN, and it needs an ICP filing. It fetches files from an origin, which can be an S4 bucket or your own server. Visitors' DNS lookups are pointed to CDN nodes through a CNAME. Each domain can use mainland China nodes only, or global nodes. See Manage CDN domains.

Cache

The first time a node receives a request for a file, it fetches the file from the origin. After that, it returns the file directly until it expires. This is caching. Content without a matching rule is cached for a long time under the default policy. After you update a file, you can purge the cache, and before launch you can prefetch it.

Edge rules

Edge rules decide how nodes handle each request, using the same expression language as Cloudflare, such as starts_with(http.request.uri.path, "/private/"). Rules are grouped into phases by function:

PhaseWhat it does
Hotlink protectionBlock requests by region, IP, User-Agent, Referer, or path
Advanced authenticationWhich paths require signed links and which are exempt
Remote authenticationSend requests to your own authentication service for a decision
CORS and speed limitCORS response headers, per-connection speed limits
CacheCache duration, no caching, custom cache keys
Request and response headersOrigin request headers and response headers returned to visitors
Redirects and error pagesRedirects, rewrites, custom error pages

See Edge rules.

Certificates

HTTPS requires a certificate. In the Certificate Center, you can request free or paid auto certificates that renew automatically, or upload an existing certificate, and then deploy it to a CDN domain.

Observe and troubleshoot

ToolQuestion it answers
UsageHow bandwidth, traffic, requests, and status codes change over time, down to per-minute
Top contentWhich files, IPs, referring sites, and regions get the most requests
Live logsThe details of every request in the last 3 days

You can also pull this data with the API and feed it into your own monitoring.

Billing

Charges are billed hourly and deducted from your balance in real time. The main billing items are storage, data transfer, and requests, plus charges for media processing and auto certificates. Verified accounts get a monthly free tier, and you can buy resource packages when usage is high. You'll get a reminder when your balance runs low, and services are suspended once your account is overdue. See Overdue balances.