AI Model Comparison API: the same prompt on 8 AI engines
For generative engine optimization (GEO) across engines, the AI Model Comparison API runs one prompt as one task per model, on ChatGPT, Gemini, Google AI Mode, AI Overviews, Copilot, Grok, Rufus and Alexa for Shopping. Each task returns the brands the answer names, their rank and sentiment, and the sources it cites, so you compare the engines brand by brand. GET /v1/models lists the models, their price and the countries each one runs in.
ChatGPT
Gemini
Google AI Mode
AI Overviews
Microsoft Copilot
Grok
Rufus
Alexa for Shopping
Updated
Playground
Loopwork ranks 1st on ChatGPT and 3rd on Gemini for the same prompt
The AI Model Comparison API has no comparison call: the same prompt runs as one task per model, and you lay the results side by side. Tick the models and pick an entity: the code and the rows follow. In this sample, ChatGPT and Google AI Mode name Loopwork first, while Gemini puts it third. The JSON tab cuts each task's entities to the one you pick.
POST/v1/tasks·GET/v1/tasks/{taskId}
model (one task each)
Position across models
1 to 3
for Loopwork in 3 tasks, one per model
# 1. on ChatGPT curl -X POST https://api.apiforgeo.com/v1/tasks \ -H "Authorization: Bearer $API_FOR_GEO_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "best project management tool for creative agencies", "model": "chatgpt", "country": "US", "language": "en" }' # 2. on Gemini curl -X POST https://api.apiforgeo.com/v1/tasks \ -H "Authorization: Bearer $API_FOR_GEO_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "best project management tool for creative agencies", "model": "gemini", "country": "US", "language": "en" }' # 3. on Google AI Mode curl -X POST https://api.apiforgeo.com/v1/tasks \ -H "Authorization: Bearer $API_FOR_GEO_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "best project management tool for creative agencies", "model": "google-ai-mode", "country": "US", "language": "en" }'
import os, requests API = "https://api.apiforgeo.com/v1" H = {"Authorization": f"Bearer {os.environ['API_FOR_GEO_KEY']}"} # 1. on ChatGPT requests.post(f"{API}/tasks", headers=H, json={ "prompt": "best project management tool for creative agencies", "model": "chatgpt", "country": "US", "language": "en" }, timeout=30) # 2. on Gemini requests.post(f"{API}/tasks", headers=H, json={ "prompt": "best project management tool for creative agencies", "model": "gemini", "country": "US", "language": "en" }, timeout=30) # 3. on Google AI Mode r = requests.post(f"{API}/tasks", headers=H, json={ "prompt": "best project management tool for creative agencies", "model": "google-ai-mode", "country": "US", "language": "en" }, timeout=30) print(r.json())
const API = "https://api.apiforgeo.com/v1"; const auth = { Authorization: `Bearer ${process.env.API_FOR_GEO_KEY}` }; const post = (path, body) => fetch(API + path, { method: "POST", headers: { ...auth, "Content-Type": "application/json" }, body: JSON.stringify(body) }).then((r) => r.json()); // 1. on ChatGPT await post("/tasks", { "prompt": "best project management tool for creative agencies", "model": "chatgpt", "country": "US", "language": "en" }); // 2. on Gemini await post("/tasks", { "prompt": "best project management tool for creative agencies", "model": "gemini", "country": "US", "language": "en" }); // 3. on Google AI Mode console.log(await post("/tasks", { "prompt": "best project management tool for creative agencies", "model": "google-ai-mode", "country": "US", "language": "en" }));
| Model | Position | Mentions | Sentiment | Stance |
|---|---|---|---|---|
| ChatGPT | 1 | 4 | 0.72 | chosen |
| Gemini | 3 | 2 | 0.35 | described |
| Google AI Mode | 1 | 3 | 0.58 | chosen |
[
{
"id": "task_0193f2a7c1d84e6f9b2a5c7d3e1f4a00",
"model": "chatgpt",
"status": "completed",
"result": {
"entities": [
{
"id": "ent_7a41c09e2b5d4f8a9c3e1b6d0f2a8c45",
"type": "brand",
"name": "Loopwork",
"position": 1,
"mentions": 4,
"sentiment": 0.72,
"stance": "chosen"
}
]
}
},
{
"id": "task_0193f2a7c1d84e6f9b2a5c7d3e1f4a01",
"model": "gemini",
"status": "completed",
"result": {
"entities": [
{
"id": "ent_7a41c09e2b5d4f8a9c3e1b6d0f2a8c45",
"type": "brand",
"name": "Loopwork",
"position": 3,
"mentions": 2,
"sentiment": 0.35,
"stance": "described"
}
]
}
},
{
"id": "task_0193f2a7c1d84e6f9b2a5c7d3e1f4a02",
"model": "google-ai-mode",
"status": "completed",
"result": {
"entities": [
{
"id": "ent_7a41c09e2b5d4f8a9c3e1b6d0f2a8c45",
"type": "brand",
"name": "Loopwork",
"position": 1,
"mentions": 3,
"sentiment": 0.58,
"stance": "chosen"
}
]
}
}
] | Field | Type | Description |
|---|---|---|
prompt | string | 1 to 2,000 characters. |
model | string | A model id from GET /v1/models, such as chatgpt. |
country | string | Two upper-case letters, such as US. The model must run there. |
language | string | A language code, such as en. |
Coverage
GET /v1/models lists 7 models, their price and their countries
The AI Model Comparison API publishes its coverage as reference data. GET /v1/models lists each model with its price per task and the countries it runs in, then every country and language a task can use. A null countries list means every country. A task on a model outside its countries gets a 400, model_not_available, and nothing is charged. This sample shows four countries.
GET/v1/models
curl https://api.apiforgeo.com/v1/models \ -H "Authorization: Bearer $API_FOR_GEO_KEY"
import os, requests API = "https://api.apiforgeo.com/v1" H = {"Authorization": f"Bearer {os.environ['API_FOR_GEO_KEY']}"} r = requests.get(f"{API}/models", headers=H, timeout=30) print(r.json())
const API = "https://api.apiforgeo.com/v1"; const auth = { Authorization: `Bearer ${process.env.API_FOR_GEO_KEY}` }; const get = (path) => fetch(API + path, { headers: auth }).then((r) => r.json()); console.log(await get("/models"));
200 OK
{
"models": [
{
"id": "chatgpt",
"name": "ChatGPT",
"priceMicros": 13000,
"countries": null
},
{
"id": "gemini",
"name": "Gemini",
"priceMicros": 13000,
"countries": null
},
{
"id": "google-ai-mode",
"name": "Google AI Mode",
"priceMicros": 13000,
"countries": null
},
{
"id": "google-ai-overview",
"name": "AI Overviews",
"priceMicros": 13000,
"countries": null
},
{
"id": "copilot",
"name": "Microsoft Copilot",
"priceMicros": 13000,
"countries": null
},
{
"id": "grok",
"name": "Grok",
"priceMicros": 13000,
"countries": null
},
{
"id": "rufus",
"name": "Rufus and Alexa for Shopping",
"priceMicros": 13000,
"countries": null
}
],
"countries": [
{
"code": "DE",
"name": "Germany"
},
{
"code": "FR",
"name": "France"
},
{
"code": "GB",
"name": "United Kingdom"
},
{
"code": "US",
"name": "United States"
}
],
"languages": [
{
"code": "de",
"name": "German"
},
{
"code": "en",
"name": "English"
},
{
"code": "fr",
"name": "French"
}
]
} | Field | Type | Description |
|---|---|---|
models[] | array | The models for sale. |
models[].id | string | The model id to send as model, such as chatgpt. |
models[].name | string | Its display name. |
models[].priceMicros | integer | What a task on it costs, every enrichment included. |
models[].countries[] | array | null | The countries it runs in. Null: every country listed. |
countries[] | array | Every country a task can run in: code and name. |
languages[] | array | Every language a task can use: code and name. |
Across tasks
Over 30 tasks per model, Loopwork's mention rate runs from 31.7% to 71.2%
The AI Model Comparison API returns one result per task; the figures per model across tasks are yours to compute today, with the same few lines as on the AI Visibility Tracking API page. In this sample of 30 tasks per model in the US, ChatGPT names Loopwork in 71.2% of answers and Grok in 31.7%. Citation rate counts the tasks whose sources include loopwork.io.
| Model | Mention rate | Average position | Share of voice | Citation rate |
|---|---|---|---|---|
| ChatGPT | 1.7 | 26.4% | 62.5% | |
| Gemini | 2.6 | 19.7% | 88.4% | |
| Google AI Mode | 2.2 | 22.1% | 98.1% | |
| AI Overviews | 2.4 | 17.3% | 91% | |
| Microsoft Copilot | 3.0 | 15.2% | 79.3% | |
| Grok | 3.9 | 9.8% | 55.6% | |
| Rufus and Alexa for Shopping | 2.8 | 12.6% | 14.2% |
Coming soon: Aggregated visibility. Mention rate, share of voice, average position and trends computed across your tasks. The code that computes them today is on the AI Visibility Tracking API page.
Get started
Four setup steps lead to the first engine-by-engine comparison
The AI Model Comparison API needs no project and no setup per engine. Sign in to the dashboard, create a key, then send the same prompt once per model with POST /v1/tasks. Read each result by webhook or by polling, and line the rows up on your side. A test key runs the same code in the free sandbox first.
-
Step 1
Sign in
Sign in to the dashboard with an email link or Google. The first sign-in creates your workspace.
-
Step 2
Create a key
Create an API key in the dashboard. A test key runs in the free sandbox; a live key spends the balance.
-
Step 3
Create a task
Send POST /v1/tasks with a prompt, a model, a country and a language. One task is one answer.
-
Step 4
Read the result
Poll GET /v1/tasks/{taskId}, or pass a webhookUrl and get task.completed. Keep what you need within 7 days.
Comparison
Engine coverage is reference data in 1 of the 4 approaches
The AI Model Comparison API publishes its models, their price and the countries each one runs in through GET /v1/models, and returns every engine in the same result shape. An AI scraping API varies by provider, a GEO dashboard tool works from a fixed list, and an in-house build has to follow each engine's interface changes on its own.
4 of the 15 capabilities on the full comparison
| Capability | API for GEO | AI scraping API | GEO dashboard tool | In-house build |
|---|---|---|---|---|
| Model & locale coverage as reference data | Yes | Varies | Fixed list | Your problem |
| Brands with stable ids across answers | Yes | No | Yes, closed | Build it |
| Position of each brand in the answer | Yes | No | Yes, closed | Build it |
| Ongoing maintenance when engines change | Ours | Partly theirs | Theirs | Yours |
Use cases
Per-engine data feeds 3 decisions, one per audience
The AI Model Comparison API answers a practical question for each audience: which engine tab to show customers, which engines a client should pay to track, and in which markets an engine drops the brand. Each card opens the full pattern, with the endpoints it combines.
A per-engine tab in your product
Run the customer's prompt once per model and store each result. Your product lays the tasks side by side, one row per engine, with the brand's position, mentions and sentiment in each answer.
Read the pattern → AgenciesEngine choice backed by numbers
Each model added is one more task per prompt. Run a month on all 7 models, compute the mention rate per model on your side, then keep the models that carry the client's visibility.
Read the pattern → E-commerce & brandsMarkets where an engine drops you
The same product question can hold up on one engine in the US and fade on another in France. Run one task per model and market, Rufus included, and compare the brand's position country by country.
Read the pattern →Pricing
AI Model Comparison API pricing runs from $0.013 to $0.007 per task
The AI Model Comparison API bills one task per prompt, per model, per country and language, with every layer included. Comparing all 7 models on one prompt is 7 tasks; 3 models is 3 tasks. Reading results and GET /v1/models are free. A failed task is refunded in full, and a model that does not run in a country is refused before any charge.
Price per task, set by the month's total volume. 200 prompts × 3 models × 30 runs = 18,000 tasks a month, $234 at $0.013
FAQ
Engine comparison, answered
Is there one call that compares all engines?
The AI Model Comparison API has no comparison call. You send the same prompt once per model, as separate tasks, and lay the results side by side. Each task returns its own entities, sources and fan-out searches. Eight engines on one prompt are seven tasks, and the comparison rows are computed on your side from those results.
Which engines can I compare?
The AI Model Comparison API covers 8 engines: ChatGPT, Gemini, Google AI Mode, AI Overviews, Microsoft Copilot, Grok, Rufus and Alexa for Shopping, Amazon's shopping assistants, which run on one model, rufus. Some models run only in some countries, so GET /v1/models lists the countries of each one. A task outside them is refused with a 400, model_not_available, and nothing is charged.
Does comparing more engines cost more?
The AI Model Comparison API bills one task per model, so the cost grows with each engine. 200 prompts on all 7 models are 1,400 tasks, against 600 on 3 models. A pilot month on every engine, then a cut to the engines that carry your brand, keeps the bill down. Reading results is free, and a failed task is refunded in full.
Can I compare competitors engine by engine?
The AI Model Comparison API returns every entity an answer names, competitors included, with ids that stay stable across your workspace. Read Loopwork, Cadence and Northbeam from the same tasks to see on which engine each brand leads. There is no extra call and no brand list: the comparison comes from results you already have.
Does the API compute mention rate per engine?
Not yet: Aggregated visibility is coming soon. Mention rate, share of voice and average position across tasks are computed on your side today, per model, from the tasks you stored. A result stays readable for 7 days, so store each one when the task.completed webhook arrives, and your history grows with every run.
Related GEO APIs
AI Visibility Tracking API →
Read every entity of each answer, and the code that computes mention rate across tasks.
APIPrompt Tracking API →
Run the prompts each engine is compared on, labelled and on your own schedule.
APICitations API →
Compare the pages each engine cites for the same prompt.
Same topic: AI rank tracker