{
  "openapi": "3.0.1",
  "info": {
    "title": "ProductAI Product Photography",
    "description": "Generate on-brand product photos and short videos from your product images. Uses your ProductAI account and credits. Batch listing shots, ads, and lifestyle scenes.",
    "version": "1.1",
    "x-build-id": "FVkzSU57qNCMwlZYv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/productai-photo~productai-product-photography/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-productai-photo-productai-product-photography",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/productai-photo~productai-product-photography/runs": {
      "post": {
        "operationId": "runs-sync-productai-photo-productai-product-photography",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/productai-photo~productai-product-photography/run-sync": {
      "post": {
        "operationId": "run-sync-productai-photo-productai-product-photography",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "apiKey": {
            "title": "ProductAI API key",
            "type": "string",
            "description": "Required for real generations. Create or copy your key at https://www.productai.photo/dashboard/api-access. It is stored encrypted and is never written to the log or the dataset. A run with no key finishes successfully and does not call ProductAI."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "image",
              "video"
            ],
            "type": "string",
            "description": "Product photo calls the image API. Product video calls the video API and is billed per second.",
            "default": "image"
          },
          "imageUrls": {
            "title": "Product image URLs",
            "maxItems": 200,
            "type": "array",
            "description": "Public http(s) links to product photos (JPEG, PNG, or WebP, max 10 MB each). ProductAI downloads them, so private or localhost links will fail. One link per product is the usual batch. The sample photo is only a demo — running it spends credits. Leave this empty only for a text-to-image model, or for a Seedance video that has no reference frame.",
            "items": {
              "type": "string"
            }
          },
          "imageGrouping": {
            "title": "Image grouping",
            "enum": [
              "each",
              "references"
            ],
            "type": "string",
            "description": "One job per image URL shoots every product on its own. All URLs as references sends every link together (front and side of one product, or a style reference). Single-image models accept only one reference.",
            "default": "each"
          },
          "prompt": {
            "title": "Scene prompt",
            "type": "string",
            "description": "What the shot should look like: surface, background, lighting, and mood. Used for every image unless Prompts is filled in. For Seedance video you can write @Image1 to point at the first reference. Gemini Omni uses <IMAGE_REF_0>. If you leave the marker out, ProductAI binds the first image for you."
          },
          "prompts": {
            "title": "Prompts (batch)",
            "maxItems": 100,
            "type": "array",
            "description": "Optional list of scenes. When this has any line, it replaces the single scene prompt. Every product is generated once for each prompt, and each of those is a separate billed job.",
            "items": {
              "type": "string"
            }
          },
          "variants": {
            "title": "Variants",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many generations to request for each image and prompt. Each variant is its own ProductAI job and spends credits when it is submitted. Use 2 or 3 when you want a few takes of the same scene.",
            "default": 1
          },
          "model": {
            "title": "Image model",
            "enum": [
              "nanobanana2",
              "nanobanana2.1",
              "nanobananapro",
              "nanobanana",
              "seedream-5-pro",
              "seedream-5-lite",
              "seedream",
              "kontext-pro",
              "kontext-max",
              "gpt-2.6",
              "gpt-2.6-precise",
              "gpt-2.5",
              "gpt-2.5-precise",
              "gpt-2",
              "gpt-1.5",
              "gpt-high",
              "gpt-medium",
              "gpt-low"
            ],
            "type": "string",
            "description": "Used when Mode is Product photo. Credit costs are ProductAI's and can change. 4K resolution doubles the cost of a Nano Banana model. GPT Image 2.6, 2.5, 2, and 1.5 can run with no product image.",
            "default": "nanobanana2"
          },
          "aspectRatio": {
            "title": "Aspect ratio",
            "enum": [
              "SQUARE",
              "LANDSCAPE",
              "PORTRAIT",
              "1:1",
              "4:3",
              "3:4",
              "5:4",
              "4:5",
              "16:9",
              "9:16"
            ],
            "type": "string",
            "description": "Square, Landscape, and Portrait work on every image model. The numeric ratios (16:9, 4:5, and the others) are for Nano Banana models only.",
            "default": "SQUARE"
          },
          "resolution": {
            "title": "Resolution",
            "enum": [
              "1K",
              "2K",
              "4K"
            ],
            "type": "string",
            "description": "Nano Banana models only. 1K, 2K, or 4K. 4K costs twice that model's credits. Other image models ignore this field.",
            "default": "2K"
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "png",
              "jpg"
            ],
            "type": "string",
            "description": "png keeps sharper edges. jpg is smaller. Applies to product photos.",
            "default": "png"
          },
          "videoModel": {
            "title": "Video model",
            "enum": [
              "seedance",
              "gemini-omni"
            ],
            "type": "string",
            "description": "Used when Mode is Product video. Seedance can run from a prompt alone. Gemini Omni needs 1 to 9 reference images. Price is credits per second of output.",
            "default": "seedance"
          },
          "videoAspectRatio": {
            "title": "Video aspect ratio",
            "enum": [
              "auto",
              "21:9",
              "16:9",
              "4:3",
              "1:1",
              "3:4",
              "9:16"
            ],
            "type": "string",
            "description": "Seedance: auto, 21:9, 16:9, 4:3, 1:1, 3:4, or 9:16. Gemini Omni: 16:9 or 9:16. If you leave auto and pick Gemini Omni, the Actor uses 16:9.",
            "default": "auto"
          },
          "videoResolution": {
            "title": "Video resolution",
            "enum": [
              "480p",
              "720p",
              "1080p",
              "4k"
            ],
            "type": "string",
            "description": "Seedance only. Gemini Omni videos are 720p. Credits per second for Seedance: 480p is 6, 720p is 12, 1080p is 26, 4k is 60.",
            "default": "720p"
          },
          "videoDuration": {
            "title": "Video duration",
            "type": "string",
            "description": "auto lets Seedance follow the length named in your prompt, or 5 seconds if the prompt names none. You are billed for the length it renders. Or type a whole number: 4–15 for Seedance, 3–10 for Gemini Omni. Gemini Omni does not support auto; the Actor uses 8 seconds in that case.",
            "default": "auto"
          },
          "generateAudio": {
            "title": "Generate audio",
            "type": "boolean",
            "description": "Seedance only. When on, Seedance adds a soundtrack in the same pass. Gemini Omni ignores this.",
            "default": true
          },
          "maxWaitSecs": {
            "title": "Max wait",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "How long to wait for each job after it is submitted. Photos often finish in under a minute. Videos can take several minutes. If a job is still running when this ends, the dataset row is marked timed out and keeps the job id.",
            "default": 360
          },
          "pollIntervalSecs": {
            "title": "Poll interval",
            "minimum": 2,
            "maximum": 60,
            "type": "integer",
            "description": "How often to ask ProductAI if a job is done. 3–5 seconds is plenty for photos. 8–15 seconds is plenty for video.",
            "default": 5
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Cap on new generation jobs per minute. ProductAI's own limit is 15 per minute per IP, so this cannot go higher. Lower it if you want a gentler batch.",
            "default": 15
          },
          "maxConcurrentJobs": {
            "title": "Max concurrent jobs",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "How many jobs to keep in flight while earlier ones render. New jobs are still limited by Max requests per minute.",
            "default": 8
          },
          "saveFiles": {
            "title": "Save result files",
            "type": "boolean",
            "description": "Also download each finished file into this run's key-value store (image-{jobId} or video-{jobId}). The dataset always stores the result URL either way. Leave this off for large videos. Turn it on with at least 1024 MB of memory. Files over 100 MB are left as URLs.",
            "default": false
          },
          "maxTasks": {
            "title": "Max jobs",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Safety cap on jobs submitted in one run (images × prompts × variants). The Actor stops before calling ProductAI if the batch is larger, so you do not spend credits by accident.",
            "default": 500
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}