{
  "info": {
    "title": "AtlasCloud API",
    "version": "1.0.0",
    "description": "Luma Ray 3.2 text-to-video (Luma AI generations API)."
  },
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://api.atlascloud.ai"
    }
  ],
  "paths": {
    "/api/v1/model/generateVideo": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PredictionResponse"
                }
              }
            },
            "description": "The request status."
          }
        }
      },
      "x-api-name": "model_run"
    },
    "/api/v1/model/prediction/{request_id}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "description": "Request ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PredictionResponse"
                }
              }
            },
            "description": "Result of the request."
          }
        }
      },
      "x-api-name": "model_result"
    }
  },
  "components": {
    "schemas": {
      "Input": {
        "type": "object",
        "required": [
          "model",
          "prompt"
        ],
        "properties": {
          "model": {
            "type": "string",
            "description": "Model name.",
            "default": "luma/ray-3.2/text-to-video",
            "enum": [
              "luma/ray-3.2/text-to-video"
            ]
          },
          "prompt": {
            "type": "string",
            "default": "A majestic eagle soaring through golden clouds at sunset, slow cinematic dolly-in, warm light.",
            "description": "Scene description including desired content, camera movement and atmosphere."
          },
          "duration": {
            "type": "integer",
            "default": 5,
            "enum": [
              5,
              10
            ],
            "description": "Video length in seconds.",
            "x-ui-component": "slider"
          },
          "resolution": {
            "type": "string",
            "default": "720p",
            "enum": [
              "540p",
              "720p",
              "1080p"
            ],
            "description": "Output resolution tier.",
            "x-ui-component": "select"
          },
          "aspect_ratio": {
            "type": "string",
            "default": "16:9",
            "enum": [
              "16:9",
              "9:16",
              "1:1",
              "4:3",
              "3:4",
              "21:9",
              "9:21"
            ],
            "description": "Frame aspect ratio (width:height).",
            "x-ui-component": "select"
          },
          "loop": {
            "type": "boolean",
            "default": false,
            "description": "Generate a seamlessly looping video. Only valid for type=video; not supported with duration=10s or hdr=true."
          },
          "hdr": {
            "type": "boolean",
            "default": false,
            "description": "Generate HDR video. Requires HDR access. Only valid for 5s clips (not with duration=10s).Only 720p and 1080p are supported."
          }
        },
        "x-order-properties": [
          "model",
          "prompt",
          "duration",
          "resolution",
          "aspect_ratio",
          "loop",
          "hdr"
        ]
      },
      "PredictionResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the prediction."
          },
          "urls": {
            "type": "object",
            "description": "Object containing related API endpoints."
          },
          "model": {
            "type": "string",
            "description": "Model ID used for the prediction."
          },
          "status": {
            "type": "string",
            "description": "Status of the task: created, processing, completed, or failed."
          },
          "outputs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Array of URLs to the generated video. Empty when status is not completed."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "ISO timestamp of when the request was created."
          },
          "has_nsfw_contents": {
            "type": "array",
            "items": {
              "type": "boolean"
            },
            "description": "Array of boolean values indicating NSFW detection for each output."
          }
        }
      }
    }
  }
}
