LLMVisibility.wikiThe sourced reference on how AI assistants learn about, find and cite brands

API answers vs. app answers

From LLMVisibility.wiki

The same model family can be reached two ways: through a consumer assistant such as the ChatGPT app or claude.ai, and through a developer API that sends prompts directly to a model.[5][1] The two surfaces differ in what instructions are attached before the user's text, whether web search runs, and whether location or saved memories shape the response.[1][4][2] Those differences matter for anyone comparing brand mentions collected through an API with what a person sees in an app.[6]

Key facts. Anthropic states that claude.ai and its mobile apps run a system prompt that the Claude API does not receive, and OpenAI documents that ChatGPT may search the web automatically while API web search must be added as a tool.[1][4][2]

Overview

OpenAI describes its API as a way to "use a large language model to generate text from a prompt, as you might using ChatGPT".[5] The phrasing is useful because it points at both the similarity and the gap: the underlying model is reached in both cases, but the consumer product adds layers that an API call does not have by default.[5][1]

Anthropic documents one of those layers explicitly. Claude's web interface at claude.ai and its mobile apps "use a system prompt to provide up-to-date information, such as the current date, to Claude at the start of every conversation", and that prompt is periodically updated.[1] Anthropic also states that these system prompt updates "do not apply to the Claude API".[1]

A second layer is tooling. Web search in the OpenAI, Anthropic and Gemini APIs is something a developer switches on by including a tool in the request, while a consumer app can decide to search on its own.[2][3][7][4] Because search determines whether an answer is drawn from parametric knowledge or retrieved context, this single difference can change which brands and URLs appear.[3][7]

System prompts in consumer apps

Anthropic publishes the system prompts used by its consumer surfaces as release notes, with dated entries for individual models such as Claude Opus 5.5 and Claude Sonnet 4.5.[1] Beyond supplying the current date, the prompt "encourages certain behaviors, such as always providing code snippets in Markdown".[1]

In an API request the developer writes whatever system instructions exist. Anthropic notes that search triggering "is steerable through your system prompt": a developer can encourage Claude to search more readily or to prefer answering directly.[3] That means two API callers using the same model can obtain systematically different behavior, and neither necessarily matches how Claude answers in its own app.[1][3]

Equivalent system prompts for other consumer assistants are not reproduced in the documentation cited here, so claims about their exact contents should be treated as undocumented rather than confirmed.[1]

Sampling settings

OpenAI's text generation guide states that "the content generated from a model is non-deterministic", and frames prompt engineering as the practice of writing instructions so a model "consistently generates content that meets your requirements".[5] Repeated identical requests can therefore produce different wording, different ordering, and different lists of named brands, which is the central issue described on why LLM answers vary.[5][6]

The specific sampling parameters used inside consumer assistants are not disclosed in the documentation cited here. Comparisons between an API run and an app run should therefore be treated as comparisons between two configurations, only one of which is fully observable.[5][1]

Independent industry research gives a sense of scale. SparkToro, working with Gumshoe.ai, reported that 600 volunteers ran 12 prompts through ChatGPT, Claude and Google's AI Overviews or AI Mode a combined 2,961 times, and found that nearly every response was unique in the list presented, the order of recommendations, and the number of items.[6] The authors calculated that there is a "<1 in 100 chance that ChatGPT or Google's AI, if asked 100X, will give you the same list of brands in any two responses", with Claude only slightly more likely to repeat a list.[6] This is industry research published by a vendor-adjacent team rather than peer-reviewed work, and the post discloses that one author works at an AI tracking startup.[6] </p>

Web search: on by default or opt-in

In the OpenAI Responses API, web search is enabled "by configuring it in the tools array in an API request", and, "like any other tool, the model can choose to search the web or not based on the content of the input prompt".[2] Anthropic's Messages API works the same way: a web_search tool is added to the request's tools, with settings such as max_uses, domain lists and user_location attached to that tool.[3] Anthropic contrasts this with its Managed Agents product, where web search is "On by default in the agent toolset".[3]

Google's Gemini API follows a similar pattern: when the google_search tool is enabled, the model analyzes the prompt, decides whether a search would improve the answer, generates and runs queries, and returns a response with inline annotations containing citations.[7] More detail on these mechanisms appears on grounding and web search tools and in the broader pattern of retrieval-augmented generation.[7][8]

Consumer behavior differs. OpenAI's help documentation states that ChatGPT "may search the web automatically when your question would benefit from current information", and that users can also start a search manually from the tools menu or regenerate a response with web results.[4] Web search in ChatGPT is available across free and paid plans and to people who are not signed in, subject to plan usage limits.[4] Anthropic describes when search is likely to fire in the API: for recent events, current prices or statistics, information about organizations, people or products that might have changed, or explicit requests to look something up, while stable knowledge is answered directly.[3] Because search extends answers "beyond its knowledge cutoff", an unsearched API call may reflect older information than an app answer about the same brand, as described on knowledge cutoffs.[3][7]

Location and memory in apps

OpenAI documents that ChatGPT "may use an approximate location based on your IP address to provide relevant local results", while device location sharing is optional and off by default.[4] When ChatGPT search works with third-party search providers, it typically rewrites the user's query into one or more targeted queries, and may share general location with those providers; the help article gives the example of a question about restaurants being rewritten to "top restaurants San Francisco" for a user in that area.[4] OpenAI states that the IP address itself and ChatGPT account information are not shared with those providers to run the search.[4]

Memory adds a second personalization layer. OpenAI states that if memory is enabled, ChatGPT "may use relevant saved memories when rewriting a search query", giving the example of a vegan user in San Francisco receiving a search for vegan restaurants there.[4] Memory can draw on past chats, saved memories, custom instructions, saved files and content from connected apps, depending on plan and region, and ChatGPT decides which available information is relevant to a response.[9] Availability varies by plan, region, platform and workspace settings.[9] These effects are covered further on memory, location and personalization.[9]

In the API, equivalent context is explicit rather than inferred: Anthropic exposes user_location as a setting on the web search tool, so any geographic steering is something the developer chooses and can record.[3] Apps also surface provenance differently: ChatGPT responses that use web search may include citations that open the underlying source, and a Sources control may list cited sources and other relevant links, as described on how ChatGPT finds and cites sources.[4]

Implications for measurement

An API-based tracking run and a human using an app are not measuring the same system. The API run lacks the consumer system prompt that Anthropic documents, may have no web search unless a tool was added, and carries no saved memories or IP-derived location.[1][2][4][9] Each of those layers can change which sources are retrieved and therefore which brands are named.[4][7]

Repetition is also necessary. Given non-deterministic generation and the variability measured across thousands of runs, a single API response is a weak estimate of what an assistant typically says about a brand.[5][6] Practices for sampling repeatedly and recording configuration are discussed on measuring LLM visibility.[6]

A reasonable documentation standard for any measurement is to record the surface used, the model identifier, whether a search tool was enabled, any system prompt supplied, and whether location or memory could have applied.[1][2][4] API runs offer reproducibility and explicit controls such as search caps and domain lists.[3] App runs reflect what users actually encounter, including automatic search and personalization, but are harder to hold constant.[4][9] Comparable reasoning applies when evaluating how Gemini finds and cites sources through its grounding tool versus its consumer products.[7]

Common questions

Why does the API answer differently from the ChatGPT app?

The app and the API send different inputs to the model even when the model is the same. Consumer surfaces can attach a system prompt, as Anthropic documents for claude.ai and its mobile apps, and that prompt does not apply to the API.[1] ChatGPT may also search the web automatically and may use approximate location or saved memories, none of which happen in a plain API call.[4][9] On top of that, model output is non-deterministic, so even two identical calls can differ.[5]

Do consumer apps use a system prompt?

Anthropic states that Claude's web interface and mobile apps use a system prompt at the start of every conversation, which supplies information such as the current date and encourages behaviors like providing code snippets in Markdown.[1] Anthropic publishes these prompts as dated release notes for individual models and updates them periodically.[1] The full contents of system prompts used by other consumer assistants are not reproduced in the documentation cited here.[1]

Does the API search the web automatically?

Not unless a search tool is included in the request. OpenAI's Responses API requires web search to be configured in the tools array, after which the model can choose whether to search based on the prompt.[2] Anthropic's Messages API works the same way, with the tool and settings such as max_uses and domain lists added to the request, while its Managed Agents product has search on by default.[3] In the Gemini API, enabling the google_search tool lets the model run searches and return citations as annotations.[7]

Should visibility tracking use the API or the app?

Each answers a different question. API runs are easier to hold constant because the system prompt, search tool and settings such as user_location are chosen explicitly by the caller.[3][2] App runs reflect what a person actually sees, including automatic search, approximate location from IP and memory-influenced query rewriting.[4][9] Either way, repeated sampling is needed, since research found that ChatGPT and Google's AI were very unlikely to return the same brand list twice across a hundred runs.[6]

Does turning on web search guarantee that sources are cited?

Search tools are generally designed to return citations, but citations should still be verified. Anthropic's web search tool returns responses with citations for sources drawn from search results, and the Gemini API returns inline annotations containing citations.[3][7] OpenAI nevertheless warns that search results and citations "can be incomplete, outdated, or incorrect" and advises opening a cited source to check that it supports the answer.[4]

See also

References

  1. ^ a b c d e f g h i j k l m n o p q r "System prompts (release notes)". Anthropic. Retrieved November 2026.
  2. ^ a b c d e f g h i "Web search (API guide)". OpenAI. Retrieved November 2026.
  3. ^ a b c d e f g h i j k l m n "Web search tool". Anthropic (Claude Platform Docs). Retrieved November 2026.
  4. ^ a b c d e f g h i j k l m n o p q r s t "Searching the web with ChatGPT". OpenAI Help Center. Retrieved November 2026.
  5. ^ a b c d e f g h i "Text generation (API guide)". OpenAI. Retrieved November 2026.
  6. ^ a b c d e f g h i "NEW Research: AIs are highly inconsistent when recommending brands or products". SparkToro. Retrieved November 2026.
  7. ^ a b c d e f g h i "Grounding with Google Search". Google AI for Developers. Retrieved November 2026.
  8. ^ "Glossary". Anthropic documentation. Retrieved November 2026.
  9. ^ a b c d e f g "Memory in ChatGPT". OpenAI Help Center. Retrieved November 2026.