{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/musical-ai/json-schema/musical-ai-post-v1-billing-buy-request-schema.json",
  "title": "PostV1BillingBuyRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/musical-ai-openapi-generated.yml#/components/schemas/PostV1BillingBuyRequest",
  "type": "object",
  "properties": {
    "amount": {
      "type": "integer",
      "description": "Number of credits to purchase; must be a positive integer."
    },
    "type": {
      "type": "string",
      "description": "Credit type to purchase; supported values are `v0`, `gateway`, and `agent`."
    }
  },
  "required": [
    "amount",
    "type"
  ]
}