{
  "openapi": "3.0.1",
  "info": {
    "title": "Gamma AI Image Generator",
    "description": "Bulk-generate images via Gamma's image API with 50+ models (Flux 2, Nano Banana, Ideogram, Imagen 4, GPT Image 2, Recraft V4), 6 art-style presets, and up to 4 style reference images per run.",
    "version": "0.1",
    "x-build-id": "gWiMfcbQhLJi5GJrc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/goat255~gamma-unlimited-ai-images/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-goat255-gamma-unlimited-ai-images",
        "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/goat255~gamma-unlimited-ai-images/runs": {
      "post": {
        "operationId": "runs-sync-goat255-gamma-unlimited-ai-images",
        "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/goat255~gamma-unlimited-ai-images/run-sync": {
      "post": {
        "operationId": "run-sync-goat255-gamma-unlimited-ai-images",
        "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",
        "required": [
          "cookie",
          "workspaceId",
          "prompts"
        ],
        "properties": {
          "cookie": {
            "title": "Gamma Session Cookie",
            "type": "string",
            "description": "The full Cookie header from a logged-in Gamma session. Open Gamma in your browser, then DevTools → Network → click any request → copy the entire Cookie request header value (it must include gamma_session=...)."
          },
          "workspaceId": {
            "title": "Workspace ID",
            "type": "string",
            "description": "Your Gamma workspace ID. Found inside any GraphQL request body in DevTools (look for workspaceId), or in your Workspace settings URL."
          },
          "prompts": {
            "title": "Prompts",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "One or more image prompts. Each prompt produces up to 3 images depending on Image Count.",
            "items": {
              "type": "string"
            }
          },
          "modelAutoselect": {
            "title": "Model Auto-Select",
            "type": "boolean",
            "description": "Let Gamma pick the best model for each prompt. When on, the Model field below is ignored.",
            "default": false
          },
          "model": {
            "title": "Model",
            "enum": [
              "flux-2-pro",
              "gpt-image-2",
              "flux-2-flex",
              "flux-1-quick",
              "flux-1-schnell",
              "ideogram-v3-flash",
              "imagen-3-flash",
              "luma-photon-flash-1",
              "flux-kontext-fast",
              "flux-1-pro",
              "gpt-image-1-medium",
              "gpt-image-1-mini-medium",
              "gpt-image-2-mini",
              "ideogram-v3-turbo",
              "imagen-4-fast",
              "leonardo-phoenix",
              "luma-photon-1",
              "gemini-3.1-flash-image-mini",
              "recraft-v4",
              "flux-2-max",
              "flux-kontext-pro",
              "flux-2-klein",
              "gpt-image-1-high",
              "ideogram-v3",
              "imagen-4-pro",
              "gemini-2.5-flash-image",
              "gemini-3-pro-image",
              "gemini-3.1-flash-image",
              "recraft-v3",
              "recraft-v3-svg",
              "recraft-v4-svg",
              "flux-1-ultra",
              "flux-kontext-max",
              "ideogram-v3-quality",
              "imagen-4-ultra",
              "gemini-3-pro-image-hd",
              "gemini-3.1-flash-image-hd",
              "recraft-v4-pro",
              "dall-e-3",
              "imagen-3-pro",
              "playground-3",
              "ideogram-v2",
              "ideogram-v2-turbo",
              "ideogram-v2a",
              "ideogram-v2a-turbo",
              "ideogram-gamma-custom",
              "leonardo-sdxl-gamma-lora",
              "leonardo-sdxl-mrpeepers-lora",
              "gpt-image-1-low",
              "gpt-image-1-mini-low",
              "gpt-image-1-mini-high",
              "gpt-image-2-hd"
            ],
            "type": "string",
            "description": "Which AI image model to use. Only applied when Model Auto-Select is off. Models marked ✿ref support style reference images.",
            "default": "flux-2-pro"
          },
          "aspectRatio": {
            "title": "Aspect Ratio",
            "enum": [
              "square",
              "landscape",
              "portrait"
            ],
            "type": "string",
            "description": "Image shape.",
            "default": "square"
          },
          "count": {
            "title": "Image Count (per prompt)",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "How many images to generate per prompt. Max 3 (Gamma's hard limit).",
            "default": 1
          },
          "artStylePreset": {
            "title": "Art Style Preset",
            "enum": [
              "photorealistic",
              "illustration",
              "abstract",
              "3D",
              "lineArt",
              "custom"
            ],
            "type": "string",
            "description": "Built-in style. Pick custom to use your own Art Style Prompt below.",
            "default": "photorealistic"
          },
          "artStylePrompt": {
            "title": "Art Style Prompt (custom only)",
            "type": "string",
            "description": "Free-form description of the look. Only used when Art Style Preset is set to custom.",
            "default": ""
          },
          "styleReferenceImageUrls": {
            "title": "Style Reference Images (URLs)",
            "maxItems": 4,
            "uniqueItems": true,
            "type": "array",
            "description": "Up to 4 public image URLs to use as style references. The actor downloads each, uploads it into your Gamma workspace via Transloadit, then attaches them to the generation. If your selected Model does not support references, the run auto-switches to Model Auto-Select.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "themeId": {
            "title": "Theme ID",
            "type": "string",
            "description": "Gamma theme ID. Leave the default unless you have a specific custom theme.",
            "default": "default-light"
          },
          "maxConcurrency": {
            "title": "Max Concurrent Prompts",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many prompts to process in parallel.",
            "default": 3
          },
          "requestDelay": {
            "title": "Delay Between Requests (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Pause between consecutive generation calls to be polite to Gamma's API.",
            "default": 1500
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}