> SpecStream is the live web data engine for teams and agents. This is the Markdown copy of https://specstream.ai/migrate/kagi-v0. Every page, with what SpecStream does and costs: https://specstream.ai/llms.txt

# Kagi Search API v0 compatible endpoint: 1-line swap ($1/1K vs $25/1K) | SpecStream

Checked on Dec 2, 2026 against the live SpecStream backend and vendor docs.

# 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](https://specstream.ai/benchmarks.md)).

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](https://specstream.ai/tools/drop-in-api-converter.md) or read the [Web Search API reference](https://specstream.ai/docs/web-search.md) for native parameters including `boost_domains`, `include_domains`, and `exclude_domains`.

[Get an API key](https://specstream.ai/signup?src=alternatives-migrate-kagi-v0&utm_source=alternatives&utm_campaign=migrate-kagi-v0&returnTo=%2Fworkspace%2Fsearch%3Froute%3Dkagi)[Start Growth plan ($199/mo)](https://specstream.ai/v1/billing/credit-plans/checkout?plan=growth)

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)](https://specstream.ai/v1/billing/credit-plans/checkout?plan=starter), [Growth ($199/mo)](https://specstream.ai/v1/billing/credit-plans/checkout?plan=growth), or [Scale ($499/mo)](https://specstream.ai/v1/billing/credit-plans/checkout?plan=scale). [Try the 1-line converter and savings calculator](https://specstream.ai/tools/drop-in-api-converter.md).

## 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](https://specstream.ai/migrate/kagi.md)) and `/v1/web-search` ([Web Search API reference](https://specstream.ai/docs/web-search.md)) 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](https://specstream.ai/migrate/kagi.md).

### Brave Search API

SpecStream also answers Brave Search API at `https://api.specstream.ai/res/v1/web/search`. See the [Brave migration guide](https://specstream.ai/migrate/brave.md).

## How SpecStream scores

The same numbers as the benchmarks page, from the official tasks and scorers.

ResultsWideSearchCostSimpleQA Verified

|  | SpecStream | ![](https://specstream.ai/images/benchmarks/parallel.svg)Parallel | ![](https://specstream.ai/images/benchmarks/exa.svg)Exa | ![](https://specstream.ai/images/benchmarks/tavily.svg)Tavily | ![](https://specstream.ai/images/benchmarks/perplexity.svg)Perplexity |
| --- | --- | --- | --- | --- | --- |
| **Web research**WideSearch, GPT-5.6 Luna | 60.9 | 45.5 | 53.0 | 47.9 | 47.0 |
| **Factual accuracy**SimpleQA Verified, GPT-5.6 Luna | 96 | 94 | 91 | 94 | 94 |
| **Factual accuracy**SimpleQA Verified, GPT-5.6 Sol | 99 | 97 | 91 | 92 | 95 |

## 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=10
```

3\. 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](https://specstream.ai/tools/drop-in-api-converter.md).

[Get an API key](https://specstream.ai/signup?src=alternatives-migrate-kagi-v0&utm_source=alternatives&utm_campaign=migrate-kagi-v0&returnTo=%2Fworkspace%2Fsearch%3Froute%3Dkagi)[Start Growth plan ($199/mo)](https://specstream.ai/v1/billing/credit-plans/checkout?plan=growth)[Open 1-line converter](https://specstream.ai/tools/drop-in-api-converter.md)

## Frequently asked questions

Something we didn't answer? [Talk to a human](https://specstream.ai/talk-to-a-human.md)

Does kagiapi 0.2.1 work unchanged with SpecStream?

Yes. Set KagiClient.BASE\_URL = "https://api.specstream.ai/kagi/api/v0" and pass your SpecStream API key to KagiClient().

Does SpecStream return Kagi v0 error code 2 on missing keys?

Yes. Missing or invalid keys return HTTP 401 with Kagi's exact {"meta": {"ms": 0}, "data": null, "error": \[{"code": 2, "msg": ...}\]} body.

How much does Kagi v0 migration save?

SpecStream charges $1 per 1,000 fast searches (up to 10 results) compared to Kagi's $25 per 1,000, a 96% reduction, with $2 free credit on sign-up and no invite list.

### Sources

Kagi v0 legacy schema and pricing come from help.kagi.com and kagi.com/api/pricing read Nov 10, 2026.

1.  [Kagi legacy v0 search docs](https://help.kagi.com/kagi/api/search-legacy.html)help.kagi.com/kagi/api/search-legacy.html, read Nov 10, 2026
2.  [Kagi API pricing](https://kagi.com/api/pricing)kagi.com/api/pricing, read Nov 10, 2026
3.  [SpecStream Kagi pass table](https://specstream.ai/specstream/dialects/kagi.md)specstream.ai/specstream/dialects/kagi.md, read Nov 10, 2026
4.  [SpecStream benchmarks](https://specstream.ai/benchmarks)specstream.ai/benchmarks, read Dec 2, 2026
5.  [SpecStream pricing](https://specstream.ai/pricing)specstream.ai/pricing, read Dec 2, 2026
