๐Ÿ”ฅ FlintAPI

July 9, 2026 ยท View on GitHub

FlintAPI logo

Status Python License Docs

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.

FlintAPIDirect ProviderOpenRouter
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 TypeRouted ToWhy
Code / programmingdeepseek-v4-proBest coding LLM
Reasoning / analysisdeepseek-v4-proStrong logic
Chinese / bilingualdeepseek-v4-proNative Chinese
General / defaultdeepseek-v4-flashFast & cheap

๐Ÿ“Š Available Models

The Smart Router automatically selects from these models:

ModelProviderContextBest For
deepseek-v4-proDeepSeek128KReasoning & code
deepseek-v4-flashDeepSeek128KFast, cost-effective
qwen3.7-maxQwen128KFlagship all-rounder
qwen3.7-plusQwen128KBalanced Chinese-English
qwen3.5-plusQwen128KSolid general-purpose
qwen3.5-flashQwen128KLowest latency
kimi-k2.6Kimi256KLong context
kimi-k2.5Kimi128KLong context
glm-5.1GLM32KBilingual expert
MiniMax-M2.7MiniMax512KCreative 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_url and 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 /v1 endpoints
  • Router: flint-smart decompose & dispatch engine
  • Database: SQLite (token relay, usage logs)
  • Deployment: Ubuntu 22.04, Nginx reverse proxy, Let's Encrypt SSL

๐Ÿค Support


๐Ÿ‡จ๐Ÿ‡ณ 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

ModelOrganizationOpen WeightsBest ForHow to Try
DeepSeek-V4-ProDeepSeekโœ…Reasoning, math, codeapi-docs.deepseek.com
Qwen3.7-MaxAlibabaโœ…All-rounder, bilingualqwen.ai
Kimi-K2.6Moonshot AIโŒ API onlyLong context (256K)kimi.moonshot.cn
GLM-5.1Zhipu AIโœ…Bilingual enterprisezhipuai.cn
MiniMax-M2.7MiniMaxโŒ API onlyCreative writing, 512K ctxminimaxi.com
Doubao-1.5-proByteDanceโŒ API onlyChinese content, fastvolcengine.com
Baichuan-M1Baichuanโœ…Healthcare, financebaichuan-ai.com
Yi-Lightning01.AIโœ…Efficient, low-latency01.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

BenchmarkTop Chinese ModelScore vs GPT-5
Aider Polyglot (coding)DeepSeek-V4-Pro+5.2%
LiveCodeBenchQwen3.7-Max-2.1%
MMLU-ProDeepSeek-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

  1. Via API: Most providers offer OpenAI-compatible endpoints โ€” sign up, get a key, swap base_url
  2. Run locally: Qwen3.6-27B fits on a 3090; DeepSeek-V4 needs ~140GB VRAM (run on cloud or multiple GPUs)
  3. 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.