Fast, permanent file hosting.
Pay in SOL.
Upload a file over HTTPS and get a short link that loads at once, from an edge cache near your users. Made for images and JSON metadata.
Live at once
The link works the moment the upload returns. No wait for replication.
Immutable links
Each file gets its own id. A link never changes and is cached for a year.
Open CORS
Any site or app can load your files straight from the browser.
Pricing
Starter
0.05 SOL / month
- 10 GB stored
- 100,000 uploads
- Unlimited reads
Pro
0.2 SOL / month
- 100 GB stored
- 1,000,000 uploads
- Unlimited reads
Scale
1 SOL / month
- 1 TB stored
- 10,000,000 uploads
- Unlimited reads
Prices are per month, in SOL.
API
Base URL https://byteweave.dev. Send your key as Authorization: Bearer <key>.
POST/v1/files
Upload one file. The body is the raw bytes, at most 5 MiB. Allowed types: image/jpeg, image/png, image/webp, image/gif, application/json.
curl -X POST https://byteweave.dev/v1/files \
-H "Authorization: Bearer $BYTEWEAVE_KEY" \
-H "Content-Type: image/png" \
--data-binary @logo.png
# 201 Created
{"id":"3f2b8c1e-6a4d-4e0f-9b7a-2c5d8e1f0a9b",
"url":"https://byteweave.dev/3f2b8c1e-6a4d-4e0f-9b7a-2c5d8e1f0a9b"}
GET/<id>
The file, with the type it was uploaded with. Public: no key needed.
curl https://byteweave.dev/3f2b8c1e-6a4d-4e0f-9b7a-2c5d8e1f0a9b -o logo.png
GET/v1/files/<id>
The file's size, type and upload time.
curl https://byteweave.dev/v1/files/3f2b8c1e-6a4d-4e0f-9b7a-2c5d8e1f0a9b \
-H "Authorization: Bearer $BYTEWEAVE_KEY"
GET/v1/account
Your plan and your usage this month.
curl https://byteweave.dev/v1/account -H "Authorization: Bearer $BYTEWEAVE_KEY"
Errors
| 403 | The key is missing or not valid. |
| 413 | The file is larger than 5 MiB. |
| 415 | The type is not allowed, or the bytes do not match it. |