API Docs

Compare LLM search behavior through one API.

Run one query across selected providers and receive normalized search queries, sources, extracted page evidence, and final answer text.

Quick Start

The production API base is https://llmsleuth.com. Use API keys from your dashboard. Local and preview domains should not be used in documentation or customer integrations.

curl https://llmsleuth.com/api/v1/query \
  -H "Authorization: Bearer asc_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "What is the best lead scraping tool?",
    "providers": ["openai", "anthropic", "gemini"]
  }'

Authentication

Send your key as a bearer token. Keys start with asc_. Provider API keys stay on the LLM Sleuth server.

Authorization: Bearer asc_your_api_key

Run Query

POST/api/v1/query
FieldTypeDescription
querystringThe question or research prompt to run.
providersarrayAny mix of openai, anthropic, and gemini. xAI can be enabled later when credits are available.

Providers

IDProviderSearch capture
openaiChatGPT / OpenAICaptures Responses API web search calls and source annotations.
anthropicClaude / AnthropicCaptures web_search tool inputs and citations when returned.
geminiGemini / GoogleCaptures grounding search queries and grounding chunks when returned.

Response Shape

The response includes an execution_id. You can open that run later in the dashboard history.

{
  "execution_id": "7f79c814-1112-4a94-9bb4-719d5ccf5e98",
  "query": "What is the best lead scraping tool?",
  "providers": ["openai", "anthropic", "gemini"],
  "results": [
    {
      "provider": "openai",
      "label": "ChatGPT / OpenAI",
      "ok": true,
      "generatedQueries": ["best lead scraping tools 2026"],
      "sources": [{ "url": "https://example.com/source" }],
      "sourcePreviews": [
        {
          "url": "https://example.com/source",
          "fetchStatus": 200,
          "headings": [{ "level": 1, "text": "Best Lead Tools" }]
        }
      ],
      "answer": "Markdown answer text..."
    }
  ]
}

Errors

FieldTypeDescription
401authMissing or invalid API key.
402creditsNot enough credits for the selected provider count.
400inputInvalid JSON, missing query, or no valid providers selected.
500serverProvider or persistence failure.

Each selected provider costs one credit. A three-provider comparison uses three credits.

Try it visually first

The search lab uses the same provider runner and stores executions for history.

Open search lab