{
  "components": {
    "schemas": {
      "Input": {
        "properties": {
          "model": {
            "type": "string",
            "description": "model name",
            "default": "bytedance/seedream-v5.0-pro/edit"
          },
          "enable_base64_output": {
            "default": false,
            "description": "If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.",
            "disabled": true,
            "type": "boolean"
          },
          "prompt": {
            "description": "The positive prompt for the generation. Recommended length: under 600 English words.",
            "minLength": 1,
            "type": "string"
          },
          "size": {
            "default": "2048*2048",
            "description": "Output image size in 'WIDTH*HEIGHT' pixels. Total pixels must stay within [1,048,576 (1024*1024), 4,194,304 (2048*2048)] and aspect ratio within [1/16, 16]. Billing tier is by total output pixel count: <= 2.36M px bills at the 1.5K tier; larger sizes bill at the 2K tier.",
            "enum": [
              "2048*2048",
              "2304*1728",
              "1728*2304",
              "2720*1530",
              "1530*2720",
              "2496*1664",
              "1664*2496",
              "1024*1024",
              "1536*1536",
              "1776*1328",
              "1328*1776",
              "2048*1152",
              "1152*2048"
            ],
            "type": "string"
          },
          "output_format": {
            "default": "jpeg",
            "description": "Output image file format. Seedream v5.0 Pro supports both JPEG and PNG output.",
            "enum": [
              "jpeg",
              "png"
            ],
            "type": "string"
          },
          "images": {
            "description": "The images to edit. Accepts URLs or Base64 data URLs. A maximum of 10 reference images can be uploaded; the first input image is free and each additional input image adds $0.003. Supported formats: JPEG, PNG, WEBP, BMP, TIFF, GIF, HEIC, HEIF.",
            "items": {
              "type": "string"
            },
            "maxItems": 10,
            "minItems": 1,
            "type": "array"
          },
          "thinking": {
            "type": "string",
            "enum": [
              "enabled",
              "disabled"
            ],
            "default": "enabled",
            "description": "Controls the deep-thinking phase of automatic prompt optimization. Set to 'disabled' to skip prompt-optimization thinking for faster generation (text-to-image completes significantly faster; editing latency is largely unaffected).",
            "x-ui-component": "select"
          },
          "prompt_optimization_mode": {
            "type": "string",
            "enum": [
              "standard",
              "fast"
            ],
            "default": "standard",
            "description": "Prompt optimization mode. 'standard' (default) produces higher-quality prompt optimization but takes longer. 'fast' takes significantly less time with slightly lower quality. Billing is identical in both modes. For the fastest generation set thinking to 'disabled' as well — when thinking is enabled, the deep-thinking phase still dominates latency.",
            "x-ui-component": "select"
          }
        },
        "required": [
          "model",
          "prompt",
          "images"
        ],
        "type": "object",
        "x-order-properties": [
          "model",
          "prompt",
          "images",
          "size",
          "output_format",
          "thinking",
          "prompt_optimization_mode",
          "enable_base64_output"
        ]
      },
      "PredictionResponse": {
        "properties": {
          "created_at": {
            "description": "ISO timestamp of when the request was created (e.g., \"2023-04-01T12:34:56.789Z\").",
            "format": "date-time",
            "type": "string"
          },
          "has_nsfw_contents": {
            "description": "Array of boolean values indicating NSFW detection for each output.",
            "items": {
              "type": "boolean"
            },
            "type": "array"
          },
          "id": {
            "description": "Unique identifier for the prediction, the ID of the prediction to get.",
            "type": "string"
          },
          "model": {
            "description": "Model ID used for the prediction.",
            "type": "string"
          },
          "outputs": {
            "description": "Array of URLs to the generated content (empty when status is not completed).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "description": "Status of the task: created, processing, completed, or failed.",
            "type": "string"
          },
          "urls": {
            "description": "Object containing related API endpoints.",
            "type": "object"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "apiKeyAuth": {
        "in": "header",
        "name": "Authorization",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "The AtlasCloud API.",
    "title": "AtlasCloud API - bytedance/seedream-v5.0-pro/edit",
    "version": "1.0.0"
  },
  "openapi": "3.0.0",
  "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/result/{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"
    }
  },
  "servers": [
    {
      "url": "https://api.atlascloud.ai"
    }
  ]
}
