{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/made-app/json-schema/made-app-cost-schema.json",
  "title": "Cost",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/made-app-openapi.json#/components/schemas/Cost",
  "type": "object",
  "required": [
    "customerCostCents",
    "credits"
  ],
  "properties": {
    "credits": {
      "type": "number",
      "description": "The price in credits."
    },
    "customerCostCents": {
      "type": "number",
      "description": "Starting price in cents (10 cents = 1 credit), on the provider Made picked. Pass it as max_cost_cents so a higher price is refused."
    },
    "pricingPolicy": {
      "type": "string",
      "enum": [
        "provider_used"
      ],
      "description": "If the quoted provider fails, the job is charged the price of the backup provider that runs it, which can be above max_cost_cents (unless the request sent X-MADE-Backup-Pricing: cap). Available credits still apply."
    },
    "priceNotice": {
      "type": "string",
      "description": "Explain the starting estimate and backup pricing before generation."
    },
    "free": {
      "type": "string",
      "enum": [
        "image",
        "video"
      ],
      "description": "Set when one of the account's free starts covers this job; the price is then 0."
    },
    "listCostCents": {
      "type": "number",
      "description": "On a free start: the price it saves, in cents."
    },
    "upscaleCostCents": {
      "type": "number",
      "description": "On an edit with upscale_factor: the upscale's share of the price, charged when it starts."
    }
  }
}