---
title: Partner Program
description: Earn a revenue share commission for traffic you originate to Agnic
---

The Agnic Partner Program lets developers and businesses integrate Agnic into their own products and earn a revenue share commission on the traffic they originate.

---

## How it works

1. **End user signs up to your app** and authenticates with Agnic via OAuth 2.0
2. **Your app makes API calls** to Agnic with the `X-Partner-Id` header
3. **Agnic delivers the service** to the user and bills them from their Credit balance at Agnic's published price for your Partner tier
4. **Agnic accrues a commission** for you on each call, equal to the difference between your tier price and Agnic's base price
5. **Agnic pays you monthly in arrears**, out of Agnic's own funds, subject to a $10 minimum payout

You never collect funds from end users. You never hold user money. You are an independent contractor of Agnic earning a revenue share commission.

---

## Getting started

### 1. Apply to the Partner Program

Apply via [app.agnic.ai/oauth-clients](https://app.agnic.ai/oauth-clients). You will need to:

- Confirm your business details
- Agree to **Schedule B of the Agnic Terms** (Partner Program agreement)
- Provide any tax and compliance documentation Agnic requests for your jurisdiction

Agnic reviews each application. Once approved, you receive a **Partner ID** and an assigned pricing tier.

### 2. Add the X-Partner-Id header to your API calls

Add a single header to your existing Agnic API calls. Your existing OpenAI-compatible code keeps working — just add one header.

#### Python

```python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.agnic.ai/v1",
    api_key="agnic_tok_USER_OAUTH_TOKEN",
    default_headers={
        "X-Partner-Id": "partner_xxx",  # Your assigned Partner ID
    }
)

completion = client.chat.completions.create(
    model="openai/gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(completion.choices[0].message.content)
```

#### TypeScript / JavaScript

```typescript
import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://api.agnic.ai/v1',
  apiKey: 'agnic_tok_USER_OAUTH_TOKEN',
  defaultHeaders: {
    'X-Partner-Id': 'partner_xxx', // Your assigned Partner ID
  },
});

const completion = await client.chat.completions.create({
  model: 'openai/gpt-4o',
  messages: [{ role: 'user', content: 'Hello!' }],
});

console.log(completion.choices[0].message.content);
```

#### cURL

```bash
curl https://api.agnic.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer agnic_tok_USER_OAUTH_TOKEN" \
  -H "X-Partner-Id: partner_xxx" \
  -d '{
    "model": "openai/gpt-4o",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
```

That's it. Agnic looks up your Partner record from the `X-Partner-Id`, applies your assigned pricing tier, debits the user's Credit balance, and accrues your commission.

### 3. Track your accruals

View accrued commission and payment history in real time at [app.agnic.ai/earnings](https://app.agnic.ai/earnings).

---

## Pricing tiers

Agnic publishes pricing tiers for traffic originated through Partner integrations. Each Partner is assigned **one** pricing tier at onboarding:

| Tier | Markup over base | Your commission |
|------|-----------------|-----------------|
| **0** | 0% | None (free integration) |
| **1** | 5% | 5% of base price |
| **2** ⭐ | **10%** | **10% of base price** *(default for new partners)* |
| **3** | 15% | 15% of base price |
| **4** | 20% | 20% of base price |

**New Partners are assigned Tier 2 (10% commission) by default at onboarding.** Higher tiers are available for Partners with significant traffic, formal commercial agreements, or strategic relationships, at Agnic's discretion.

**The tier is fixed at the Partner record level and is not configurable per request.** Your tier is set by Agnic in agreement with you at onboarding and stored on your Partner record. You do not pass the tier in the request — only the `X-Partner-Id` header for attribution.

### How the markup works

The tier is added **above** Agnic's published base price, so:

- The end user pays Agnic's published price for your tier (base + markup)
- Agnic's own margin is unaffected
- Your commission is the markup itself, paid by Agnic out of the revenue it collects on partner-attributed traffic

In other words, your commission is funded by the uplift on partner-attributed calls, not by a share of Agnic's existing margin. This is the standard affiliate model.

---

## Commission payouts

| | Detail |
|---|---|
| **Frequency** | Monthly, in arrears |
| **Schedule** | Within 30 days of the end of each calendar month |
| **Minimum payout** | $10 (amounts below the threshold roll over to the next month) |
| **Source of funds** | Agnic's own corporate accounts payable — not collected from end users on your behalf |
| **Tax withholding** | None, except where required by law. US Partners earning more than $600 per calendar year receive a Form 1099-NEC. |

**Commissions are paid by Agnic out of Agnic's own funds.** Payouts are not collected from end users on your behalf. This is a contractor payment, not a payment service.

---

## OAuth integration

Your end users authenticate **directly with Agnic** via OAuth 2.0. This is the load-bearing piece of the Partner Program — it's what makes Agnic the merchant of record for the user, and what makes your role a contractor commission rather than a payment collection.

See [Authentication → OAuth 2.0](/docs/authentication/oauth2) for the integration details. The OAuth consent screen makes it clear to the user that:

- They are creating an account with Agnic
- They are authorising your app to call Agnic on their behalf
- Their contract for the Service is with Agnic, not with you
- They will be billed by Agnic from their Credit balance

---

## Legal model

The Partner Program is structured as a **revenue share / affiliate** relationship, **not** a payment processing or marketplace relationship:

- **Agnic is the principal seller** of the Service to end users
- **End users have a direct contract with Agnic** (via OAuth consent + Terms acceptance)
- **You do not collect payments from end users** — Agnic does
- **Agnic pays your commission from Agnic's own funds**, monthly in arrears, as ordinary accounts payable
- **You are an independent contractor**, not a payment collection agent, not an employee, not a payee of users

This structure matches how Apple App Store, Amazon Associates, AWS Partner Network, and similar platforms work. It is intentionally not a marketplace or payment-processing model. See **Schedule B of the Terms** for the full agreement.

---

## Next steps

<Cards>
  <Card title="Apply to the Partner Program" href="https://app.agnic.ai/oauth-clients">
    Get your Partner ID and assigned pricing tier
  </Card>
  <Card title="OAuth 2.0 integration" href="/docs/authentication/oauth2">
    Set up the user authentication flow
  </Card>
  <Card title="Partner-Branded Checkout" href="/docs/partner-program/checkout">
    Let users top up their credit balance without leaving your brand
  </Card>
  <Card title="Available models" href="/docs/ai-gateway/models">
    Browse the 340+ models you can offer through your integration
  </Card>
  <Card title="Schedule B of the Terms" href="https://app.agnic.ai/terms">
    Read the full Partner Program agreement
  </Card>
</Cards>
