๐ฅ FlintAPI
July 9, 2026 ยท View on GitHub
One endpoint. Smart Routing auto-decomposes every prompt,
picks the best model per sub-task. No model selection needed.
\$5 free credit โ no card required.
Why FlintAPI?
FlintAPI is a Smart Routing engine โ not a model aggregator. When you send a prompt, FlintAPI's router decomposes it into sub-tasks, dispatches each to the best-suited model, and returns the combined result. You never need to pick a model.
| FlintAPI | Direct Provider | OpenRouter | |
|---|---|---|---|
| Smart Routing | โ Decompose & Dispatch | โ Manual model selection | โ Basic routing only |
| OpenAI-compatible | โ Drop-in replacement | โ ๏ธ Varies | โ |
| Free credit | โ $5, no card | โ | โ ๏ธ Limited |
| Referral bonus | โ $1 each | โ | โ |
| Multi-SDK | โ Python, Node, Go, curl | โ ๏ธ Per-provider | โ |
Quick Start (60 seconds)
1. Register
Go to flintapi.ai/register โ you get $5 free credit instantly, no credit card required.
2. Get your API Key
Find it in your Dashboard โ Settings โ Create Key. Copy it โ it's shown only once!
3. Make your first call
cURL:
curl https://flintapi.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flint-smart",
"messages": [{"role": "user", "content": "Explain quantum computing in one sentence."}]
}'
Python (with pip install openai):
from openai import OpenAI
client = OpenAI(
base_url="https://flintapi.ai/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="flint-smart",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
Node.js (npm install openai):
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://flintapi.ai/v1',
apiKey: 'YOUR_API_KEY',
});
const completion = await client.chat.completions.create({
model: 'qwen3.7-max',
messages: [{ role: 'user', content: 'Say hello in Chinese' }],
});
console.log(completion.choices[0].message.content);
Go (go get github.com/sashabaranov/go-openai):
import "github.com/sashabaranov/go-openai"
client := openai.NewClient("YOUR_API_KEY")
client.BaseURL = "https://flintapi.ai/v1"
resp, _ := client.CreateChatCompletion(ctx, openai.ChatCompletionRequest{
Model: "glm-5.1",
Messages: []openai.ChatCompletionMessage{
{Role: "user", Content: "Hello!"},
},
})
fmt.Println(resp.Choices[0].Message.Content)
๐ง flint-smart Router
Don't know which model to pick? Use "model": "flint-smart" and our router auto-selects the best model for your prompt:
| Prompt Type | Routed To | Why |
|---|---|---|
| Code / programming | deepseek-v4-pro | Best coding LLM |
| Reasoning / analysis | deepseek-v4-pro | Strong logic |
| Chinese / bilingual | deepseek-v4-pro | Native Chinese |
| General / default | deepseek-v4-flash | Fast & cheap |
๐ Available Models
The Smart Router automatically selects from these models:
| Model | Provider | Context | Best For |
|---|---|---|---|
deepseek-v4-pro | DeepSeek | 128K | Reasoning & code |
deepseek-v4-flash | DeepSeek | 128K | Fast, cost-effective |
qwen3.7-max | Qwen | 128K | Flagship all-rounder |
qwen3.7-plus | Qwen | 128K | Balanced Chinese-English |
qwen3.5-plus | Qwen | 128K | Solid general-purpose |
qwen3.5-flash | Qwen | 128K | Lowest latency |
kimi-k2.6 | Kimi | 256K | Long context |
kimi-k2.5 | Kimi | 128K | Long context |
glm-5.1 | GLM | 32K | Bilingual expert |
MiniMax-M2.7 | MiniMax | 512K | Creative writing |
Full list & pricing: flintapi.ai/pricing
๐ Python SDK
A thin OpenAI-compatible wrapper lives in flintapi/ in this repo. Install it directly from source:
pip install git+https://github.com/moozechen/flintapi.git
from flintapi import Flint
flint = Flint(api_key="YOUR_API_KEY")
# Simple chat
reply = flint.chat("Explain quantum computing in one sentence.")
print(reply)
# With model selection
reply = flint.chat("Write a Python quicksort", model="flint-smart")
print(reply)
# Streaming
for chunk in flint.chat_stream("Tell me a story"):
print(chunk, end="")
๐ Docs & Resources
- API Docs โ Full API reference with code examples
- Playground โ Try models in your browser
- Pricing โ Per-token pricing for all models
- Compare โ FlintAPI vs alternatives
- Status โ Real-time model health
- Dashboard โ Usage, billing, API keys
๐ Features
- Smart Routing โ Decompose & Dispatch: one prompt auto-routed to optimal models per sub-task
- OpenAI-compatible โ change
base_urland keep existing code - flint-smart router โ auto-select best model per request
- $5 free credit โ instant, no card required
- Real-time billing โ per-token pricing, usage dashboard
- 4 language SDKs โ cURL, Python, Node.js, Go
- Referral program โ both you and your friend get $1
๐ Architecture
FlintAPI runs as a hosted service on flintapi.ai โ just grab a key and call the /v1 endpoints. This repo ships the open-source Python SDK; the routing engine itself is operated as a managed service.
To use the SDK from source:
git clone https://github.com/moozechen/flintapi.git
cd flintapi
pip install -e .
Production stack:
- Frontend: React 18 + Vite, served via Nginx
- Backend: FastAPI (Python 3.10+), OpenAI-compatible
/v1endpoints - Router: flint-smart decompose & dispatch engine
- Database: SQLite (token relay, usage logs)
- Deployment: Ubuntu 22.04, Nginx reverse proxy, Let's Encrypt SSL
๐ค Support
- Email: support@flintapi.ai
- GitHub Issues: github.com/moozechen/flintapi/issues
- Website: flintapi.ai
๐จ๐ณ Chinese AI Landscape (2026)
A community resource tracking the Chinese LLM ecosystem. Not promotional โ just what's out there, what each model does best, and how to try them.
The Major Players
| Model | Organization | Open Weights | Best For | How to Try |
|---|---|---|---|---|
| DeepSeek-V4-Pro | DeepSeek | โ | Reasoning, math, code | api-docs.deepseek.com |
| Qwen3.7-Max | Alibaba | โ | All-rounder, bilingual | qwen.ai |
| Kimi-K2.6 | Moonshot AI | โ API only | Long context (256K) | kimi.moonshot.cn |
| GLM-5.1 | Zhipu AI | โ | Bilingual enterprise | zhipuai.cn |
| MiniMax-M2.7 | MiniMax | โ API only | Creative writing, 512K ctx | minimaxi.com |
| Doubao-1.5-pro | ByteDance | โ API only | Chinese content, fast | volcengine.com |
| Baichuan-M1 | Baichuan | โ | Healthcare, finance | baichuan-ai.com |
| Yi-Lightning | 01.AI | โ | Efficient, low-latency | 01.ai |
Why They Matter
- DeepSeek-V4 scored #1 on Aider's polyglot coding benchmark, beating GPT-5 and Claude
- Qwen3.6-35B-A3B (MoE) delivers near-70B performance at 35B params โ 1274 points on HN
- Qwen3.6-27B runs on a single RTX 3090 (Q4 quant) at 50-70 tok/s โ HN front page
- Kimi-K2.6 handles 256K context windows, competitive with Gemini for long-document tasks
- MiniMax-M2.7 has 512K context โ among the longest available worldwide
Community Benchmarks
| Benchmark | Top Chinese Model | Score vs GPT-5 |
|---|---|---|
| Aider Polyglot (coding) | DeepSeek-V4-Pro | +5.2% |
| LiveCodeBench | Qwen3.7-Max | -2.1% |
| MMLU-Pro | DeepSeek-V4-Pro | -1.8% |
| C-Eval (Chinese NLP) | Qwen3.7-Max | +8.3% |
Benchmarks from official model cards and public leaderboards. Last updated: June 2026.
Getting Started
- Via API: Most providers offer OpenAI-compatible endpoints โ sign up, get a key, swap
base_url - Run locally: Qwen3.6-27B fits on a 3090; DeepSeek-V4 needs ~140GB VRAM (run on cloud or multiple GPUs)
- Registration tip: Some platforms require Chinese phone numbers โ use Alibaba Cloud's international portal for Qwen without Chinese ID
Community-maintained resource. Spotted outdated info? Open an issue.