> 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.

# Core concepts

> Accounts, buckets, objects, access methods, sub-users and keys, media processing parameters and styles, CDN domains and edge rules, certificates, and billing, plus how they work together.

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](https://docs.bitiful.com/en/console/account.md) 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](https://docs.bitiful.com/en/prices/handbook/recharge.md).

The account itself isn't used to call the storage APIs. Programs access storage with a **[sub-user's AccessKey](https://docs.bitiful.com/en/bitiful-s4/handbook/access-keys.md)**, and call management APIs such as statistics, CDN, and certificates with an **[API token](https://docs.bitiful.com/en/console/api-token.md)**. 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](https://docs.bitiful.com/en/bitiful-s4/handbook/public-read.md), [hotlink protection](https://docs.bitiful.com/en/bitiful-s4/handbook/anti-leech.md), [CORS](https://docs.bitiful.com/en/bitiful-s4/handbook/cors.md), [mirror back-to-origin](https://docs.bitiful.com/en/bitiful-s4/handbook/mirror.md), 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](https://docs.bitiful.com/en/bitiful-s4/handbook/buckets.md).

### 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](https://docs.bitiful.com/en/best-practice/auto-detect-mime.md) 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](https://docs.bitiful.com/en/bitiful-s4/definitions.md) and [Limits](https://docs.bitiful.com/en/bitiful-s4/limits.md).

### 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:

| Method        | Best for                             | Description                                                                                                                                                                                 |
| ------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Public link   | Website images, public downloads     | Once a bucket or directory is set to [public read](https://docs.bitiful.com/en/bitiful-s4/handbook/public-read.md), anyone can read files by link, but can't list directories               |
| Presigned URL | Private files, direct client uploads | A 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](https://docs.bitiful.com/en/developer/s3/presigned-url.md) |
| CDN domain    | Public delivery, your own domain     | A [CDN](https://docs.bitiful.com/en/cdn/intro.md) domain with a bucket as its origin, which supports edge rules and HTTPS                                                                   |
| S3 API        | Programs, tools, backups             | Signed 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](https://docs.bitiful.com/en/bitiful-s4/handbook/anti-leech.md) (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](https://docs.bitiful.com/en/bitiful-s4/handbook/access-keys.md) and [Sub-user permissions](https://docs.bitiful.com/en/bitiful-s4/handbook/permissions.md).

## 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](https://docs.bitiful.com/en/coreix/features/resize.md), [cropping](https://docs.bitiful.com/en/coreix/features/crop.md), [watermarks](https://docs.bitiful.com/en/coreix/features/watermark.md), [format conversion](https://docs.bitiful.com/en/coreix/features/fmt.md), [video frame capture](https://docs.bitiful.com/en/coreix/features/frame.md) and [clipping](https://docs.bitiful.com/en/coreix/features/video-clip.md), [color adjustment](https://docs.bitiful.com/en/coreix/features/adjust.md), [face blurring](https://docs.bitiful.com/en/coreix/features/face-privacy.md), and [image analysis](https://docs.bitiful.com/en/coreix/features/analysis.md). See [CoreIX overview](https://docs.bitiful.com/en/coreix/basic.md).

### 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](https://docs.bitiful.com/en/coreix/handbook/styles.md).

### Original file protection

With [Original file protection](https://docs.bitiful.com/en/coreix/handbook/origin-protect.md) 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](https://docs.bitiful.com/en/cdn/handbook/domains.md).

### 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](https://docs.bitiful.com/en/cdn/handbook/cache.md) 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:

| Phase                        | What it does                                                     |
| ---------------------------- | ---------------------------------------------------------------- |
| Hotlink protection           | Block requests by region, IP, User-Agent, Referer, or path       |
| Advanced authentication      | Which paths require signed links and which are exempt            |
| Remote authentication        | Send requests to your own authentication service for a decision  |
| CORS and speed limit         | CORS response headers, per-connection speed limits               |
| Cache                        | Cache duration, no caching, custom cache keys                    |
| Request and response headers | Origin request headers and response headers returned to visitors |
| Redirects and error pages    | Redirects, rewrites, custom error pages                          |

See [Edge rules](https://docs.bitiful.com/en/cdn/handbook/rules.md).

### Certificates

HTTPS requires a certificate. In the [Certificate Center](https://docs.bitiful.com/en/certs-center/intro.md), 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

| Tool                                                            | Question it answers                                                                     |
| --------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| [Usage](https://docs.bitiful.com/en/console/usage.md)           | How bandwidth, traffic, requests, and status codes change over time, down to per-minute |
| [Top content](https://docs.bitiful.com/en/console/popular.md)   | Which files, IPs, referring sites, and regions get the most requests                    |
| [Live logs](https://docs.bitiful.com/en/console/access-logs.md) | The details of every request in the last 3 days                                         |

You can also pull this data with the [API](https://docs.bitiful.com/en/developer/api/s4.md) 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](https://docs.bitiful.com/en/prices/detail/processing-prices.md) and [auto certificates](https://docs.bitiful.com/en/prices/detail/autocerts-prices.md). Verified accounts get a monthly [free tier](https://docs.bitiful.com/en/prices/basic.md#free-tier), and you can buy [resource packages](https://docs.bitiful.com/en/prices/handbook/resource-packages.md) 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](https://docs.bitiful.com/en/prices/arrearage.md).
