{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/venice-ai/json-schema/venice-ai-quote-audio-request-schema.json",
  "title": "QuoteAudioRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/venice-ai-audio-api-openapi.yml#/components/schemas/QuoteAudioRequest",
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "description": "The model to get a price quote for. Voice-changer models are not supported here; use `/api/v1/audio/voice-changer/quote` instead."
    },
    "duration_seconds": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        {
          "type": "string",
          "pattern": "^\\d+$"
        }
      ],
      "description": "Optional duration hint in seconds. Only supported for models that expose duration metadata via `/models`. Accepts either an integer or a numeric string. If omitted, the model default duration is used when available."
    },
    "character_count": {
      "type": "integer",
      "description": "Optional character count for character-based pricing models. Required when the selected model uses `pricing.per_thousand_characters` in `/models`.",
      "exclusiveMinimum": 0
    }
  },
  "required": [
    "model"
  ],
  "additionalProperties": false
}