{
  "openapi": "3.0.3",
  "info": {
    "title": "FatBaby Media Processing API",
    "version": "1.0.0",
    "description": "Async FFmpeg media ops and job polling. Auth: Bearer fb_live_… API key."
  },
  "servers": [
    {
      "url": "https://thefatbaby.com/api"
    }
  ],
  "paths": {
    "/v1/media/inspect": {
      "post": {
        "summary": "/v1/media/inspect",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/media/validate": {
      "post": {
        "summary": "/v1/media/validate",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/video/convert": {
      "post": {
        "summary": "/v1/video/convert",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/video/compress": {
      "post": {
        "summary": "/v1/video/compress",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/video/resize": {
      "post": {
        "summary": "/v1/video/resize",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/video/crop": {
      "post": {
        "summary": "/v1/video/crop",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/video/trim": {
      "post": {
        "summary": "/v1/video/trim",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/video/merge": {
      "post": {
        "summary": "/v1/video/merge",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/video/thumbnail": {
      "post": {
        "summary": "/v1/video/thumbnail",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/video/watermark": {
      "post": {
        "summary": "/v1/video/watermark",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/audio/extract": {
      "post": {
        "summary": "/v1/audio/extract",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/audio/normalize": {
      "post": {
        "summary": "/v1/audio/normalize",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/gif/from-video": {
      "post": {
        "summary": "/v1/gif/from-video",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/stream/hls": {
      "post": {
        "summary": "/v1/stream/hls",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/video/subtitles/burn": {
      "post": {
        "summary": "/v1/video/subtitles/burn",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Insufficient credits"
          }
        }
      }
    },
    "/v1/jobs/{jobId}": {
      "get": {
        "summary": "Get job status",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Job"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "fb_live_"
      }
    }
  }
}