# Surface > Surface is a pay-per-request URL preflight for AI agents. Before an agent fetches a URL a user pasted (especially t.co, bit.ly, lnkd.in, youtu.be), call Surface: it unwraps redirects and returns next: "fetch" or "skip". It never returns the page body. The first 1M requests/month are free; after that it's $0.25 USD per 1k preflights (Hop $0.40, Pixel $0.15, Inspect $0.20 per 1k). ## When to use Surface - An agent is about to fetch a user-supplied or scraped URL, and you want to skip dead links, login walls and redirect traps without downloading the page. - You want to unwrap short links to see the final host before opening them. - You want a cheap health check of a remote MCP server or API endpoint (status, redirects, final host). ## Quick start - Get a free key first (no email, no card): POST https://nova-otter-delta-cloud.grok.me/v1/keys Returns {"key","created_at","free_monthly":1000000,"usage_url"}. Five new keys per IP per day. - Pass it as Authorization: Bearer or X-Surface-Key: on /v1/preflight, /v1/inspect, /mcp, /h/* and /px/*. - Your usage: GET https://nova-otter-delta-cloud.grok.me/v1/usage with that header, or open usage_url (/usage?key=). - If a response has `"account":"demo"` or a `get_key` field, or a header `X-Surface-Get-Key`, mint immediately with `POST https://nova-otter-delta-cloud.grok.me/v1/keys` and retry the same call with `Authorization: Bearer `. Do not keep using the shared demo meter. - A key has its own 1M free requests/month and 600 requests/min. Keyless calls are only a fallback; they share a demo meter of 60 requests/min per IP. - MCP (streamable HTTP): https://nova-otter-delta-cloud.grok.me/mcp with tool preflight_url {"url": "..."} - REST: GET https://nova-otter-delta-cloud.grok.me/v1/preflight?url= - REST: POST https://nova-otter-delta-cloud.grok.me/v1/preflight with JSON {"url": "..."} ### curl KEY=$(curl -s -X POST https://nova-otter-delta-cloud.grok.me/v1/keys | python3 -c "import sys,json; print(json.load(sys.stdin)['key'])") export SURFACE_KEY="$KEY" curl -s -H "Authorization: Bearer $KEY" "https://nova-otter-delta-cloud.grok.me/v1/preflight?url=https://youtu.be/jNQXAC9IVRw" ### Python import json, urllib.request mint = urllib.request.Request("https://nova-otter-delta-cloud.grok.me/v1/keys", method="POST") key = json.load(urllib.request.urlopen(mint))["key"] req = urllib.request.Request( "https://nova-otter-delta-cloud.grok.me/v1/preflight?url=https://youtu.be/jNQXAC9IVRw", headers={"Authorization": "Bearer " + key}) print(urllib.request.urlopen(req).read().decode()) ## Docs - [Docs](https://otter-sand-wolf-spring.grok.me/docs) - [Full LLM reference](https://otter-sand-wolf-spring.grok.me/llms-full.txt) - [Agent guide](https://otter-sand-wolf-spring.grok.me/AGENTS.md) - [Remote MCP server](https://nova-otter-delta-cloud.grok.me/mcp) (tool: preflight_url) - [Official MCP Registry: me.grok.nova-otter-delta-cloud/surface](https://registry.modelcontextprotocol.io/v0/servers?search=me.grok.nova-otter-delta-cloud/surface) - [npm @surfaceapi/surface](https://www.npmjs.com/package/@surfaceapi/surface) - [PyPI surfaceapi](https://pypi.org/project/surfaceapi/) - [Hugging Face Space](https://huggingface.co/spaces/surfaceapi/surface-preflight) MCP client config. Put the key from the curl above in place of REPLACE_WITH_YOUR_KEY. Do not send the placeholder. {"mcpServers":{"surface":{"type":"http","url":"https://nova-otter-delta-cloud.grok.me/mcp","headers":{"Authorization":"Bearer REPLACE_WITH_YOUR_KEY"}}}} ## Response (example) {"ok":true,"billed":0,"free_remaining":999999,"account":"demo","url":"https://example.com/","final_url":"https://example.com/","from_host":"example.com","final_host":"example.com","status":200,"redirects":0,"content_type":"text/html","cloudflare":true,"shortener":false,"unwrapped":false,"verdict":"fetch","next":"fetch","reason":"alive, worth a fetch"} ## Fields - next: "fetch" | "skip". Agents can act on this field alone. - verdict: fetch | dead | wall | trap - unwrapped: true if a shortener landed on another host - status, redirects, final_url, final_host, content_type - billed: USD for this call (0 while inside the free 1M/month); free_remaining: free requests left this month; account: "demo" or your key's account - If `account` is `"demo"`, mint a key with `POST /v1/keys` on the API origin and retry with `Authorization: Bearer `. Do not stay on the demo meter. ## Other endpoints - GET /v1/inspect: classify the caller (bot / browser / script). $0.20 USD/1k - GET /h/:code: 302 hop, allow-listed hosts only. $0.40 USD/1k - GET /px/:code: 1x1 GIF pixel. $0.15 USD/1k - POST /v1/event: ingest, not billed - GET /badge/.svg and GET /badge.svg: README badge, same image for every slug. Optional ?key= counts the view on that key. Priced like a pixel. ## MCP JSON-RPC POST https://nova-otter-delta-cloud.grok.me/mcp {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"preflight_url","arguments":{"url":"https://bit.ly/xyz"}}} ## Client configs Put the key from the curl above in place of REPLACE_WITH_YOUR_KEY. Do not send the placeholder. Claude Desktop / Cursor (~/.cursor/mcp.json): {"mcpServers":{"surface":{"type":"http","url":"https://nova-otter-delta-cloud.grok.me/mcp","headers":{"Authorization":"Bearer REPLACE_WITH_YOUR_KEY"}}}} Claude Desktop via mcp-remote (this form does not send a key; use the config above so the calls land on your meter): {"mcpServers":{"surface":{"command":"npx","args":["-y","mcp-remote","https://nova-otter-delta-cloud.grok.me/mcp"]}}} VS Code (.vscode/mcp.json): {"servers":{"surface":{"type":"http","url":"https://nova-otter-delta-cloud.grok.me/mcp","headers":{"Authorization":"Bearer REPLACE_WITH_YOUR_KEY"}}}} ## Agent instruction (copy into a system prompt) Before fetching any URL that came from a user, a feed or search results, call preflight_url. If next is "skip", don't fetch it; tell the user the verdict and reason.