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

# Setting Up Anthropic Pricing

> A detailed, step-by-step guide to creating the Anthropic pricing model in ParityDeals.

This guide provides detailed instructions for setting up Anthropic's complete pricing model within ParityDeals. You will learn how to create the product, define each usage-based feature, configure the pay-as-you-go plan, and implement special conditions like discounts and free allowances.

## Part 1: Create the Anthropic Product

First, create a single product to house all of Anthropic's pricing plans and features.

1. From the side navigation menu, click **Product Catalog**, then select **Products**.
2. Click the **+ Create product** button in the top-right corner.
3. In the "Create product" modal, fill in the following fields:
   * **Product name**: `Anthropic Models and Tools`
   * **Identifier**: `product-anthropic-models-and-tools`
   * **Subscription type**: Select **Single active subscription**.
4. Click the **Create** button to save the new product.

***

## Part 2: Define Usage-Based Features

Define every billable metric as an independent feature to track consumption accurately. We will use the `Meter (Raw)` type, which allows your application to send usage events for ParityDeals to aggregate.

<Tabs>
  <Tab title="Claude Opus 4">
    ### Claude Opus 4 Features

    1. In the side navigation menu, click **Product Catalog**, then select **Feature entitlements**.
    2. Click **+ Create feature**.
    3. Enter the details for **Claude Opus 4 - Input**:
       * **Feature name**: `Claude Opus 4 - Input`
       * **Feature type**: Select `Meter`.
       * Under "Meter source," choose **Raw (Your app sends events; we calculate total usage)**.
       * **Feature unit**: Enter `Token` for the singular form and `Tokens` for the plural form.
    4. Click **Create**.
    5. Click **+ Create feature** again for **Claude Opus 4 - Output**:
       * **Feature name**: `Claude Opus 4 - Output`
       * **Feature type**: `Meter` > `Raw`
       * **Feature unit**: `Token` / `Tokens`
    6. Click **Create**.
    7. Click **+ Create feature** for **Claude Opus 4 - Prompt caching write**:
       * **Feature name**: `Prompt caching write - Opus`
       * **Feature type**: `Meter` > `Raw`
       * **Feature unit**: `Token` / `Tokens`
    8. Click **Create**.
    9. Click **+ Create feature** for **Claude Opus 4 - Prompt caching read**:
       * **Feature name**: `Prompt caching read - Opus`
       * **Feature type**: `Meter` > `Raw`
       * **Feature unit**: `Token` / `Tokens`
    10. Click **Create**.
  </Tab>

  <Tab title="Claude Sonnet 4">
    ### Claude Sonnet 4 Features

    1. On the "Feature entitlements" page, click **+ Create feature**.
    2. Enter the details for **Claude Sonnet 4 - Input**:
       * **Feature name**: `Claude Sonnet 4 - Input`
       * **Feature type**: `Meter` > `Raw`
       * **Feature unit**: `Token` / `Tokens`
    3. Click **Create**.
    4. Click **+ Create feature** for **Claude Sonnet 4 - Output**:
       * **Feature name**: `Claude Sonnet 4 - Output`
       * **Feature type**: `Meter` > `Raw`
       * **Feature unit**: `Token` / `Tokens`
    5. Click **Create**.
    6. Click **+ Create feature** for **Claude Sonnet 4 - Prompt caching write**:
       * **Feature name**: `Prompt caching write - Sonnet`
       * **Feature type**: `Meter` > `Raw`
       * **Feature unit**: `Token` / `Tokens`
    7. Click **Create**.
    8. Click **+ Create feature** for **Claude Sonnet 4 - Prompt caching read**:
       * **Feature name**: `Prompt caching read - Sonnet`
       * **Feature type**: `Meter` > `Raw`
       * **Feature unit**: `Token` / `Tokens`
    9. Click **Create**.
  </Tab>

  <Tab title="Claude Haiku 3.5">
    ### Claude Haiku 3.5 Features

    1. On the "Feature entitlements" page, click **+ Create feature**.
    2. Enter the details for **Claude Haiku 3.5 - Input**:
       * **Feature name**: `Claude Haiku 3.5 - Input`
       * **Feature type**: `Meter` > `Raw`
       * **Feature unit**: `Token` / `Tokens`
    3. Click **Create**.
    4. Click **+ Create feature** for **Claude Haiku 3.5 - Output**:
       * **Feature name**: `Claude Haiku 3.5 - Output`
       * **Feature type**: `Meter` > `Raw`
       * **Feature unit**: `Token` / `Tokens`
    5. Click **Create**.
    6. Click **+ Create feature** for **Claude Haiku 3.5 - Prompt caching write**:
       * **Feature name**: `Prompt caching write - Haiku`
       * **Feature type**: `Meter` > `Raw`
       * **Feature unit**: `Token` / `Tokens`
    7. Click **Create**.
    8. Click **+ Create feature** for **Claude Haiku 3.5 - Prompt caching read**:
       * **Feature name**: `Prompt caching read - Haiku`
       * **Feature type**: `Meter` > `Raw`
       * **Feature unit**: `Token` / `Tokens`
    9. Click **Create**.
  </Tab>

  <Tab title="Tools">
    ### Tools Features

    1. On the "Feature entitlements" page, click **+ Create feature** for **Web search**:
       * **Feature name**: `Web search`
       * **Feature type**: `Meter` > `Raw`
       * **Feature unit**: `Search` / `Searches`
    2. Click **Create**.
    3. Click **+ Create feature** again for **Code execution**:
       * **Feature name**: `Code execution`
       * **Feature type**: `Meter` > `Raw`
       * **Feature unit**: `Hour` / `Hours`
    4. Click **Create**.
  </Tab>
</Tabs>

***

## Part 3: Create the Pay-as-you-go Plan

Anthropic uses a pure pay-as-you-go model. Create a single plan to contain all the usage-based pricing.

1. Navigate back to your **Anthropic Models and Tools** product page.
2. In the "Plans" section, click **+ Create plan**.
3. Fill in the plan details:
   * **Plan name**: `Pay-as-you-go`
   * **Identifier**: `plan-anthropic-payg`
   * **Description**: "Access to all Anthropic models and tools. You are billed for what you use at the end of each monthly cycle."
   * Ensure the checkbox for **Show this plan to customers in pricing table** is selected.
4. Click **Create**.

***

## Part 4: Configure Per-Unit Pricing

Now, attach the specific prices to each feature within the plan.

1. On the `Pay-as-you-go` plan page, click **+ Set price**.
2. Select the **Paid** plan type and click **Continue**.
3. Select **Monthly** for the billing cycle to ensure invoices are sent monthly, then click **Continue**.

<Info>
  **Important Note on Pricing Conversion**
  You must convert Anthropic's pricing (e.g., per 1 million tokens) to a price per single unit (`Token`, `Search`, `Hour`) to configure the `Per-unit` pricing model in ParityDeals.
</Info>

4. Under the "Charges" section, click **Add usage-based charges**.
5. In the "Choose a billable feature to track usage" dropdown, select **Claude Opus 4 - Input**.
6. For "Pricing model," select **Per-unit**.
7. In the price field, enter the calculated per-unit price:
   * **Calculation**: The price for Opus Input is $15 / MTok. The per-unit price is `$15 / 1,000,000 = \$0.000015\`.
   * Enter `0.000015` in the price field.
8. Click **Add**.
9. Click **Add usage-based charges** again.
10. In the dropdown, select **Claude Opus 4 - Output**.
11. For "Pricing model," select **Per-unit**.
12. Enter the per-unit price:
    * **Calculation**: The price for Opus Output is $75 / MTok. The per-unit price is `$75 / 1,000,000 = \$0.000075\`.
    * Enter `0.000075` in the price field.
13. Click **Add**.
14. Continue this process, adding a separate usage-based charge for every feature. Use the table below for the correct per-unit prices.

| Billable Feature                | Original Price (from source) | Per-Unit Price to Enter |
| :------------------------------ | :--------------------------- | :---------------------- |
| `Claude Sonnet 4 - Input`       | \$3 / MTok                   | `$0.000003`             |
| `Claude Sonnet 4 - Output`      | \$15 / MTok                  | `$0.000015`             |
| `Claude Haiku 3.5 - Input`      | \$0.80 / MTok                | `$0.0000008`            |
| `Claude Haiku 3.5 - Output`     | \$4 / MTok                   | `$0.000004`             |
| `Prompt caching write - Opus`   | \$18.75 / MTok               | `$0.00001875`           |
| `Prompt caching read - Opus`    | \$1.50 / MTok                | `$0.0000015`            |
| `Prompt caching write - Sonnet` | \$3.75 / MTok                | `$0.00000375`           |
| `Prompt caching read - Sonnet`  | \$0.30 / MTok                | `$0.0000003`            |
| `Prompt caching write - Haiku`  | \$1 / MTok                   | `$0.000001`             |
| `Prompt caching read - Haiku`   | \$0.08 / MTok                | `$0.00000008`           |
| `Web search`                    | \$10 / 1K searches           | `$0.01`                 |
| `Code execution`                | \$0.05 per hour              | `$0.05`                 |

15. Once all charges are added, click **Save** and then **Publish plan**.

***

## Part 5: Configure Anthropic's Special Conditions

<AccordionGroup>
  <Accordion title="How to Implement the 50% Batch Processing Discount">
    Use a **Targeting Rule** to apply the "50% discount with batch processing".

    1. Navigate to **Monetization > Targeting rules** and click **+ Create rule**.
    2. Set the **Rule name** to `50% Batch Processing Discount`.
    3. For **Select product**, choose `Anthropic Models and Tools`.
    4. Under **Conditions**, define a rule that checks for a specific parameter in your API calls indicating batch processing. This requires you to send this metadata to ParityDeals.
       * **If the customer matches...**: `metadata_property` > `is` > `batch_true`
    5. Under the pricing adjustment, select **Decrease price by** and enter `50`%.
    6. Click **Create rule**.
    7. To activate this rule, go to **Monetization > Offerings**, create a new offering, and link it to this **Targeting Rule**.
  </Accordion>

  <Accordion title="How to Configure Free Hours for Code Execution">
    The "50 free hours of usage daily per organization" should be handled with a **Customizable** feature.

    1. Go to **Product Catalog > Feature entitlements** and click **+ Create feature**.
    2. Fill in the details:
       * **Feature name**: `Code execution - Free Daily Allowance`
       * **Feature type**: Select `Customizable`.
       * **Description**: "Includes 50 free hours of code execution daily."
    3. Click **Create**.
    4. Navigate to your `Pay-as-you-go` plan and enter the **Feature entitlements** section.
    5. Click **+ Add**, select the `Code execution - Free Daily Allowance` feature, and set its usage limit to `50`. Your application will need to check against this entitlement before sending billable events to the paid `Code execution` feature.
  </Accordion>
</AccordionGroup>
