{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seedaudio-now/json-schema/seedaudio-now-audio-task-schema.json",
  "title": "AudioTask",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/seedaudio-now-openapi.json#/components/schemas/AudioTask",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "object",
    "model",
    "status",
    "billing",
    "output",
    "usage",
    "error"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "const": "audio.generation"
    },
    "model": {
      "const": "seed-audio-1.0"
    },
    "status": {
      "enum": [
        "queued",
        "processing",
        "succeeded",
        "failed"
      ]
    },
    "billing": {
      "type": "object",
      "required": [
        "reserved_credits",
        "charged_credits",
        "refunded_credits"
      ],
      "properties": {
        "reserved_credits": {
          "type": "integer",
          "const": 150
        },
        "charged_credits": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 150
        },
        "refunded_credits": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 150
        }
      }
    },
    "output": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Authenticated same-site content URL, not a public media URL."
        },
        "format": {
          "enum": [
            "mp3",
            "wav",
            "pcm",
            "ogg_opus"
          ]
        },
        "sample_rate": {
          "enum": [
            8000,
            16000,
            24000,
            32000,
            44100,
            48000
          ]
        },
        "duration": {
          "type": "number",
          "exclusiveMinimum": 0
        }
      }
    },
    "usage": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "audio_seconds": {
          "type": "number",
          "exclusiveMinimum": 0
        }
      }
    },
    "error": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      }
    }
  }
}