Files

7.1 KiB
Raw Permalink Blame History

@AlStack - free-tier farms, live proxy pools, API research

Telegram: @AlStack

Published from the 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.

smallest.ai autoreg + Waves pool

Автоматическая регистрация аккаунтов smallest.ai (Waves TTS / instant voice cloning), банк сессий и локальный OpenAI-совместимый шим для раздачи TTS через свой new-api.

Регистрация без капчи, без SMS, без телефона — только email OTP. Один аккаунт = 10 бесплатных кредитов (plan_standard).

Что внутри

Файл Назначение
reg.py авторег: send-otp → чтение кода из IMAP (через VPS) → verify → онбординг → банк
waves.py клиент Waves на cookie-сессиях: TTS, список голосов, instant voice cloning
shim.py HTTP-шим 127.0.0.1:48014: /v1/audio/speech, /v1/voices, /v1/voices/clone, ротация аккаунтов
deploy/smallest-shim.service systemd-юнит
deploy/pg_inject.sh создание канала smallest-tts + abilities + тестового токена в new-api (PostgreSQL)
deploy/patch_gates.py снятие трёх гейтов iishko (rank_models, toolgate, sso_limits)

Auth-стек (reverse)

Фронт app.smallest.ai (Next.js) ходит в четыре бэкенда:

https://api.smallest.ai/atoms/v1      # профиль, организации, онбординг
https://api.smallest.ai/console/v1    # OTP-логин, API-ключи, платежи
https://api.smallest.ai/waves/v1      # TTS, voice cloning, голоса
https://api.smallest.ai/payment/v1    # баланс кредитов

Поток регистрации:

  1. GET /console/v1/csrf-token → cookie + токен, дальше заголовок x-csrf-token
  2. POST /console/v1/auth/send-otp {"userEmail": "..."}
  3. письмо noreply@smallest.ai, тема Your verification code, код 6 цифр в тексте Here is the code to verify and sign into account. 123456
  4. POST /console/v1/auth/verify-otp form-urlencoded: userEmail, otp, origin=console → 302 /dashboard/settings/subscription, ставятся cookies accessToken / refreshToken, организация создаётся автоматически
  5. POST /atoms/v1/onboarding/create {"data": {name, nameType:"workspace", firstName, lastName, helpOption:"voice-cloning", platform:"Atoms"}} (тело обязательно завёрнуто в data, иначе 400 {"error":{"_errors":[],"data":{"_errors":["Required"]}}})
  6. GET /payment/v1/credits/balance → {"creditBalance":10,"planId":"plan_standard"}

Особенности:

  • origin в verify-otp принимает только console | waves | atoms | universe — URL отбивается error=Origin must be one of: ...
  • org-scoped ручки (/apikeys/*, /credits/*) требуют заголовок X-Organization-Id: <orgId>
  • у console/v1 и atoms/v1 свои csrf-эндпоинты, токен нужен на каждую базу
  • POST /console/v1/apikeys/create-api-key возвращает ключ только маской (sk_b35...17aa), полное значение сервер не отдаёт → работаем на cookie-сессиях

Waves API

GET  /waves/v1/lightning-v3.1/get_voices          # список голосов
POST /waves/v1/lightning-v3.1/get_speech          # {"text","voice_id","sample_rate","output_format"}
GET  /waves/v1/voice-cloning/models               # lightning-v3.1 / lightning-v3.1-pro (32 языка)
POST /waves/v1/voice-cloning/upload-audio         # multipart file + model + language, аудио <= 15 сек
POST /waves/v1/voice-cloning/create               # {"voiceId","displayName","description","accent","tags","language"}
GET  /waves/v1/voice-cloning                      # мои клоны

Цена: 0.0175 кредита / 1000 символов TTS → 10 кредитов ≈ 572 000 символов озвучки с аккаунта. Клонирование голоса кредитов практически не тратит (0.002 за цикл TTS+upload+clone).

Быстрый старт

# 1) авторег 10 аккаунтов, 4 воркера
python reg.py wave 10 4          # -> bank.jsonl, used_mails.txt

# 2) проверить аккаунт: баланс, голоса, клоны
python waves.py probe

# 3) озвучка / клонирование
python waves.py tts "текст" lakshya
python waves.py clone sample.wav "Мой голос"

Почта: пул working_mails.txt в формате addr:pass (t-online), коды читаются по SSH с VPS (SM_VPS), локальный IMAP t-online рвёт соединение после ~30 логинов с одного IP.

Шим на прод

scp shim.py root@HOST:/opt/smallest-shim/shim.py
scp bank.jsonl root@HOST:/opt/smallest-shim/bank.jsonl
scp deploy/smallest-shim.service root@HOST:/etc/systemd/system/
ssh root@HOST 'systemctl daemon-reload && systemctl enable --now smallest-shim'
curl -s 127.0.0.1:48014/status

Дальше канал в new-api:

bash deploy/pg_inject.sh      # channels + abilities + токен sm-test
python3 deploy/patch_gates.py # rank_models / toolgate / sso_limits

Проверка: POST /v1/audio/speech {"model":"smallest-tts","input":"...","voice":"lakshya"} → 200, WAV.

Ограничения

  • Сессия живёт на cookies accessToken/refreshToken (~месяц); после протухания нужен повторный OTP-логин на тот же email
  • Клонирование принимает аудио ≤ 15 секунд (27.3 с отбивается 400 Audio is 27.3 s long; voice clone audio must be at most 15 seconds)
  • Один аккаунт = один workspace (nameType: workspace), переименование через PUT /account/update-org-name
  • Ключи API панель не отдаёт в открытом виде → пул работает на сессиях, а не на ключах

Telegram: @AlStack

More free-tier farms, live proxy pools and API teardowns - t.me/AlStack

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.