{
  "openapi": "3.1.0",
  "info": {
    "title": "Runware API - Ray3.2",
    "summary": "Cinematic video model for generation, transformation, motion transfer, and frame-level direction",
    "description": "Ray3.2 is Luma's flagship video model for turning creative direction into controllable production workflows. It supports text-to-video, image-to-video, and video-to-video generation, with stronger continuity, motion transfer, camera motion transfer, character transformation, relighting, environment change, and product-swap workflows. It is built for cinematic-quality output, multi-keyframe control inside a single clip, and Modify Video V2 workflows that preserve performance, lighting, and scene structure while transforming existing footage.",
    "version": "1.0.0",
    "x-model-id": "luma-ray3-2",
    "x-air-id": "luma:ray@3.2",
    "x-status": "live",
    "x-creator": {
      "id": "luma",
      "name": "Luma",
      "logo": "https://assets.runware.ai/0dc5e0fa-df18-4222-a815-b27d476b9391.png"
    },
    "x-capabilities": [
      "text-to-video",
      "image-to-video",
      "video-to-video",
      "edit",
      "checkpoint"
    ],
    "x-cover-image": "https://assets.runware.ai/covers/luma-ray3-2.jpg",
    "x-pricing": {
      "overview": "Video generation and Video Edit have different pricing.\nVideo generation:\nPricing is highly affected by resolution starting at $0.06 for 5s at 360p. Duration available are 5s and 10s. \nHDR and HDR + EXR are only for 5s and increase costs ($0.60/$0.90 at 720p and $2.40/$3.60 at 1080p).\nExtend is standard dynamic range only. It always bills as one 5-second block, even if video.duration is present on the request. it costs $0.15 at 540p, $0.30 at 720p and $1.20 at 1080p.\nReframe is standard dynamic range only and bills per second. $0.03/s at 320p, $0.06/s at 540p, $0.12/s at 720p, and $0.36/s at 1080p.\n\nVideo Edit:\nVideo edits use their own rate table. HDR, and HDR + EXR edits increase costs. Each have separate 5-second and 10-second totals. HDR: from $1.08 (360p) to $4.32 (1080p) for 5s. HDR+EXR: from $1.62 (360p) to $6.48 (1080p) for 5s\n",
      "examples": [
        {
          "price": "$0.06",
          "configuration": "Text/image to video . 360p . 5s"
        },
        {
          "configuration": "Text/image to video . 540p . 5s",
          "price": "$0.15"
        },
        {
          "configuration": "Text/image to video . 720p . 5s",
          "price": "$0.30"
        },
        {
          "configuration": "Text/image to video . 1080p . 5s",
          "price": "$1.20"
        },
        {
          "configuration": "HDR . 720p . 5s",
          "price": "$0.60"
        },
        {
          "configuration": "HDR . 1080p . 5s",
          "price": "$2.40"
        },
        {
          "configuration": "HDR+EXR . 720p . 5s",
          "price": "$0.90"
        },
        {
          "configuration": "HDR+EXR . 1080p . 5s",
          "price": "$3.60"
        },
        {
          "configuration": "Video edit . 360p . 5s",
          "price": "$0.54"
        },
        {
          "configuration": "Video edit . 540p . 5s",
          "price": "$0.72"
        },
        {
          "configuration": "Video edit . 720p . 5s",
          "price": "$1.08"
        },
        {
          "configuration": "Video edit . 1080p . 5s",
          "price": "$2.16"
        }
      ]
    }
  },
  "servers": [
    {
      "url": "https://api.runware.ai/v1",
      "description": "Runware REST API"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Runware API Key (e.g., Bearer <your-key>)"
      }
    },
    "schemas": {
      "AuthenticationTask": {
        "title": "Authentication",
        "description": "Authenticates a connection using an API key. Can be sent as the first element of the request array as an alternative to using the Authorization header.",
        "type": "object",
        "x-response-schema": "https://schemas.runware.ai/responses/utilities/authentication.json",
        "properties": {
          "taskType": {
            "$id": "https://schemas.runware.ai/requests/parameters/api/task-type.json",
            "title": "Task Type",
            "description": "Identifier for the type of task being performed",
            "type": "string",
            "const": "authentication"
          },
          "apiKey": {
            "$id": "https://schemas.runware.ai/requests/parameters/authentication/api-key.json",
            "title": "API Key",
            "description": "Your Runware API key.",
            "type": "string"
          },
          "connectionSessionUUID": {
            "$id": "https://schemas.runware.ai/requests/parameters/authentication/connection-session-uuid.json",
            "title": "Connection Session UUID",
            "description": "Optional session UUID to resume a previous connection and receive any buffered results.",
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "taskType",
          "apiKey"
        ],
        "additionalProperties": false
      },
      "RequestBody": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "model": {
              "title": "Model",
              "description": "Identifier of the model to use for generation.",
              "type": "string",
              "const": "luma:ray@3.2"
            },
            "inputs": {
              "title": "Inputs",
              "description": "The unified payload wrapper for complex media assets dictating image, video or audio inference constraints.",
              "type": "object",
              "properties": {
                "frameImages": {
                  "title": "Frame Images",
                  "description": "An array of frame-specific image inputs to guide video generation. Each item can be either a plain image input (UUID, URL, Data URI, or Base64) or an object that pairs an image with a target position in the video.\n\nThe `frameImages` parameter allows you to constrain specific frames within the video sequence, ensuring that particular visual content appears at designated points. Position can be specified using `frame` (named positions or frame indices) or `timestamp` (seconds), depending on model support. This is different from `referenceImages`, which provide overall visual guidance without constraining specific timeline positions.\n\nWhen the `frame` parameter is omitted, automatic distribution rules apply:\n\n- **1 image**: Used as the first frame.\n- **2 images**: First and last frames.\n- **3+ images**: First and last frames, with intermediate images evenly spaced between.\n\n**Examples**:\n\n**Shorthand format:** When you don't need to specify a frame position, you can pass a plain image input directly.\n\n```json\n\"frameImages\": [\n  \"aac49721-1964-481a-ae78-8a4e29b91402\"\n]\n```\n\n**Object format:** When you need to specify a position, use an object with `image` and either `frame` or `timestamp` (model-dependent).\n\n```json\n\"frameImages\": [\n  {\n    \"image\": \"aac49721-1964-481a-ae78-8a4e29b91402\",\n    \"frame\": \"first\"\n  }\n]\n```\n\n**First and last frames:** With two images, they automatically become the first and last frames of the video sequence. You can mix shorthand and object formats.\n\n```json\n\"frameImages\": [\n  \"aac49721-1964-481a-ae78-8a4e29b91402\",\n  {\n    \"image\": \"3ad204c3-a9de-4963-8a1a-c3911e3afafe\",\n    \"frame\": \"last\"\n  }\n]\n```\n\n**Multiple frames:** With three or more images, the first and last are anchored while intermediate frames are evenly distributed across the timeline.\n\n```json\n\"frameImages\": [\n  {\n    \"image\": \"aac49721-1964-481a-ae78-8a4e29b91402\",\n    \"frame\": \"first\"\n  },\n  \"c00abf5f-6cdb-4642-a01d-1bfff7bc3cf7\",\n  {\n    \"image\": \"3ad204c3-a9de-4963-8a1a-c3911e3afafe\",\n    \"frame\": \"last\"\n  }\n]\n```\n\n[Read full documentation](https://runware.ai/docs/models/luma-ray3-2#frameImages)",
                  "type": "array",
                  "minItems": 1,
                  "contains": {
                    "not": {
                      "type": "object",
                      "properties": {
                        "frame": {
                          "enum": [
                            "last",
                            -1
                          ]
                        }
                      },
                      "required": [
                        "frame"
                      ],
                      "additionalProperties": true
                    }
                  },
                  "items": {
                    "anyOf": [
                      {
                        "$id": "https://schemas.runware.ai/requests/parameters/inputs/image.json",
                        "title": "Image",
                        "description": "Image input (UUID, URL, Data URI, or Base64).",
                        "type": "string",
                        "anyOf": [
                          {
                            "format": "uuid"
                          },
                          {
                            "format": "uri"
                          },
                          {
                            "pattern": "^data:image\\/[a-zA-Z]+;base64,[a-zA-Z0-9+/=]+$"
                          },
                          {
                            "pattern": "^[a-zA-Z0-9+/=]+$"
                          }
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "image": {
                            "$id": "https://schemas.runware.ai/requests/parameters/inputs/image.json",
                            "title": "Image",
                            "description": "Image input (UUID, URL, Data URI, or Base64).",
                            "type": "string",
                            "anyOf": [
                              {
                                "format": "uuid"
                              },
                              {
                                "format": "uri"
                              },
                              {
                                "pattern": "^data:image\\/[a-zA-Z]+;base64,[a-zA-Z0-9+/=]+$"
                              },
                              {
                                "pattern": "^[a-zA-Z0-9+/=]+$"
                              }
                            ]
                          },
                          "frame": {
                            "title": "Frame",
                            "description": "Target frame position for the image. Accepts a named position like `first` or `last`, or a zero-based frame index (-1 for the last frame).",
                            "oneOf": [
                              {
                                "title": "Position",
                                "description": "Named position in the video.",
                                "type": "string"
                              },
                              {
                                "title": "Index",
                                "description": "Zero-based frame index. Use -1 for the last frame.",
                                "type": "integer",
                                "minimum": -1
                              }
                            ]
                          }
                        },
                        "required": [
                          "image"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "maxItems": 64
                },
                "video": {
                  "title": "Video",
                  "description": "Source video to edit or reframe (UUID or URL). Editing preserves the source aspect ratio; reframing places it on a new canvas.",
                  "type": "string",
                  "anyOf": [
                    {
                      "format": "uuid"
                    },
                    {
                      "format": "uri"
                    }
                  ]
                }
              },
              "additionalProperties": false
            },
            "positivePrompt": {
              "title": "Positive Prompt",
              "description": "Text prompt describing elements to include in the generated output.",
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            },
            "width": {
              "title": "Width",
              "description": "Width of the generated media in pixels.",
              "type": "integer"
            },
            "height": {
              "title": "Height",
              "description": "Height of the generated media in pixels.",
              "type": "integer"
            },
            "resolution": {
              "title": "Resolution",
              "description": "Resolution preset for the output. When used with input media, automatically matches the aspect ratio from the input.",
              "type": "string",
              "enum": [
                "360p",
                "540p",
                "720p",
                "1080p"
              ],
              "default": "720p"
            },
            "duration": {
              "title": "Duration",
              "description": "Length of the generated video in seconds. The total number of frames produced is determined by duration multiplied by the model's frame rate (fps).",
              "type": "number",
              "enum": [
                5,
                10
              ],
              "default": 5
            },
            "settings": {
              "title": "Settings",
              "description": "Global inference settings.",
              "type": "object",
              "properties": {
                "edit": {
                  "type": "object",
                  "title": "Edit",
                  "description": "Conditioning controls applied when editing the source video.",
                  "properties": {
                    "strength": {
                      "type": "string",
                      "title": "Strength",
                      "description": "Preservation preset, from strict adherence to free reinterpretation.",
                      "enum": [
                        "adhere_1",
                        "adhere_2",
                        "adhere_3",
                        "flex_1",
                        "flex_2",
                        "flex_3",
                        "reimagine_1",
                        "reimagine_2",
                        "reimagine_3"
                      ]
                    },
                    "autoControls": {
                      "type": "boolean",
                      "title": "Auto Controls",
                      "description": "Derive the full conditioning schedule automatically from the source video."
                    },
                    "controls": {
                      "type": "object",
                      "title": "Controls",
                      "description": "Per-signal conditioning controls.",
                      "properties": {
                        "depthBlur": {
                          "type": "number",
                          "title": "Depth Blur",
                          "description": "Scene-geometry depth blur. Higher values allow more freedom.",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "face": {
                          "type": "boolean",
                          "title": "Face",
                          "description": "Enable face-identity conditioning."
                        },
                        "normalsAugmentation": {
                          "type": "number",
                          "title": "Normals Augmentation",
                          "description": "Surface-geometry normals augmentation. Higher values allow more reinterpretation.",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "poseStrength": {
                          "type": "string",
                          "title": "Pose Strength",
                          "description": "Skeleton conditioning strength.",
                          "enum": [
                            "precise",
                            "coarse"
                          ]
                        },
                        "trajectorySparsity": {
                          "type": "number",
                          "title": "Trajectory Sparsity",
                          "description": "Motion-anchoring sparsity. Higher values use fewer anchors.",
                          "minimum": 0,
                          "maximum": 1
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "exrExport": {
                  "type": "boolean",
                  "title": "EXR Export",
                  "description": "Also export an OpenEXR frame sequence alongside the MP4.",
                  "default": false
                },
                "hdr": {
                  "type": "boolean",
                  "title": "HDR",
                  "description": "Render in high dynamic range.",
                  "default": false
                },
                "loop": {
                  "type": "boolean",
                  "title": "Loop",
                  "description": "Loop the generated video seamlessly.",
                  "default": false
                },
                "sourcePosition": {
                  "type": "object",
                  "title": "Source Position",
                  "description": "Placement of the source video within the output canvas, as fractions of the canvas size.",
                  "properties": {
                    "width": {
                      "type": "number",
                      "title": "Width",
                      "description": "Width of the source video, as a fraction of the canvas width.",
                      "maximum": 2,
                      "exclusiveMinimum": 0
                    },
                    "height": {
                      "type": "number",
                      "title": "Height",
                      "description": "Height of the source video, as a fraction of the canvas height.",
                      "maximum": 2,
                      "exclusiveMinimum": 0
                    },
                    "x": {
                      "type": "number",
                      "title": "X",
                      "description": "Horizontal position of the source video, as a fraction of the canvas width.",
                      "minimum": -2,
                      "maximum": 2
                    },
                    "y": {
                      "type": "number",
                      "title": "Y",
                      "description": "Vertical position of the source video, as a fraction of the canvas height.",
                      "minimum": -2,
                      "maximum": 2
                    }
                  },
                  "required": [
                    "x",
                    "y",
                    "width",
                    "height"
                  ],
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "taskType": {
              "title": "Task Type",
              "description": "Identifier for the type of task being performed",
              "type": "string",
              "const": "videoInference"
            },
            "taskUUID": {
              "title": "Task UUID",
              "description": "UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.",
              "type": "string",
              "format": "uuid"
            },
            "webhookURL": {
              "title": "Webhook URL",
              "description": "Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.",
              "type": "string",
              "format": "uri"
            },
            "includeCost": {
              "title": "Include Cost",
              "description": "Include task cost in the response.",
              "type": "boolean",
              "default": false
            },
            "numberResults": {
              "title": "Number of Results",
              "description": "Number of results to generate. Each result uses a different seed, producing variations of the same parameters.",
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "maximum": 4
            },
            "uploadEndpoint": {
              "title": "Upload Endpoint",
              "description": "Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.\n\n**Common use cases:**\n\n- **Cloud storage**: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.\n- **CDN integration**: Upload to content delivery networks for immediate distribution.\n\n```text\n// S3 presigned URL for secure upload\nhttps://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600\n\n// Google Cloud Storage presigned URL\nhttps://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789\n\n// Custom storage endpoint\nhttps://storage.example.com/uploads/generated-image.jpg\n```\n\nThe content data will be sent as the request body to the specified URL when generation is complete.\n\n[Read full documentation](https://runware.ai/docs/models/luma-ray3-2#uploadEndpoint)",
              "type": "string",
              "format": "uri"
            },
            "ttl": {
              "title": "TTL",
              "description": "Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.",
              "type": "integer",
              "minimum": 60
            },
            "outputType": {
              "title": "Output Type",
              "description": "Video output type.",
              "type": "string",
              "enum": [
                "URL"
              ],
              "default": "URL"
            },
            "outputFormat": {
              "title": "Output Format",
              "description": "Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.\n\n- \\`JPG\\`: Best for photorealistic images with smaller file sizes (no transparency).\n- \\`PNG\\`: Lossless compression, supports high quality and transparency (alpha channel).\n- \\`WEBP\\`: Modern format providing superior compression and transparency support.\n- \\`MP4\\`: Widely supported video container (H.264), recommended for general use.\n- \\`WEBM\\`: Optimized for web delivery.\n- \\`MOV\\`: QuickTime format, common in professional workflows (Apple ecosystem).\n- \\`GIF\\`: Animated image format (no audio), suitable for short loops or previews.\n- \\`MP3\\`: Compressed audio, smaller file size.\n- \\`WAV\\`: Uncompressed, high-quality audio.\n- \\`FLAC\\`: Lossless compression.\n- \\`OGG\\`: Open-source compressed audio format (Vorbis codec).\n- \\`SVG\\`: Scalable Vector Graphics.\n- \\`TIFF\\`: High-quality output supporting layers.\n- \\`GLB\\`: Binary glTF format for 3D models, including geometry, textures, and PBR materials.\n\n> [!NOTE]\n> \\*\\*Transparency\\*\\*: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., \\`PNG\\`, \\`WEBP\\`, \\`TIFF\\`). \\`JPG\\` does not support transparency.\n\n[Read full documentation](https://runware.ai/docs/models/luma-ray3-2#outputFormat)",
              "type": "string",
              "enum": [
                "MP4",
                "WEBM",
                "MOV"
              ],
              "default": "MP4"
            },
            "outputQuality": {
              "title": "Output Quality",
              "description": "Compression quality of the output. Higher values preserve quality but increase file size.",
              "type": "integer",
              "minimum": 20,
              "maximum": 99,
              "default": 95
            },
            "deliveryMethod": {
              "title": "Delivery Method",
              "description": "Determines how the API delivers task results.",
              "type": "string",
              "oneOf": [
                {
                  "const": "async",
                  "description": "Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse. Required for long-running tasks like video generation."
                }
              ],
              "default": "async"
            },
            "safety": {
              "type": "object",
              "title": "Safety Settings",
              "description": "Content safety checking configuration for video generation.",
              "properties": {
                "checkContent": {
                  "title": "Check Content",
                  "description": "Enable or disable content safety checking.",
                  "type": "boolean",
                  "default": false
                },
                "mode": {
                  "title": "Safety Mode",
                  "description": "Safety checking mode for video generation.",
                  "type": "string",
                  "oneOf": [
                    {
                      "const": "none",
                      "title": "None",
                      "description": "Disables checking."
                    },
                    {
                      "const": "fast",
                      "title": "Fast",
                      "description": "Checks key frames."
                    },
                    {
                      "const": "full",
                      "title": "Full",
                      "description": "Checks all frames."
                    }
                  ],
                  "default": "none"
                }
              },
              "additionalProperties": false
            }
          },
          "required": [
            "positivePrompt",
            "taskType",
            "taskUUID",
            "model"
          ],
          "allOf": [
            {
              "dependentRequired": {
                "width": [
                  "height"
                ],
                "height": [
                  "width"
                ]
              }
            },
            {
              "not": {
                "allOf": [
                  {
                    "required": [
                      "resolution"
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "required": [
                          "width"
                        ]
                      },
                      {
                        "required": [
                          "height"
                        ]
                      }
                    ]
                  }
                ]
              }
            },
            {
              "not": {
                "allOf": [
                  {
                    "properties": {
                      "settings": {
                        "properties": {
                          "loop": {
                            "const": true
                          }
                        },
                        "required": [
                          "loop"
                        ]
                      }
                    },
                    "required": [
                      "settings"
                    ]
                  },
                  {
                    "properties": {
                      "settings": {
                        "properties": {
                          "hdr": {
                            "const": true
                          }
                        },
                        "required": [
                          "hdr"
                        ]
                      }
                    },
                    "required": [
                      "settings"
                    ]
                  }
                ]
              }
            },
            {
              "not": {
                "allOf": [
                  {
                    "properties": {
                      "settings": {
                        "properties": {
                          "edit": {
                            "properties": {
                              "autoControls": {
                                "const": true
                              }
                            },
                            "required": [
                              "autoControls"
                            ]
                          }
                        },
                        "required": [
                          "edit"
                        ]
                      }
                    },
                    "required": [
                      "settings"
                    ]
                  },
                  {
                    "properties": {
                      "settings": {
                        "properties": {
                          "edit": {
                            "anyOf": [
                              {
                                "required": [
                                  "strength"
                                ]
                              },
                              {
                                "required": [
                                  "controls"
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "edit"
                        ]
                      }
                    },
                    "required": [
                      "settings"
                    ]
                  }
                ]
              }
            },
            {
              "if": {
                "properties": {
                  "settings": {
                    "properties": {
                      "hdr": {
                        "const": true
                      }
                    },
                    "required": [
                      "hdr"
                    ]
                  }
                },
                "required": [
                  "settings"
                ]
              },
              "then": {
                "not": {
                  "anyOf": [
                    {
                      "properties": {
                        "width": {
                          "const": 360
                        },
                        "height": {
                          "const": 640
                        }
                      },
                      "required": [
                        "width",
                        "height"
                      ]
                    },
                    {
                      "properties": {
                        "width": {
                          "const": 360
                        },
                        "height": {
                          "const": 480
                        }
                      },
                      "required": [
                        "width",
                        "height"
                      ]
                    },
                    {
                      "properties": {
                        "width": {
                          "const": 480
                        },
                        "height": {
                          "const": 480
                        }
                      },
                      "required": [
                        "width",
                        "height"
                      ]
                    },
                    {
                      "properties": {
                        "width": {
                          "const": 480
                        },
                        "height": {
                          "const": 360
                        }
                      },
                      "required": [
                        "width",
                        "height"
                      ]
                    },
                    {
                      "properties": {
                        "width": {
                          "const": 640
                        },
                        "height": {
                          "const": 360
                        }
                      },
                      "required": [
                        "width",
                        "height"
                      ]
                    },
                    {
                      "properties": {
                        "width": {
                          "const": 840
                        },
                        "height": {
                          "const": 360
                        }
                      },
                      "required": [
                        "width",
                        "height"
                      ]
                    },
                    {
                      "properties": {
                        "width": {
                          "const": 540
                        },
                        "height": {
                          "const": 960
                        }
                      },
                      "required": [
                        "width",
                        "height"
                      ]
                    },
                    {
                      "properties": {
                        "width": {
                          "const": 540
                        },
                        "height": {
                          "const": 720
                        }
                      },
                      "required": [
                        "width",
                        "height"
                      ]
                    },
                    {
                      "properties": {
                        "width": {
                          "const": 720
                        },
                        "height": {
                          "const": 720
                        }
                      },
                      "required": [
                        "width",
                        "height"
                      ]
                    },
                    {
                      "properties": {
                        "width": {
                          "const": 720
                        },
                        "height": {
                          "const": 540
                        }
                      },
                      "required": [
                        "width",
                        "height"
                      ]
                    },
                    {
                      "properties": {
                        "width": {
                          "const": 960
                        },
                        "height": {
                          "const": 540
                        }
                      },
                      "required": [
                        "width",
                        "height"
                      ]
                    },
                    {
                      "properties": {
                        "width": {
                          "const": 1260
                        },
                        "height": {
                          "const": 540
                        }
                      },
                      "required": [
                        "width",
                        "height"
                      ]
                    }
                  ]
                }
              }
            },
            {
              "if": {
                "properties": {
                  "settings": {
                    "properties": {
                      "loop": {
                        "const": true
                      }
                    },
                    "required": [
                      "loop"
                    ]
                  }
                },
                "required": [
                  "settings"
                ]
              },
              "then": {
                "not": {
                  "properties": {
                    "inputs": {
                      "required": [
                        "video"
                      ]
                    }
                  },
                  "required": [
                    "inputs"
                  ]
                }
              }
            },
            {
              "if": {
                "properties": {
                  "inputs": {
                    "required": [
                      "video"
                    ]
                  }
                },
                "required": [
                  "inputs"
                ]
              },
              "then": {
                "not": {
                  "required": [
                    "duration"
                  ]
                }
              }
            },
            {
              "if": {
                "properties": {
                  "settings": {
                    "required": [
                      "edit"
                    ]
                  }
                },
                "required": [
                  "settings"
                ]
              },
              "then": {
                "not": {
                  "anyOf": [
                    {
                      "required": [
                        "width"
                      ]
                    },
                    {
                      "required": [
                        "height"
                      ]
                    }
                  ]
                }
              }
            },
            {
              "if": {
                "anyOf": [
                  {
                    "required": [
                      "width"
                    ]
                  },
                  {
                    "required": [
                      "height"
                    ]
                  }
                ]
              },
              "then": {
                "required": [
                  "width",
                  "height"
                ],
                "oneOf": [
                  {
                    "title": "360p (9:16)",
                    "properties": {
                      "width": {
                        "const": 360
                      },
                      "height": {
                        "const": 640
                      }
                    }
                  },
                  {
                    "title": "360p (3:4)",
                    "properties": {
                      "width": {
                        "const": 360
                      },
                      "height": {
                        "const": 480
                      }
                    }
                  },
                  {
                    "title": "360p (1:1)",
                    "properties": {
                      "width": {
                        "const": 480
                      },
                      "height": {
                        "const": 480
                      }
                    }
                  },
                  {
                    "title": "360p (4:3)",
                    "properties": {
                      "width": {
                        "const": 480
                      },
                      "height": {
                        "const": 360
                      }
                    }
                  },
                  {
                    "title": "360p (16:9)",
                    "properties": {
                      "width": {
                        "const": 640
                      },
                      "height": {
                        "const": 360
                      }
                    }
                  },
                  {
                    "title": "360p (21:9)",
                    "properties": {
                      "width": {
                        "const": 840
                      },
                      "height": {
                        "const": 360
                      }
                    }
                  },
                  {
                    "title": "540p (9:16)",
                    "properties": {
                      "width": {
                        "const": 540
                      },
                      "height": {
                        "const": 960
                      }
                    }
                  },
                  {
                    "title": "540p (3:4)",
                    "properties": {
                      "width": {
                        "const": 540
                      },
                      "height": {
                        "const": 720
                      }
                    }
                  },
                  {
                    "title": "540p (1:1)",
                    "properties": {
                      "width": {
                        "const": 720
                      },
                      "height": {
                        "const": 720
                      }
                    }
                  },
                  {
                    "title": "540p (4:3)",
                    "properties": {
                      "width": {
                        "const": 720
                      },
                      "height": {
                        "const": 540
                      }
                    }
                  },
                  {
                    "title": "540p (16:9)",
                    "properties": {
                      "width": {
                        "const": 960
                      },
                      "height": {
                        "const": 540
                      }
                    }
                  },
                  {
                    "title": "540p (21:9)",
                    "properties": {
                      "width": {
                        "const": 1260
                      },
                      "height": {
                        "const": 540
                      }
                    }
                  },
                  {
                    "title": "720p (9:16)",
                    "properties": {
                      "width": {
                        "const": 720
                      },
                      "height": {
                        "const": 1280
                      }
                    }
                  },
                  {
                    "title": "720p (3:4)",
                    "properties": {
                      "width": {
                        "const": 720
                      },
                      "height": {
                        "const": 960
                      }
                    }
                  },
                  {
                    "title": "720p (1:1)",
                    "properties": {
                      "width": {
                        "const": 960
                      },
                      "height": {
                        "const": 960
                      }
                    }
                  },
                  {
                    "title": "720p (4:3)",
                    "properties": {
                      "width": {
                        "const": 960
                      },
                      "height": {
                        "const": 720
                      }
                    }
                  },
                  {
                    "title": "720p (16:9)",
                    "properties": {
                      "width": {
                        "const": 1280
                      },
                      "height": {
                        "const": 720
                      }
                    }
                  },
                  {
                    "title": "720p (21:9)",
                    "properties": {
                      "width": {
                        "const": 1680
                      },
                      "height": {
                        "const": 720
                      }
                    }
                  },
                  {
                    "title": "1080p (9:16)",
                    "properties": {
                      "width": {
                        "const": 1080
                      },
                      "height": {
                        "const": 1920
                      }
                    }
                  },
                  {
                    "title": "1080p (3:4)",
                    "properties": {
                      "width": {
                        "const": 1080
                      },
                      "height": {
                        "const": 1440
                      }
                    }
                  },
                  {
                    "title": "1080p (1:1)",
                    "properties": {
                      "width": {
                        "const": 1440
                      },
                      "height": {
                        "const": 1440
                      }
                    }
                  },
                  {
                    "title": "1080p (4:3)",
                    "properties": {
                      "width": {
                        "const": 1440
                      },
                      "height": {
                        "const": 1080
                      }
                    }
                  },
                  {
                    "title": "1080p (16:9)",
                    "properties": {
                      "width": {
                        "const": 1920
                      },
                      "height": {
                        "const": 1080
                      }
                    }
                  },
                  {
                    "title": "1080p (21:9)",
                    "properties": {
                      "width": {
                        "const": 2520
                      },
                      "height": {
                        "const": 1080
                      }
                    }
                  }
                ]
              }
            },
            {
              "if": {
                "properties": {
                  "settings": {
                    "properties": {
                      "exrExport": {
                        "const": true
                      }
                    },
                    "required": [
                      "exrExport"
                    ]
                  }
                },
                "required": [
                  "settings"
                ]
              },
              "then": {
                "properties": {
                  "settings": {
                    "properties": {
                      "hdr": {
                        "const": true
                      }
                    },
                    "required": [
                      "hdr"
                    ]
                  }
                },
                "required": [
                  "settings"
                ]
              }
            },
            {
              "if": {
                "properties": {
                  "settings": {
                    "properties": {
                      "hdr": {
                        "const": true
                      }
                    },
                    "required": [
                      "hdr"
                    ]
                  }
                },
                "required": [
                  "settings"
                ]
              },
              "then": {
                "properties": {
                  "resolution": {
                    "enum": [
                      "720p",
                      "1080p"
                    ]
                  }
                }
              }
            },
            {
              "if": {
                "properties": {
                  "settings": {
                    "properties": {
                      "hdr": {
                        "const": true
                      }
                    },
                    "required": [
                      "hdr"
                    ]
                  }
                },
                "required": [
                  "settings"
                ]
              },
              "then": {
                "properties": {
                  "duration": {
                    "enum": [
                      5
                    ]
                  }
                }
              }
            },
            {
              "if": {
                "properties": {
                  "settings": {
                    "properties": {
                      "loop": {
                        "const": true
                      }
                    },
                    "required": [
                      "loop"
                    ]
                  }
                },
                "required": [
                  "settings"
                ]
              },
              "then": {
                "properties": {
                  "duration": {
                    "enum": [
                      5
                    ]
                  }
                }
              }
            },
            {
              "if": {
                "properties": {
                  "settings": {
                    "required": [
                      "edit"
                    ]
                  }
                },
                "required": [
                  "settings"
                ]
              },
              "then": {
                "properties": {
                  "inputs": {
                    "required": [
                      "video"
                    ]
                  }
                },
                "required": [
                  "inputs"
                ]
              }
            },
            {
              "if": {
                "properties": {
                  "settings": {
                    "required": [
                      "sourcePosition"
                    ]
                  }
                },
                "required": [
                  "settings"
                ]
              },
              "then": {
                "properties": {
                  "inputs": {
                    "required": [
                      "video"
                    ]
                  }
                },
                "required": [
                  "inputs",
                  "width",
                  "height"
                ]
              }
            },
            {
              "if": {
                "required": [
                  "resolution"
                ]
              },
              "then": {
                "properties": {
                  "inputs": {
                    "anyOf": [
                      {
                        "required": [
                          "frameImages"
                        ]
                      },
                      {
                        "required": [
                          "video"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "inputs"
                ]
              }
            }
          ],
          "additionalProperties": false
        },
        "description": "You must always POST an array of task objects."
      },
      "ResponseBody": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "Unknown response structure"
            }
          }
        }
      },
      "ErrorResponse": {
        "title": "Error Response",
        "description": "Standard error response returned by the Runware API.",
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "additionalProperties": true,
              "properties": {
                "code": {
                  "type": "string",
                  "description": "A short identifier for the error (e.g., invalidApiKey, timeoutProvider)."
                },
                "message": {
                  "type": "string",
                  "description": "A human-readable explanation of what went wrong."
                },
                "parameter": {
                  "type": "string",
                  "description": "The request parameter related to the error, if applicable."
                },
                "taskType": {
                  "type": "string",
                  "description": "The task type of the request that failed."
                },
                "taskUUID": {
                  "type": "string",
                  "description": "The unique identifier of the failed request."
                },
                "documentation": {
                  "type": "string",
                  "description": "A link to relevant documentation."
                }
              }
            }
          }
        },
        "required": [
          "errors"
        ],
        "additionalProperties": false
      }
    }
  },
  "paths": {
    "/": {
      "post": {
        "summary": "Run Ray3.2",
        "description": "Ray3.2 is Luma's flagship video model for turning creative direction into controllable production workflows. It supports text-to-video, image-to-video, and video-to-video generation, with stronger continuity, motion transfer, camera motion transfer, character transformation, relighting, environment change, and product-swap workflows. It is built for cinematic-quality output, multi-keyframe control inside a single clip, and Modify Video V2 workflows that preserve performance, lighting, and scene structure while transforming existing footage.",
        "operationId": "run_luma_ray3_2",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request — Missing or invalid parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized — No valid API key provided.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required — Insufficient account balance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden — The API key lacks permissions for this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error — Something went wrong on Runware's end.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable — Temporarily unavailable (maintenance or capacity).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "apiKeyAuth": []
    }
  ]
}