{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kreatorflow-ai/json-schema/kreatorflow-ai-job-schema.json",
  "title": "Job",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kreatorflow-ai-jobs-api-openapi.yml#/components/schemas/Job",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "string"
    },
    "mediaType": {
      "type": "string",
      "description": "image, video, or audio"
    },
    "modelId": {
      "type": "string",
      "description": "stable KreatorFlow model alias"
    },
    "status": {
      "type": "string",
      "description": "created, queued, processing, completed, failed, canceled, or blocked",
      "enum": [
        "created",
        "queued",
        "processing",
        "completed",
        "failed",
        "canceled",
        "blocked"
      ]
    },
    "provider": {
      "type": "string",
      "description": "KreatorFlow routing label or null; upstream routing names are not exposed"
    },
    "providerJobId": {
      "type": "string",
      "description": "always null in public API responses; poll by the KreatorFlow job id"
    },
    "providerOutputId": {
      "type": "string",
      "description": "always null in public API responses"
    },
    "providerOutputUrl": {
      "type": "string",
      "description": "KreatorFlow-authenticated output URL or null; fetch with your API key and store the output in your own storage"
    },
    "providerOutputExpiresAt": {
      "type": "string",
      "description": "output URL expiry timestamp or null"
    },
    "errorCode": {
      "type": "string",
      "description": "string or null"
    },
    "errorMessage": {
      "type": "string",
      "description": "string or null"
    },
    "resolution": {
      "type": "string",
      "description": "string optional; video jobs: the requested output resolution"
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "array optional; includes video_reference_fallback_omitted_clips when a fallback output omitted video clip references"
    }
  },
  "additionalProperties": true
}