# Pay per call, or from a balance

glim works two ways: pay per call straight from a crypto wallet with no account, or top up a prepaid balance and use an API key. Same endpoints, same prices — pick whichever fits your agent.

## Pay per call with a wallet

An unpaid request gets an HTTP `402` challenge listing the price and accepted networks. Your client pays on-chain and retries without signing up. The `x402-proxy` CLI runs the whole 402 loop for you:

**REST — pay per call**

```
# Pay per call with a crypto wallet — no account, no key.
# x402-proxy reads the 402 challenge and auto-pays from your wallet.
npx x402-proxy https://glim.sh/api/v1/twitter/get/cascade_fyi

# Check your wallet balance any time
npx x402-proxy wallet
```

For MCP clients, the same proxy bridges a stdio server to the paid endpoint, so any wallet-paying agent can connect:

**MCP — pay per call**

```
# Same wallet, for MCP clients — bridges stdio to the paid endpoint
npx x402-proxy mcp https://glim.sh/mcp
```

## Price per call

| Tool | REST route | Price per call (USD) |
| --- | --- | --- |
| `glim_twitter_search` | `POST /api/v1/twitter/search` | $0.005 |
| `glim_twitter_get` | `POST /api/v1/twitter/get` | $0.005 |
| `glim_reddit_search` | `POST /api/v1/reddit/search` | $0.01 |
| `glim_reddit_get` | `POST /api/v1/reddit/get` | $0.005 |
| `glim_web_search` | `POST /api/v1/web/search` | $0.01 |
| `glim_web_fetch` | `POST /api/v1/web/fetch` | $0.002 |
| `glim_github_search` | `POST /api/v1/github/search` | $0.002 |
| `glim_github_get` | `POST /api/v1/github/get` | $0.002 |
| `glim_amazon_search` | `POST /api/v1/amazon/search` | $0.005 |
| `glim_amazon_get` | `POST /api/v1/amazon/get` | $0.01 |
| `glim_youtube_get` | `POST /api/v1/youtube/get` | $0.01 |
| `glim_telegram_get` | `POST /api/v1/telegram/get` | $0.005 |
| `glim_telegram_search` | `POST /api/v1/telegram/search` | $0.01 |
| - | `POST /api/providers/api.dataforseo.com/v3/ai_optimization/llm_mentions/search/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/ai_optimization/llm_mentions/aggregated_metrics/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/ai_optimization/llm_mentions/top_pages/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/ai_optimization/llm_mentions/cross_aggregated_metrics/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_responses/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/ai_optimization/claude/llm_responses/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/ai_optimization/gemini/llm_responses/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/ai_optimization/perplexity/llm_responses/live` | See the live `402` challenge |
| - | `GET /api/providers/api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_responses/models` | See the live `402` challenge |
| - | `GET /api/providers/api.dataforseo.com/v3/ai_optimization/claude/llm_responses/models` | See the live `402` challenge |
| - | `GET /api/providers/api.dataforseo.com/v3/ai_optimization/gemini/llm_responses/models` | See the live `402` challenge |
| - | `GET /api/providers/api.dataforseo.com/v3/ai_optimization/perplexity/llm_responses/models` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/task_post` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/live/advanced` | See the live `402` challenge |
| - | `GET /api/providers/api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/task_get/advanced/:id` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/ai_optimization/gemini/llm_scraper/task_post` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/ai_optimization/gemini/llm_scraper/live/advanced` | See the live `402` challenge |
| - | `GET /api/providers/api.dataforseo.com/v3/ai_optimization/gemini/llm_scraper/task_get/advanced/:id` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/appendix/goto_url_converter` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/backlinks/summary/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/backlinks/referring_domains/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/backlinks/domain_pages_summary/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/backlinks/backlinks/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/backlinks/history/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/business_data/business_listings/search/live` | See the live `402` challenge |
| - | `GET /api/providers/api.dataforseo.com/v3/business_data/business_listings/categories` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/business_data/google/questions_and_answers/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/business_data/google/my_business_info/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/business_data/google/reviews/task_post` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/business_data/google/extended_reviews/task_post` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/business_data/google/my_business_updates/task_post` | See the live `402` challenge |
| - | `GET /api/providers/api.dataforseo.com/v3/business_data/google/reviews/task_get/:id` | See the live `402` challenge |
| - | `GET /api/providers/api.dataforseo.com/v3/business_data/google/extended_reviews/task_get/:id` | See the live `402` challenge |
| - | `GET /api/providers/api.dataforseo.com/v3/business_data/google/my_business_updates/task_get/:id` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/keywords_data/google_ads/search_volume/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/keywords_data/google_ads/keywords_for_keywords/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/serp_competitors/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/relevant_pages/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/related_keywords/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/ranked_keywords/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/keyword_suggestions/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/keyword_overview/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/keyword_ideas/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/domain_rank_overview/live` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/on_page/lighthouse/live/json` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/serp/google/organic/live/advanced` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/serp/google/organic/task_post` | See the live `402` challenge |
| - | `GET /api/providers/api.dataforseo.com/v3/serp/google/organic/task_get/advanced/:id` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/serp/google/maps/live/advanced` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/serp/google/maps/task_post` | See the live `402` challenge |
| - | `GET /api/providers/api.dataforseo.com/v3/serp/google/maps/task_get/advanced/:id` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/serp/google/local_finder/live/advanced` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/serp/google/ai_mode/live/advanced` | See the live `402` challenge |
| - | `POST /api/providers/api.dataforseo.com/v3/serp/google/ai_mode/task_post` | See the live `402` challenge |
| - | `GET /api/providers/api.dataforseo.com/v3/serp/google/ai_mode/task_get/advanced/:id` | See the live `402` challenge |
| - | `GET /api/providers/api.dataforseo.com/v3/serp/google/locations/:iso` | See the live `402` challenge |
| - | `GET /api/providers/api.context.dev/v1/web/scrape/html` | $0.004 |
| - | `GET /api/v1/twitter/get/:ref` | $0.005 |
| - | `GET /api/v1/twitter/search/:query` | $0.005 |
| - | `GET /api/v1/reddit/get/:ref` | $0.005 |
| - | `GET /api/v1/reddit/search/:query` | $0.01 |
| - | `GET /api/v1/web/search/:query` | $0.01 |
| - | `GET /api/v1/web/fetch/*` | $0.002 |
| - | `GET or POST /api/v1/twitter/tweets/search` | $0.005 |
| - | `GET or POST /api/v1/twitter/tweets/:id` | $0.001 |
| - | `GET or POST /api/v1/twitter/tweets` | $0.004 |
| - | `GET or POST /api/v1/twitter/tweets/:id/replies` | $0.004 |
| - | `GET or POST /api/v1/twitter/tweets/:id/quotes` | $0.004 |
| - | `GET or POST /api/v1/twitter/tweets/:id/retweeters` | $0.004 |
| - | `GET or POST /api/v1/twitter/tweets/:id/thread` | $0.004 |
| - | `GET or POST /api/v1/twitter/tweets/:id/article` | $0.005 |
| - | `GET or POST /api/v1/twitter/users/search` | $0.004 |
| - | `GET or POST /api/v1/twitter/users/relationship` | $0.001 |
| - | `GET or POST /api/v1/twitter/users/:ref` | $0.001 |
| - | `GET or POST /api/v1/twitter/users` | $0.004 |
| - | `GET or POST /api/v1/twitter/users/:ref/tweets` | $0.004 |
| - | `GET or POST /api/v1/twitter/users/:ref/mentions` | $0.004 |
| - | `GET or POST /api/v1/twitter/users/:ref/followers` | $0.004 |
| - | `GET or POST /api/v1/twitter/users/:ref/following` | $0.004 |
| - | `GET or POST /api/v1/twitter/users/:ref/verified_followers` | $0.004 |
| - | `GET or POST /api/v1/twitter/lists/:id/tweets` | $0.004 |
| - | `GET or POST /api/v1/twitter/lists/:id/members` | $0.004 |
| - | `GET or POST /api/v1/twitter/trends` | $0.001 |
| - | `POST /api/v1/inference/v1/chat/completions` | Varies by model and token count |
| - | `POST /api/v1/inference/v1/messages` | Varies by model and token count |

Pay with USDC on Base or Solana through x402, or with USDC.e on Tempo through [MPP](https://glim.sh/docs/mpp.md).

> **Nothing is hardcoded** The table mirrors the live `402` challenge, which is the source of truth for the price and accepted assets. Read the challenge for your request before paying.

## Prepaid balance & API key

Prefer not to attach a wallet per call? Sign in at `glim.sh/app`, top up a balance, and create an API key. Send it as an `x-api-key` header (or `Authorization: Bearer`) on REST, or connect the MCP server over OAuth — calls are billed against your balance:

**REST — API key**

```
# Prepaid balance: top up at glim.sh/app, then send your key
curl -X POST https://glim.sh/api/v1/web/search \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"x402 protocol"}'
```

## Full API reference

Every endpoint, parameter, and example response lives in the machine-readable spec:

- [Interactive API reference](https://glim.sh/docs/api-reference) — browse and try every endpoint in the browser
- [OpenAPI spec](https://glim.sh/openapi.json) — the raw OpenAPI 3.1 document for codegen and tooling
- [llms.txt](https://glim.sh/llms.txt) — a compact, agent-readable index of tools, prices, and the payment flow

---

## All docs pages


**Get started**

- [Introduction](https://glim.sh/docs.md)
- [MCP quickstart](https://glim.sh/docs/quickstart.md)
- [REST API quickstart](https://glim.sh/docs/quickstart-rest.md)
- [JavaScript quickstart](https://glim.sh/docs/quickstart-javascript.md)
- [Python quickstart](https://glim.sh/docs/quickstart-python.md)
- [Payments & auth](https://glim.sh/docs/payments.md)
- [MPP (Tempo)](https://glim.sh/docs/mpp.md)

**Tools**

- [Twitter / X](https://glim.sh/docs/twitter.md)
- [Reddit](https://glim.sh/docs/reddit.md)
- [Web](https://glim.sh/docs/web.md)
- [GitHub](https://glim.sh/docs/github.md)
- [Amazon](https://glim.sh/docs/amazon.md)
- [YouTube](https://glim.sh/docs/youtube.md)
- [Telegram](https://glim.sh/docs/telegram.md)

**Reference**

- [Changelog](https://glim.sh/docs/changelog.md)
- [API reference](https://glim.sh/docs/api-reference)
- [OpenAPI spec](https://glim.sh/openapi.json)
