Host with Google Cloud Storage
Google Cloud Storage (GCS) can be used as the storage backend for OpenUGC.
In this guide, we’ll create a bucket, generate credentials, and prepare it for use in your API.
1. Create a Google Cloud Account
Go to Google Cloud Console and sign up (or log in if you already have an account).
You may need to enable billing, but Google offers a free trial with credits.
2. Create a Project
From the Google Cloud dashboard:
- Click the project dropdown (top left).
- Select New Project.
- Give it a name (e.g.
openugc-project
) and choose a billing account. - Click Create.
3. Enable the Cloud Storage API
- In the Google Cloud Console, go to APIs & Services → Library.
- Search for Cloud Storage.
- Click Enable.
4. Create a Bucket
- Navigate to Storage → Buckets → Create Bucket.
- Fill in the fields:
- Name: Must be globally unique (e.g.
openugc-bucket
) - Location: Choose a region closest to your users
- Storage Class: Standard (default is fine)
- Access Control: Fine-grained or uniform (uniform is recommended)
- Name: Must be globally unique (e.g.
- Click Create.
Your bucket is now ready! 🎉
5. Generate Service Account Credentials
OpenUGC needs a service account to access your GCS bucket.
- Go to IAM & Admin → Service Accounts.
- Click Create Service Account.
- Give it a name (e.g.
openugc-service
). - Assign the role Storage Admin.
- After creating, go to Keys → Add Key → Create New Key.
- Select JSON and download the file.
This JSON file contains your credentials — keep it safe!
6. Connect to OpenUGC
Once your bucket and credentials are ready, follow the instructions in the Host API section to configure OpenUGC.