{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pennycompute-com/json-schema/pennycompute-com-estimate-schema.json",
  "title": "Estimate",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pennycompute-com-openapi.json#/components/schemas/Estimate",
  "type": "object",
  "properties": {
    "service_id": {
      "type": "string"
    },
    "price_micros": {
      "type": "string",
      "pattern": "^[0-9]+$",
      "description": "Price in millionths of one US dollar. Remotion price_micros does not come from opening the bundle or reading the composition. It is based on frame_range when provided (the inclusive frame count divided by 30 fps), or a 20-second default when frame_range is absent. It is not the final charge: price_is_final is false, and the completed job is charged for its actual output."
    },
    "price_is_final": {
      "type": "boolean",
      "description": "true for H3: the price is final for the given options. false for FFmpeg, measurement and Remotion work, which is billed on completion for what the job made: the length of a video or a sound file, or one flat price for an image or a measurement."
    },
    "estimated_render_seconds": {
      "type": "integer",
      "minimum": 0,
      "description": "Typical render time once a renderer starts the job. Queue time is extra."
    },
    "free_slots": {
      "type": "integer",
      "minimum": 0,
      "description": "Jobs like this one that could start now."
    },
    "running_jobs": {
      "type": "integer",
      "minimum": 0
    },
    "queued_jobs": {
      "type": "integer",
      "minimum": 0
    },
    "estimated_start_seconds": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "items": {
        "type": "integer",
        "minimum": 0
      },
      "description": "Low and high estimate of the seconds from now until the job starts."
    },
    "estimated_complete_seconds": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "items": {
        "type": "integer",
        "minimum": 0
      },
      "description": "Low and high estimate of the seconds from now until the job completes."
    },
    "max_wait_seconds": {
      "type": "integer",
      "description": "The queue wait limit this estimate assumed."
    }
  },
  "required": [
    "service_id",
    "price_micros",
    "price_is_final",
    "estimated_render_seconds",
    "free_slots",
    "running_jobs",
    "queued_jobs",
    "estimated_start_seconds",
    "estimated_complete_seconds",
    "max_wait_seconds"
  ]
}