Search

Run a prompt across the AI models and get each model’s answer plus the sources it cited.

Overview

/v1/search is the primitive the rest of the API is built on. Pass a query and get back the full prose answer from each model, ChatGPT, Claude, Perplexity, Gemini, and Google AI Overviews, with the sources each one cited, in one JSON response.

Omit models to query all five; pass it to narrow to the ones you need (you only pay for the models you query, see Per-model pricing).

Reference

POST/v1/search

$0.01-$0.07/model · billed per model queried, so all 5 models = $0.22. Pass models to query fewer.

Parameters

queryrequiredstringThe query to run against the AI models.
modelsoptionalarray of enum (chatgpt | claude | perplexity | gemini | google_ai_overview)Optional model subset. Omit to query all five AI surfaces (chatgpt, claude, perplexity, gemini, google_ai_overview). Pass ["perplexity"] or ["perplexity","claude"] when the user asks for specific surfaces or wants to reduce cost.

Request

curl https://www.cite42.dev/api/v1/search \
  -X POST \
  -H "Authorization: Bearer $CITE42_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"best AI blog tool 2026"}'

Response

{
  "query": "best AI blog tool 2026",
  "results": [
    {
      "model": "chatgpt",
      "ok": true,
      "answer": "Several tools stand out for research, drafting, and optimization.",
      "citations": [
        {
          "url": "https://example.com/ai-writing-tools",
          "title": "AI writing tools guide"
        }
      ],
      "latencyMs": 4120
    }
  ],
  "requestId": "…",
  "billing": {
    "cost": {
      "microCredits": 22000,
      "usd": "0.22"
    },
    "balance": {
      "microCredits": 1336000,
      "usd": "13.36"
    }
  }
}