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

# Set product AI rate card

> Attach a credits-denominated AI rate card with complete fallback pricing as the credit product's default.



## OpenAPI

````yaml put /v1/ai/billing/products/{id}/rate-card
openapi: 3.1.0
info:
  title: Hyperline API
  version: 0.0.0
servers:
  - url: https://api.hyperline.co
  - url: https://sandbox.api.hyperline.co
security: []
paths:
  /v1/ai/billing/products/{id}/rate-card:
    put:
      tags:
        - AI > Billing
      summary: Set product AI rate card
      description: >-
        Attach a credits-denominated AI rate card with complete fallback pricing
        as the credit product's default.
      operationId: setProductAiRateCard
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                rate_card_id:
                  type: string
                  minLength: 1
                  description: >-
                    Rate card reference. On policy writes, omission preserves
                    the current reference and null detaches it; on plan
                    replacement omission clears it.
                  example: airc_example
              required:
                - rate_card_id
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  product_id:
                    type: string
                    description: Public product identifier for this credit balance.
                    example: prd_credits
                  rate_card_id:
                    type: string
                    description: >-
                      Rate card reference. On policy writes, omission preserves
                      the current reference and null detaches it; on plan
                      replacement omission clears it.
                    example: airc_example
                required:
                  - product_id
                  - rate_card_id
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '404':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '409':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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