init
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# bria-autoreg
|
||||
|
||||
Autoreg for [Bria AI](https://bria.ai) media API (Fibo 2 / Fibo Lite image generation).
|
||||
Zero captcha, zero email verification: Firebase `signUp` -> session -> `create_organization` -> API key.
|
||||
|
||||
## What you get per account
|
||||
* **100 free API calls** (`lite` counts the same as `full`), no card required.
|
||||
* Hard stop after the quota: `403 free_limit_reached`. Rate limit 10 req/min.
|
||||
* Key is a 32-hex `api_token`, sent as the `api_token:` header (not Bearer).
|
||||
|
||||
## Verified flow (2026-11-01)
|
||||
1. `POST https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=<FB_KEY>` `{email,password,returnSecureToken:true}`
|
||||
* `FB_KEY` = Firebase web key from the `platform` JS bundle (see `fbkey.txt`).
|
||||
* Too many signups from one IP -> `400 TOO_MANY_ATTEMPTS_TRY_LATER` -> rotate egress (IPv6 `/64` boxes or mobile).
|
||||
2. `POST https://platform-api.bria.ai/session/login` -> id token
|
||||
3. `POST https://platform-api.bria.ai/.../create_organization`
|
||||
4. `POST https://api.bria.ai/v2/organizations/api-keys/create` `{key_type:"production"}` with `Org-Id`
|
||||
5. Probe: `POST https://engine.prod.bria-api.com/v2/image/generate/lite` with `api_token` header + `sync:true`
|
||||
|
||||
Measured: ~10s per account, 121/150 (80%) success per wave with egress rotation, generation latency 4.8-6s.
|
||||
|
||||
## Files
|
||||
* `bria_farm.py` - worker: `python bria_farm.py --n 150 --workers 6 --proxy round`
|
||||
* `bria_shim.py` - OpenAI-compatible shim (`/v1/models`, `/v1/images/generations`) with round-robin key pool,
|
||||
dead-key blacklist, 60s cooldown on 429.
|
||||
|
||||
## Env
|
||||
```
|
||||
BRIA_PROXIES=http://user:pass@host:port,... # rotation pool (IPv6 CONNECT proxies work best)
|
||||
BRIA_DIRECT=1 # append direct connection as last resort
|
||||
BRIA_SHIM_PORT=8820
|
||||
BRIA_BANK=/path/bank.jsonl
|
||||
```
|
||||
|
||||
## Bank row
|
||||
```json
|
||||
{"email":"...","password":"...","api_token":"<32hex>","status":"ok","note":"gen=200","proxy":"..."}
|
||||
```
|
||||
Reference in New Issue
Block a user