{
  "openapi": "3.0.1",
  "info": {
    "title": "Image & Banner Generator - Templates + Data to PNG in Bulk",
    "description": "Make social images, OG cards and ad banners from a template and data rows: 5 built-in designs or your own HTML/CSS, many sizes per row, text auto-shrink with a per-image fit check, PNG/JPEG/WebP. $1 per 1,000 images.",
    "version": "1.0",
    "x-build-id": "pd8AxV7FvWDi91QSL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/digivibetech~image-banner-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-digivibetech-image-banner-generator",
        "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/digivibetech~image-banner-generator/runs": {
      "post": {
        "operationId": "runs-sync-digivibetech-image-banner-generator",
        "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/digivibetech~image-banner-generator/run-sync": {
      "post": {
        "operationId": "run-sync-digivibetech-image-banner-generator",
        "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": {
          "template": {
            "title": "Design",
            "enum": [
              "og-classic",
              "og-image",
              "quote",
              "product",
              "event",
              "custom"
            ],
            "type": "string",
            "description": "Built-in design, or custom to use your own HTML in 'html'. The built-in designs scale their layout to the requested size; on the IAB banner sizes the text gets small (see fitFontPx).",
            "default": "og-classic"
          },
          "rows": {
            "title": "Data rows",
            "type": "array",
            "description": "One object per image set. Fields used by the built-in designs: title, subtitle, eyebrow, footer, imageUrl, logoUrl, price, oldPrice, cta, brandColor, textColor, background, googleFont. Add slug or fileName for file names."
          },
          "csvUrl": {
            "title": "Data rows from a CSV file",
            "type": "string",
            "description": "Public CSV link, up to 20 MB (for example a Google Sheet published as CSV). The header row gives the field names; comma, semicolon and tab separators are detected. Rows are added after 'rows'."
          },
          "title": {
            "title": "Title (single image)",
            "type": "string",
            "description": "Quick mode without rows: one image with this title."
          },
          "subtitle": {
            "title": "Subtitle (single image)",
            "type": "string",
            "description": "Quick mode: subtitle."
          },
          "sizes": {
            "title": "Sizes",
            "type": "array",
            "description": "Presets: og (1200x630), twitter, square, portrait, story, linkedin, pinterest, youtube, facebook-cover, banner-leaderboard, banner-rectangle, banner-skyscraper. Or WIDTHxHEIGHT like 1500x500 (16 to 4000 px per side). Each row is made in each listed size; up to 5,000 images per run.",
            "default": [
              "og"
            ],
            "items": {
              "type": "string"
            }
          },
          "quality": {
            "title": "JPEG/WebP quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "1-100.",
            "default": 90
          },
          "scale": {
            "title": "Pixel density",
            "type": "number",
            "description": "1 = exact size, 1.5 or 2 = that many times more pixels per side, for sharp text on retina screens (2 gives a 2400x1260 file for og).",
            "default": 1
          },
          "transparent": {
            "title": "Transparent background",
            "type": "boolean",
            "description": "PNG or WebP with a transparent page background (for logos and overlays). Not available for JPEG.",
            "default": false
          },
          "brandColor": {
            "title": "Brand colour",
            "type": "string",
            "description": "Accent colour, e.g. #1a73e8. Rows may override.",
            "default": "#1a73e8"
          },
          "textColor": {
            "title": "Text colour",
            "type": "string",
            "description": "Main text colour.",
            "default": "#111111"
          },
          "background": {
            "title": "Background colour",
            "type": "string",
            "description": "Background colour.",
            "default": "#ffffff"
          },
          "logoUrl": {
            "title": "Logo URL",
            "type": "string",
            "description": "Public image link of your logo, shown on every image of the built-in designs (in your own HTML, use {{ logoUrl }})."
          },
          "googleFont": {
            "title": "Google Font",
            "type": "string",
            "description": "Family name from Google Fonts, e.g. Inter, Poppins or Playfair Display. Empty uses a system font; an unknown family falls back to it and is listed in failedResources."
          },
          "footer": {
            "title": "Footer text",
            "type": "string",
            "description": "Small text such as your site name."
          },
          "html": {
            "title": "Custom HTML template",
            "type": "string",
            "description": "For design custom: full HTML and CSS with {{ fields }} from each row (Jinja2 syntax, values escaped). Add data-fit to an element to shrink its text to try to fit (see textFitted). Also available: _w and _h (size in pixels)."
          },
          "css": {
            "title": "Extra CSS",
            "type": "string",
            "description": "Added to every design, e.g. .title{letter-spacing:-0.02em}."
          },
          "fileNameTemplate": {
            "title": "File name template",
            "type": "string",
            "description": "e.g. card-{{ slug }}. The size name (when more than one size is made) and the extension are added; a repeated name gets -2, -3."
          },
          "fitText": {
            "title": "Shrink text to try to fit",
            "type": "boolean",
            "description": "Long titles get a smaller font, down to 8 px; fit is not guaranteed, so check textFitted, fitFontPx and fitScale on each row.",
            "default": true
          },
          "format": {
            "title": "Format",
            "enum": [
              "png",
              "jpeg",
              "webp"
            ],
            "type": "string",
            "description": "Image file type.",
            "default": "png"
          },
          "delayMs": {
            "title": "Extra wait (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Extra wait before the snapshot, for example for late scripts in your own HTML (0-10000). CSS animations are captured in their end state.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}