{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audiopod-ai/json-schema/audiopod-ai-cost-estimate-request-schema.json",
  "title": "CostEstimateRequest",
  "description": "Request for cost estimate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audiopod-ai-api-wallet-api-openapi.yml#/components/schemas/CostEstimateRequest",
  "properties": {
    "service_type": {
      "type": "string",
      "title": "Service Type",
      "description": "Service type (e.g., 'stem_extraction')"
    },
    "duration_seconds": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Duration Seconds",
      "description": "Audio duration in seconds. Required for per-minute services. For services priced per 1,000 characters it gives an approximate quote when text_length is not sent."
    },
    "text_length": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Text Length",
      "description": "Billable character count. Required for services priced per 1,000 characters (text-to-speech, voice cloning, audiobook narration); the duration is then context only. Bracketed speaking-style directions and pause tags are not counted.",
      "default": 0
    }
  },
  "type": "object",
  "required": [
    "service_type"
  ]
}