Files
vani-toolkit/README.md
T

121 lines
5.9 KiB
Markdown

<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).
# vani-toolkit
Free-pool toolkit for [Vani.ai](https://c.vani.ai) — mass account registration + OpenAI-compatible gateway with **chat, images, video, TTS audio and Deep Research** over the free tier.
> 37 chat models (GPT-6.x, Claude Opus 5.x, Kimi K3, GLM-5.3, Grok 4.6, Gemini 3.x, Qwen3.x, DeepSeek, MiniMax…), 4 image models, 5 video models (Seedance 2.x, Grok Imagine), TTS, 3D, Docs/Slides/Design artifacts, Web search and multi-minute cited Deep Research reports — all on **free accounts**, no card.
```
├── register/vani_reg.py mass registration (native Turnstile via cloakbrowser, no captcha services)
├── register/build_pool.py extract Supabase JWT pool from account bank
├── gateway/vanigw.py OpenAI-compatible gateway over the pool (stdlib only, Python 3.11+)
└── docs/API-REVERSE.md full reverse-engineered REST/SSE API reference (Oct 2026)
```
## Quick start
### 1. Register accounts
```bash
pip install cloakbrowser requests
python -m cloakbrowser install # fetch the browser binary once
python register/vani_reg.py 10 voidash # 10 accounts via voidash.bond temp mail
# -> vani_accounts.jsonl (email, cookies, verification status)
```
Registration is fully automatic: temp email → magic-link code from IMAP/API → native Cloudflare Turnstile solved in a real browser context (external captcha-solver tokens are **rejected** by their siteverify — hostname binding) → verified session cookies saved. ~2 min/account, ~80% conversion on residential IP.
Optional: `VANI_IMAP_POOL=/path/working_mails.txt` (lines `email:pass`) to use your own IMAP pool instead of voidash.
### 2. Run the gateway
```bash
python gateway/vanigw.py # stdlib only; reads ../vani_accounts.jsonl
# [vanigw] pool: 31 accounts (31 live)
# [vanigw] catalog: 45 models
# [vanigw] listening on 127.0.0.1:8500
```
Dashboard with pool health + curl examples: http://127.0.0.1:8500/
Key: `X-Gateway-Key: vani-local-2026` (edit `GW_KEY` in the source).
### 3. Use it — OpenAI compatible
```bash
# Chat (any of 37 models, streaming supported)
curl http://127.0.0.1:8500/v1/chat/completions \
-H "X-Gateway-Key: vani-local-2026" -H "Content-Type: application/json" \
-d '{"model":"claude-opus-5","messages":[{"role":"user","content":"hi"}],"stream":true}'
# Images -> b64_json + /media url (default: gemini-3.1-flash-image, the cheap one)
curl http://127.0.0.1:8500/v1/images/generations \
-H "X-Gateway-Key: vani-local-2026" -H "Content-Type: application/json" \
-d '{"prompt":"an orange cube on white background","model":"gpt-image-2.5","size":"1024x1024"}'
# TTS -> raw audio/mpeg (voice: Alex)
curl http://127.0.0.1:8500/v1/audio/speech \
-H "X-Gateway-Key: vani-local-2026" -H "Content-Type: application/json" \
-d '{"input":"Hello world"}' --output voice.mp3
# Video (async): create, then poll
curl http://127.0.0.1:8500/v1/videos/generations \
-H "X-Gateway-Key: vani-local-2026" -H "Content-Type: application/json" \
-d '{"prompt":"red sports car in a neon city, cinematic","model":"seedance-2.0-mini","duration_secs":5,"ratio":"16:9"}'
curl http://127.0.0.1:8500/v1/videos/<id> -H "X-Gateway-Key: vani-local-2026"
# -> {"status":"succeeded","url":"/media/<id>.mp4"} (720p, ~2 min render)
# Deep Research (async): plan -> research -> write -> verify -> cited report (~4-8 min)
curl http://127.0.0.1:8500/v1/research \
-H "X-Gateway-Key: vani-local-2026" -H "Content-Type: application/json" \
-d '{"query":"Compare free LLM API aggregators in 2026"}'
curl "http://127.0.0.1:8500/v1/research/<id>?format=md" -H "X-Gateway-Key: vani-local-2026"
# -> full markdown report with citations; also ?format=pdf|docx|html|pptx
```
Model aliases resolve loosely: `claude-opus-5` → `anthropic/claude-opus-5`, `kimi-k3` → `moonshotai/kimi-k3`, etc. Full live catalog: `GET /v1/models`.
## How the pool works
- Each account = Supabase session cookie (`sb-<ref>-auth-token`, refresh token valid ~30 days). The gateway auto-refreshes JWTs via the site middleware and persists rotated cookies.
- Free tier: 1M micro-units of text allowance per account per window + weekly media limits. On `429 weekly_limit_reached` the gateway marks the account exhausted and rotates to the next one.
- One concurrent request per account (free plan) — the gateway serializes per account and parallelizes across accounts.
## Notes
- Image models differ wildly in weekly cost: `gpt-image-2.5` ≈ 30%/image, `gemini-3.1-flash-image` ≈ 1-2%/image (gateway default). Video ≈ one weekly limit hit per account — the pool is your quota.
- Deep Research statuses: `scoping → awaiting_answers → planning → awaiting_approval → researching → writing → verifying → succeeded`. The gateway auto-skips clarifying questions and auto-approves the plan.
- Everything here talks to documented-by-behavior private endpoints; see `docs/API-REVERSE.md`.
---
Built with ENI. More free-tier stacks: [t.me/AlStack](https://t.me/AlStack)
---
<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>