Guide · Updated

    Ads in AI chat apps: how they work and how to do them well

    By The Gravity team

    Ads in AI chat apps are sponsored suggestions that appear with an answer when they fit the conversation. They can sit beside the response, or show up as a labeled link inside it. Each one is marked Sponsored.

    On this page

    If you run an AI chat app, here's how ads in the conversation work best, and how Gravity handles them.

    Key takeaways

    • Ads show up with the answer only when they fit what the user asked.
    • They shouldn't appear on every message. Show them when there's something useful to suggest.
    • Every ad is marked Sponsored, and none of them change the AI's answer.
    • Publishers are paid on a CPM or CPC basis, depending on the campaign. Payouts are made monthly through Stripe once earnings reach $100.
    • That revenue can help fund a free plan or a limited block of messages on a frontier model, and the dashboard shows whether it covers the model cost.
    • Done right, ads work for everyone involved: you, the advertiser, and your users.

    What ads in AI chat apps are

    These aren't banners wrapped around the product. They're suggestions matched to what someone just asked, shown with the answer. If nothing fits, nothing shows.

    That's the bar. Ads that pop up on every message, miss the point, or blend into the answer have earned their bad reputation. What matters is when they appear, how they're chosen, and whether you can tell them apart from the answer.

    Related:How to monetize an AI app

    Ad formats

    There are two main formats: sponsored cards and blocks next to the response, and inline sponsored links within it. You can also place ads above the response, in a sidebar, in search results, or in a page slot.

    Beside the answerA separate sponsored card under the reply. The answer stays as written.
    How should I plan my first half marathon?
    Build up over 10 to 12 weeks: three easy runs a week, one longer run that grows each weekend, and a lighter week before race day.
    SponsoredExample advertiser
    Training plan app
    Week-by-week half marathon plans. Free to start.
    Inside the answerA labeled link in the reply itself. The rest of the answer reads normally.
    What do I need for long runs?
    Comfortable shoes, water for anything over an hour, and something to carry it in, such as a running vestSponsored. Start slower than race pace.
    Illustrative examples with placeholder content.
    • Sponsored cards and blocks
      Where it appears
      Alongside the AI response, most often below it
      What to know
      The most common placement. Sits next to the answer and leaves it untouched.
    • Inline sponsored links
      Where it appears
      Inside the response text
      What to know
      Placed in the text without rewriting what the answer says.
    • Other placements
      Where it appears
      Above the response, sidebars, search results and page slots
      What to know
      Same rules as above for labeling and fit.

    Related:Placements and ad formats

    When ads show

    Gravity shows an ad only when a suggestion fits the conversation and meets the relevancy floor you set. Otherwise, the user just gets the answer. Fewer, better-matched ads are easier on users, and they perform well enough that advertisers pay more for them.

    When ads appear is also your call. Some publishers wait until a user has used a free allowance. Others show them on a free plan and keep a paid plan ad-free, or only on certain screens.

    Ad-supported frontier-model access

    Frontier models usually cost more per message than smaller ones, which makes them hard to give away. One option is an ad-supported block on your most capable model — for example, "Free messages on our most capable model, supported by ads."

    Use your own data to decide how many messages to offer. Gravity reports earnings, model cost and profitability (ad earnings divided by model cost) for each model and country, so you can see whether your most capable model pays for itself. It's optional.

    Why ads can improve the experience

    Gravity ads show selectively, only when a suggestion helps with what the person asked. That fit is why they convert, and why advertisers pay high CPMs for them. For the user, it's a useful next step, not an interruption.

    Good ads have to work for all three sides at once:

    • For users: a helpful next step that leaves the answer unchanged.
    • For AI platforms: high-value ads that can fund free plans, heavy usage, and frontier models, with you in control of what shows.
    • For advertisers: a place in the conversation at the moment someone is asking for help, which is why these placements earn a premium.

    Labeling and privacy

    Every format is marked Sponsored. The test is simple: a user should never have to guess which part is the ad.

    Gravity enforces a safety policy covering NSFW content, bots, hate speech, spam and profanity. You can also block categories and advertisers that don't fit your audience.

    Optional user tags, such as plan type, are never used for ad targeting and never shared with advertisers. For how other data is handled, see the Gravity privacy policy.

    How publishers get paid

    Publishers are paid on a CPM or CPC basis, depending on the campaign. There is no CPA revenue share for publishers.

    Clicks are tracked automatically with UTM parameters. AI platforms install the Gravity pixel for attribution and payouts, and advertisers running conversion-based (CPA) campaigns need it too.

    The dashboard shows impressions, fill rate, CTR and revenue, overall and by placement. It also compares earnings with model cost by tag (such as plan), model and country. Payouts are made monthly through Stripe once earnings reach $100; smaller balances roll over to the next month.

    Your eCPM depends on match quality (shaped by your relevancy floor), click-through rate, fill rate, the quality of the request data you send, and whether the pixel is installed.

    Related:Payouts and analytics

    How Gravity works

    Gravity is the ad network for AI. It serves sponsored suggestions in AI chat, AI search, coding assistants and IDEs, consumer AI apps and autonomous agents, and pays the platform that shows them. Gravity works with 50+ AI platforms used by tens of millions of users.

    Integrate

    Request an ad from your server and render it with a client component. Gravity fetches sponsored suggestions in parallel with your LLM call, so the AI response is not held back waiting for the ad. SDKs are available for JavaScript (@gravity-ai/api, @gravity-ai/react), React Native, Python, iOS and Android, plus an HTTP API. Works with all LLMs, agents and chatbots, including OpenAI, Anthropic, Google, DeepSeek and OpenRouter.

    Match

    Gravity matches ads to the conversation, not keywords. Anything below your relevancy floor stays hidden.

    Control

    Autopilot, unless you step in. Set a relevancy floor, block categories and advertisers, and choose where ads appear and how they look.

    Earn

    Campaigns pay on a CPM or CPC basis.

    Related:How Gravity works for AI platforms

    Best practices for ads in AI chat apps

    • Mark every ad Sponsored, and keep it easy to tell apart from the answer.
    • Start with one placement below the response, then test others.
    • Set a relevancy floor and let plenty of messages go ad-free. No ad is better than a bad one.
    • Block categories and advertisers that don't fit your audience.
    • Trying a free allowance or an ad-supported block on your top model? Compare earnings with model cost before you expand it.
    • Send plan tags and model usage so you can see profitability by segment.

    Start showing ads in your AI chat app

    Ads that show up only when they help can fund a better product and give your users a useful next step.

    FAQ

    What are ads in AI chat apps?

    They're sponsored suggestions matched to what the user is asking, shown as a card next to the AI's answer or as a link in the text. Each one is marked Sponsored.

    How do ads in AI chat apps work?

    Your server asks Gravity for a suggestion at the same time it calls the model. When there's a good match, you show it with the answer. When there isn't, the answer appears on its own.

    Do ads make the user experience worse?

    No. Gravity shows an ad only when it meets your relevancy floor, so users don't see ads that miss the point. When one does appear, it's marked Sponsored and offers a useful next step. Ads that fit are the ones people click, which is why advertisers pay well for them.

    Will an ad show on every message?

    No, and that's on purpose. Gravity shows an ad only when a suggestion fits and meets the relevancy floor you set. Some publishers also wait until after a free allowance, or only show ads on certain plans.

    How do publishers get paid for ads in AI chat apps?

    Publishers are paid on a CPM or CPC basis, depending on the campaign. There is no CPA revenue share for publishers. Payouts are made monthly through Stripe once earnings reach $100; smaller balances roll over to the next month.

    Do ads slow down AI responses?

    No. Gravity fetches sponsored suggestions in parallel with your LLM call, so the AI response is not held back waiting for the ad.

    Do ads change what the AI says?

    No. The model's answer stays as written. Cards sit next to it, inline links sit within the text without rewriting it, and every ad is marked Sponsored.

    Can ads pay for a free AI plan?

    Yes, if ad earnings meet or exceed the model cost, and you can check whether they do. Tag users by plan and send model usage. The dashboard then compares ad earnings with model cost per 1,000 messages. Model cost isn't your only cost, though: hosting and support still count.

    Can ads fund access to frontier AI models?

    Yes, for a limited block of messages, if the earnings support it. The dashboard breaks out earnings, model cost and profitability (ad earnings divided by model cost) by model and country, so you can size the block from your own numbers.

    How should ads in AI chat apps be labeled?

    With a visible Sponsored label on every format, whether it's a card beside the response or a link inside the text. The ad should never blend into the answer.

    Are optional user tags shared with advertisers?

    No. Gravity doesn't share optional tags such as plan type with advertisers or use them to target ads. See the Gravity privacy policy for details on other data.

    What kinds of AI products can show these ads?

    Any AI product that generates responses can use Gravity: chat apps, AI search, coding assistants and IDEs, consumer AI apps, and autonomous agents. It integrates at the response layer and works with custom LLM stacks, hosted APIs, and agent-based systems.