> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trygravity.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> How Gravity connects advertisers, AI apps, and their users.

Gravity is the ad network for AI. It matches ads to conversations, not keywords.

```mermaid theme={null}
flowchart LR
    A[Advertiser] -- campaign --> G[Gravity]
    P[Publisher app] -- ad request --> G
    G -- matched ad --> P
    P -- shows ad --> U[User]
```

| Role | What you do | Start here |
| - | - | - |
| Advertiser | Add billing, set up conversion tracking, and launch campaigns. You pay per 1,000 impressions (CPM), or per conversion (CPA) where your account allows it. | [Advertiser quickstart](https://docs.trygravity.com/advertisers/quickstart.md) |
| Publisher | Request an ad from your server alongside your model call, and show it next to the answer. You earn on a CPM basis. | [Publisher quickstart](https://docs.trygravity.com/ai-platforms/quickstart.md) |

## SDK or HTTP API

Publishers can integrate with an SDK or call the HTTP API directly.

| | SDK | HTTP API |
| - | - | - |
| Request ads | Yes | Yes |
| Draw ads | Ready-made components | Your own code |
| Impression tracking | Automatic | Load `impUrl` when you show the ad |
| Design experiments | Automatic | Ask Gravity about custom renderers |

SDKs: [JavaScript](https://docs.trygravity.com/sdks/javascript.md) (`@gravity-ai/api`, `@gravity-ai/react`), [React Native](https://docs.trygravity.com/sdks/react-native.md), [Python](https://docs.trygravity.com/sdks/python.md), [iOS](https://docs.trygravity.com/sdks/ios.md), and [Android](https://docs.trygravity.com/sdks/android.md). The API is `POST https://server.trygravity.com/api/v1/ad`; see the [API reference](https://docs.trygravity.com/engine/introduction.md).

## Where ads appear

Chat apps, coding assistants and IDEs, consumer AI apps, and AI search: any product where a person talks to a model. For the terms used in these docs, see [Core concepts](https://docs.trygravity.com/introduction/concepts.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.