{
  "id": "video.generate",
  "object": "tool",
  "name": "Generate video",
  "summary": "Text or image to a short clip.",
  "description": "Generates a 5 or 10 second video from a text prompt, or animates a still image, with Kling on fal. Returns an MP4.",
  "category": "video",
  "hosted_by": "fal",
  "runtime": "partner",
  "side_effects": false,
  "status": "live",
  "credits": 20,
  "price": "$0.0200",
  "providers": [
    {
      "id": "fal",
      "name": "fal",
      "price": "$0.0200"
    }
  ],
  "mcp_name": "video_generate",
  "input_schema": {
    "type": "object",
    "properties": {
      "prompt": {
        "type": "string",
        "minLength": 1,
        "maxLength": 2500,
        "description": "What happens in the video"
      },
      "image": {
        "description": "A start frame to animate. Text to video if omitted.",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "description": "Public http(s) URL of the file"
              }
            },
            "required": [
              "url"
            ]
          },
          {
            "type": "object",
            "properties": {
              "file_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "An id returned by POST /v1/files"
              }
            },
            "required": [
              "file_id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "base64": {
                "type": "string",
                "description": "Base64-encoded file bytes (up to 10 MB)"
              },
              "name": {
                "type": "string",
                "description": "File name, e.g. invoice.pdf"
              },
              "content_type": {
                "type": "string"
              }
            },
            "required": [
              "base64",
              "name"
            ]
          },
          {
            "type": "object",
            "properties": {
              "connection": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "description": "A storage connection id or name (see storage.connections)"
              },
              "path": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024,
                "description": "Path of the file in that connection, e.g. reports/q3.pdf"
              }
            },
            "required": [
              "connection",
              "path"
            ]
          }
        ],
        "x-file": true
      },
      "duration": {
        "default": "5",
        "description": "Length in seconds",
        "type": "string",
        "enum": [
          "5",
          "10"
        ]
      },
      "aspect_ratio": {
        "default": "16:9",
        "description": "Frame shape for text to video. Image to video keeps the image's shape.",
        "type": "string",
        "enum": [
          "16:9",
          "9:16",
          "1:1"
        ]
      },
      "negative_prompt": {
        "description": "Things to avoid, e.g. blur, text, watermark",
        "type": "string",
        "maxLength": 2500
      }
    },
    "required": [
      "prompt"
    ]
  },
  "kind": "tool"
}