Kagi Search API v0 compatible
Keep kagiapi working at 96% lower cost.
SpecStream answers Kagi's legacy GET /api/v0/search endpoint at https://api.specstream.ai/kagi/api/v0/search with Authorization: Bot <key> and Kagi's exact v0 JSON (meta and data[] items with t: 0, url, title, snippet, published). Calls cost $1 per 1,000 fast searches (937 ms median over 6,548 live calls) against Kagi's $25 per 1,000, with no closed-beta invite wall, plus $5 per 1,000 default Search API and $0.80 per 1,000 Extract API pages.
SpecStream is state of the art on the live web, setting a new bar in research, extraction, and search. It ranks first on WideSearch (60.93 low-cost, ahead of every search API; 64.0 single-trial item F1 and 57.32% Avg@4 item F1 across all 200 official tasks) and scores 99 on SimpleQA Verified, alongside AA-Omniscience 82.67%, SurfBench v2 84.6, Seal-0 66.7%, Seal-Hard 71.26%, FinSearchComp Global T3 60.7%, FRAMES 90.78%, TRACE Extract v6 88.51%, WCXB 0.914, Scrapinghub 0.971, and scrapingbench 40 of 40 (benchmarks).
Point KagiClient.BASE_URL in kagiapi (or your HTTP client) from https://kagi.com/api/v0 to https://api.specstream.ai/kagi/api/v0 and put your SpecStream key in Authorization: Bot. Your existing v0 code keeps running with zero rewrite.
Want to generate the exact 1-line diff and compare monthly costs? Open the Drop-in API converter or read the Web Search API reference for native parameters including boost_domains, include_domains, and exclude_domains.
New accounts get $2 of free credit, no card required: 2,000 fast searches or 2,500 extracted pages.
Monthly credit plans with higher RPM and invoice receipts: Starter ($49/mo), Growth ($199/mo), or Scale ($499/mo). Try the 1-line converter and savings calculator.
SpecStream vs Kagi Search API v0 (Legacy)
| SpecStream | Kagi Search API v0 (Legacy) | |
|---|---|---|
| Endpoint | GET https://api.specstream.ai/kagi/api/v0/search (plus v1 at /kagi/api/v1/search) | GET https://kagi.com/api/v0/search (marked legacy/deprecated by Kagi) |
| Authentication | Authorization: Bot <SPECSTREAM_API_KEY> (or Bearer) | Authorization: Bot <KAGI_API_KEY> (closed beta invite required) |
| Price per 1,000 searches | $1 per 1,000 fast searches (up to 10 results, 937 ms median); $5 per 1,000 default Search API | $25 per 1,000 searches ($0.025 per query) |
| Parameters and JSON | q and limit; returns meta (id, ms) and data[] (t: 0, url, title, snippet, published) | Same q, limit, meta, and data[] format |
| Official Python SDK (`kagiapi`) | Set KagiClient.BASE_URL = "https://api.specstream.ai/kagi/api/v0" | Hardcoded https://kagi.com/api/v0 |
| Free start | $2 of credit on sign-up, no card required (2,000 fast searches), open self-serve | Invite-only closed beta access |
Why teams move legacy Kagi v0 clients to SpecStream
96% lower search cost with open self-serve keys
At $1 per 1,000 fast searches against Kagi's $25 per 1,000, moving 100,000 monthly searches drops your bill from $2,500 to $100. And when you want v1 lenses or native boost_domains / include_domains / exclude_domains, both /kagi/api/v1/search (Kagi v1 guide) and /v1/web-search (Web Search API reference) work on the same key.
Related Kagi and search migrations
Kagi Search API v1
Using Kagi's newer POST /api/v1/search? See the Kagi Search API v1 migration guide.
Brave Search API
SpecStream also answers Brave Search API at https://api.specstream.ai/res/v1/web/search. See the Brave migration guide.
How SpecStream scores
The same numbers as the benchmarks page, from the official tasks and scorers.
1-line swap from Kagi Search API v0 to SpecStream
1. Create an API key in the workspace. New accounts start with $2 of free credit, no card required (2,000 fast searches).
2. Swap the endpoint in cURL (https://kagi.com/api/v0 to https://api.specstream.ai/kagi/api/v0):
# Before (Kagi Search API v0)
curl -G https://kagi.com/api/v0/search \
-H "Authorization: Bot $KAGI_API_KEY" \
--data-urlencode "q=rust async runtime comparison" -d limit=10
# After (SpecStream: $1 per 1,000 fast searches)
curl -G https://api.specstream.ai/kagi/api/v0/search \
-H "Authorization: Bot $SPECSTREAM_API_KEY" \
--data-urlencode "q=rust async runtime comparison" -d limit=103. Swap one line in Python (kagiapi SDK):
import os
from kagiapi import KagiClient
# Before: client = KagiClient(os.environ["KAGI_API_KEY"])
KagiClient.BASE_URL = "https://api.specstream.ai/kagi/api/v0"
client = KagiClient(os.environ["SPECSTREAM_API_KEY"])
res = client.search("rust async runtime comparison", limit=10)
for row in res["data"]:
if row["t"] == 0:
print(row["title"], row["url"])4. Swap one line in Node.js / TypeScript:
// Before: const BASE = "https://kagi.com/api/v0"
const BASE = "https://api.specstream.ai/kagi/api/v0"
const qs = new URLSearchParams({ q: "rust async runtime comparison", limit: "10" })
const data = await fetch(`${BASE}/search?${qs}`, {
headers: { Authorization: `Bot ${process.env.SPECSTREAM_API_KEY}` },
}).then((r) => r.json())
console.log(data.data)5. Compare monthly search spend in the Drop-in API converter.
Frequently asked questions
Something we didn't answer? Talk to a human
Does kagiapi 0.2.1 work unchanged with SpecStream?
Does SpecStream return Kagi v0 error code 2 on missing keys?
How much does Kagi v0 migration save?
Sources
Kagi v0 legacy schema and pricing come from help.kagi.com and kagi.com/api/pricing read Nov 10, 2026.
- Kagi legacy v0 search docshelp.kagi.com/kagi/api/search-legacy.html, read Nov 10, 2026
- Kagi API pricingkagi.com/api/pricing, read Nov 10, 2026
- SpecStream Kagi pass tablespecstream.ai/specstream/dialects/kagi.md, read Nov 10, 2026
- SpecStream benchmarksspecstream.ai/benchmarks, read Dec 2, 2026
- SpecStream pricingspecstream.ai/pricing, read Dec 2, 2026




