Files

64 lines
3.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div align="center">
<img src="assets/alstack-banner.svg" width="900" alt="@AlStack - free-tier farms, live proxy pools, API research">
<br>
<a href="https://t.me/AlStack"><img src="assets/alstack-badge.svg" alt="Telegram: @AlStack"></a>
</div>
<!-- ALSTACK-PROMO -->
> **Published from the [t.me/AlStack](https://t.me/AlStack) channel** (`@AlStack`) - free-tier farms,
> live proxy pools and API research. Every tool here gets built, measured and torn apart in the channel
> before it becomes a repo; the limits in the docs are the ones that were actually hit.
> What the channel publishes: [CHANNEL.md](CHANNEL.md).
# speka-autoreg
Авторег speka.me (Free: $1 расхода на модели в месяц, без карты, 10 rpm на ключ) + OpenAI-совместимый шим-пул для new-api/one-api.
## Состав
- `speka_farm.py N --workers W --start S` — регистрация: Supabase signup → cookie-сессия → `POST /api/keys` → `bank.jsonl`
- `speka_status.py -w 8` — логин по паролю → `usage_current_month` → `pool_live.jsonl` (cost < $1)
- `shim.py` — пул-шим на 127.0.0.1:8819: ротация ключей, dead на 401/403/402, 429 → cooldown, SSE passthrough, алиасы `speka-*`
- `patch_speka.py` — вставка алиасов в `sso_limits.py`, `toolgate.py`, `iishko/legacy.py` (rank_models)
## Флоу
1. `POST https://supabase-speka.srv1729373.hstgr.cloud/auth/v1/signup` с `apikey: <anon>` → 200 + `access_token` (почта подтверждена сразу)
2. cookie `sb-supabase-speka-auth-token` = `base64-` + b64(session json)
3. `POST https://speka.me/api/keys` (cookie) → `key` = `sk-speka-live-…` (46 символов), лимит 1 активный ключ
4. `GET /v1/models` (Bearer) — проверка живости
5. расход: `GET /rest/v1/usage_current_month?select=cost_usd` с apikey + Bearer
anon key берётся из бандла `/_next/static/chunks/30-*.js` → `anon.txt`.
## Каталог (реальный)
9 моделей: `meta/muse-glimmer-30b`, `nvidia/nemotron-3-ultra-550b-a55b`, `nvidia/nemotron-3.5-bolt-e4b`, `nvidia/nemotron-3.5-lightning-30b-a3b`, `poolside/laguna-xs-2.1`, `stepfun-ai/step-5-preview`, `meta/llama-3.2-90b-vision-instruct`, `nvidia/nemotron-3-embed-1b`, `black-forest-labs/flux.1-dev` (down).
## Пруф прогона (09.11.26)
200/200 аккаунтов OK, 200 уникальных ключей, суммарный лимит $200, e2e через прод new-api: 7/7 моделей 200, стрим ок.
## Env
- `SPEKA_BANK` (default `/opt/speka-shim/bank.jsonl`), `SPEKA_PORT` (8819), `SPEKA_UP`
---
<div align="center">
<a href="https://t.me/AlStack"><img src="assets/alstack-badge.svg" alt="Telegram: @AlStack"></a>
**More free-tier farms, live proxy pools and API teardowns - [t.me/AlStack](https://t.me/AlStack)**
<sub>Measured on live tiers, published with the failures included. If this repo saved you an evening,
star it and tell the channel what you built with it.</sub>
</div>