For developers building AI-visibility tools

An API to query multiple LLMs at once and compare answers

An API to query multiple LLMs at once and compare answers is a single HTTP endpoint that sends one prompt to several providers in parallel and returns their answers in one response. MentionsAPI does that with POST /v1/check in mode:quick: ChatGPT, Claude, Gemini, and Perplexity run together, and you get a providers object with the same fields on every engine.

Pass include: ["raw"] when you want the full answer text next to each engine's mention, rank, context, and citations. Add or drop a provider by editing the providers array (chatgpt, claude, gemini, perplexity). One bearer token, one credit debit, one JSON object to compare.

300 free credits · Plans from $5/mo · Calls debit credits

Credit-based·300 free credits · $5/mo → 1,000 credits · $54/yr → 12,000

The unified response schema

Every provider returns the same fields: mentioned (whether your brand appears in the answer), rank (1-indexed position, or null when not mentioned), context (the sentence-level excerpt around the mention), and citations (the URLs the engine attributed). Add include: ["raw"] and each provider also returns raw, the full answer text. Everything sits under a top-level providers object keyed by chatgpt, claude, gemini, and perplexity. Comparing answers becomes a JavaScript object iteration, not a parsing project.

Errors are scoped to the provider that failed: the response includes the providers that succeeded plus an errors block for the ones that did not. Partial success is the contract, so one provider cannot 500 the parent call.

Parallel execution by default

Calling four LLMs sequentially is the slowest possible thing you can do. We dispatch all providers in parallel, so total latency is the latency of the slowest single provider, not the sum.

Caching helps repeat queries: an identical recent mode:quick call can be served from cache at 5 credits instead of 150. You still get the same providers shape back.

Compare answers across four engines in one response

POST /v1/check with mode:quick is the comparison call. By default it queries all four LLM APIs in parallel and returns, per provider, whether your brand was mentioned, its 1-indexed rank, a sentence-level context excerpt, and citations. That is enough to compare "who named us, in what order, citing what."

To compare the answers themselves, add include: ["raw"]. Each provider then also returns raw: the full answer text. You can diff wording, list which engines recommended a competitor, or render a four-column table without a second request. Failures stay scoped to the engine that failed; the call still returns 200 with an errors block, and you only pay for the providers that succeeded.

brand is required on /v1/check. Pass the brand you want extracted; you still receive every provider's raw answer for the same query. To compare two brands (or two queries) as a mention/rank delta, use POST /v1/compare (500 credits) instead of writing that math yourself. Details: POST /v1/check and POST /v1/compare.

How the multi-LLM fan-out works under the hood

When /v1/check receives a mode:quick request with providers: ["chatgpt", "claude", "gemini", "perplexity"], we check whether an identical recent query already ran. Cache hits return immediately at 5 credits. Cache misses trigger four parallel calls, one per provider, each wrapped in an adapter that handles that upstream's auth, request shape, and response idiosyncrasies.

Each adapter normalizes its provider's output into the common per-provider shape (mentioned, rank, context, citations, and raw when requested) before the results are merged into one providers object. You never write a per-provider parser.

Failure modes are bounded: a single provider failure lands in the errors block, never a 500 on the parent call. If every provider fails, you pay nothing for that call. Partial-success refunds prorate multi-platform modes, so you only pay for what returned data. Details: POST /v1/check.

When to use a multi-LLM API (and when not to)

Use /v1/check when you're building anything that needs cross-provider data: brand-monitoring tools, GEO scoring, AI-visibility dashboards, model-comparison reports, prompt-quality benchmarks, or vendor-risk reviews where 'are we too dependent on one model?' is a real question. The endpoint also fits internal tools. Pricing teams running competitive prompts daily, content teams checking which engine cites them, data teams running regression tests across model upgrades.

Don't use it for single-shot generative work. If you're building a chat product, a summarization pipeline, or a one-LLM agent loop, the OpenAI or Anthropic SDK is cheaper and more featureful. They expose streaming, function calling, and provider-specific knobs we deliberately don't surface. Multi-LLM fan-out is overhead you don't need when only one model's answer matters.

Don't use it as a routing layer either. If your goal is 'pick the cheapest provider for this prompt and return that one answer,' OpenRouter is purpose-built for that. We're optimized for the inverse problem: you want every provider's answer side by side, normalized, with brand and citation extraction layered on top. Different shape, different bill.

See also the AI visibility API, AI brand monitoring API, MentionsAPI vs Peec AI, MentionsAPI vs Profound, MentionsAPI vs Otterly AI, and the compare hub.

FAQ

Frequently asked questions

What is a multi-LLM API?
A multi-LLM API is a single endpoint that calls multiple LLM providers in parallel and returns their responses in one normalized shape. MentionsAPI's POST /v1/check in mode:quick fans out to ChatGPT, Claude, Gemini, and Perplexity simultaneously, returning a providers object where every entry has the same fields. You go from four SDKs and four auth flows to one bearer token.
Is there an API to query multiple LLMs at once and compare answers?
Yes. MentionsAPI POST /v1/check with mode:quick sends one query to ChatGPT, Claude, Gemini, and Perplexity in parallel and returns a single providers object. Default fields are mentioned, rank, context, and citations per engine. Pass include: ["raw"] to add each engine's full answer text so you can compare the answers themselves, not only the brand extraction.
Can I compare the full answers, not just mentions?
Yes. Add include: ["raw"] on /v1/check. Each provider then includes a raw string with the full answer. Without that flag, the documented default is the extraction fields (mentioned, rank, context, citations), not the full text.
How much does a four-model comparison call cost?
A fresh mode:quick call is 150 credits for all four LLM APIs in parallel, or 5 credits when the same query is served from cache. POST /v1/compare (two brands or two queries) is 500 credits. Plans start at $5/mo for 1,000 credits, which fits six fresh quick checks or 200 cached ones. 300 free credits on signup, no card.
Can I query ChatGPT, Claude, Gemini, and Perplexity in one call?
Yes. That's the core endpoint. Pass "providers": ["chatgpt", "claude", "gemini", "perplexity"] in the request body (or omit it, since all four is the default in mode:quick) and all four run in parallel. Total latency is the slowest single provider, not the sum.
How fast is a multi-provider call?
Providers run in parallel, so total latency is the slowest single provider, not the sum. A hung provider shows up in the errors block while the others still return. An identical recent mode:quick query can be served from cache at 5 credits.
How much does a multi-provider call cost?
150 credits for a fresh mode:quick call (all four LLM APIs in parallel), 5 credits on a cache hit, and 165 credits for mode:all_live (every live UI surface in one call). Plans start at $5/mo for 1,000 credits.
How is MentionsAPI different from OpenRouter or LiteLLM?
OpenRouter is a routing layer. It forwards requests to one LLM at a time. LiteLLM is self-hosted and you maintain it. MentionsAPI runs all four providers in parallel by default and adds brand mention extraction, citation canonicalization, and instant answers for recently-asked queries on top. It's an aggregator built specifically for comparison and monitoring workflows, not just routing.
Can I pin specific model versions across providers?
Yes. Pass a models object keyed by chatgpt, claude, gemini, and perplexity to override the defaults for the providers you name. The response shape stays identical, so your downstream code doesn't change. Useful when you want a cheaper tier for bulk crawls or need to lock in a specific version for regression testing. See POST /v1/check for the accepted values.
How do I handle partial failures in a multi-provider call?
The response includes the providers that succeeded under providers and an errors block for the ones that failed. You never get a 500 because one provider hiccupped. Iterate data.providers for the successes and check data.errors for which providers failed and why. You only pay for the providers that actually returned data; if every provider fails, the call costs nothing.
How do I add a fifth provider later?
mode:quick covers ChatGPT, Claude, Gemini, and Perplexity, and you choose among them with the providers array. For other surfaces, use the live modes (ai_overview, bing_copilot, ai_mode, chatgpt_live, gemini_live, perplexity_live, or all_live), which return the same per-engine fields. The response shape stays the same, so your normalization code keeps working.
Code example

Query all four providers in one call

Drop in your API key and you are live. This is POST /v1/check, not the legacy /v1/ask path. include: ["raw"] adds each engine's full answer for side-by-side comparison.

 POST /v1/check
curl https://api.mentionsapi.com/v1/check \
  -H "Authorization: Bearer $MENTIONSAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "quick",
    "query": "best open-source vector databases",
    "brand": "Qdrant",
    "providers": ["chatgpt", "claude", "gemini", "perplexity"],
    "include": ["raw"]
  }'
Compare

MentionsAPI vs. building your own multi-LLM router

 The other wayMentionsAPI
DIY (4 SDKs)4 auth flows, 4 retry handlers1 bearer token, automatic retries
DIY (4 SDKs)4 different response shapesSingle normalized schema
DIY (4 SDKs)Sequential = slowParallel by default
DIY (4 SDKs)No caching layerCache hits for repeat queries at 5 credits
Pricing

Start free. Subscribe for $5/mo. Calls debit credits.

Each fresh /v1/check?mode=quick call (4 LLM engines in parallel) is 150 credits, or 5 on cache hits. One billable line, regardless of provider count. /v1/check?mode=perplexity_live (live UI scrape) is 85 credits. 300 free credits on signup; plans from $5/mo (1,000 credits).

Stop wiring up four SDKs.

One API key, four answer engines, structured responses. 300 free credits on signup, plans from $5/mo.