{
  "openapi": "3.0.1",
  "info": {
    "title": "Image To Image Localization Actor",
    "description": "Image to Image Text Translation Actor\nTranslate text within images while preserving the original layout, styling, and visual appearance. This Actor uses Google Cloud Vision API for text detection and Lingo.dev or Gemini AI for high-quality translation.",
    "version": "0.0",
    "x-build-id": "QyxSgM6P7Ko1knnKE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gungz~image-to-image-localization-actor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gungz-image-to-image-localization-actor",
        "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/gungz~image-to-image-localization-actor/runs": {
      "post": {
        "operationId": "runs-sync-gungz-image-to-image-localization-actor",
        "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/gungz~image-to-image-localization-actor/run-sync": {
      "post": {
        "operationId": "run-sync-gungz-image-to-image-localization-actor",
        "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": [
          "imageUrls",
          "targetLanguage"
        ],
        "properties": {
          "imageUrls": {
            "title": "Image URLs",
            "type": "array",
            "description": "Array of image URLs to translate (up to 100 images per run)",
            "items": {
              "type": "string"
            }
          },
          "targetLanguage": {
            "title": "Target Language",
            "enum": [
              "ur",
              "vi",
              "tr",
              "ta",
              "sr",
              "hu",
              "he",
              "et",
              "el",
              "da",
              "az",
              "th",
              "sv",
              "en",
              "es",
              "fr",
              "ca",
              "ja",
              "kk",
              "de",
              "pt",
              "it",
              "ru",
              "uk",
              "be",
              "hi",
              "zh",
              "ko",
              "ar",
              "bg",
              "cs",
              "cy",
              "nl",
              "pl",
              "id",
              "is",
              "ms",
              "fi",
              "eu",
              "hr",
              "iw",
              "km",
              "lv",
              "lt",
              "no",
              "ro",
              "sk",
              "sw",
              "fa",
              "fil",
              "pa",
              "bn",
              "ga",
              "gl",
              "mt",
              "sl",
              "sq",
              "bar",
              "nap",
              "af",
              "uz",
              "so",
              "ti",
              "zgh",
              "tl",
              "te",
              "rw",
              "ka",
              "ml",
              "hy",
              "mk",
              "ur-PK",
              "vi-VN",
              "tr-TR",
              "ta-IN",
              "ta-SG",
              "sr-RS",
              "sr-Latn-RS",
              "sr-Cyrl-RS",
              "hu-HU",
              "he-IL",
              "et-EE",
              "el-GR",
              "el-CY",
              "da-DK",
              "az-AZ",
              "th-TH",
              "sv-SE",
              "en-US",
              "en-GB",
              "en-AU",
              "en-CA",
              "en-SG",
              "en-IE",
              "es-ES",
              "es-419",
              "es-MX",
              "es-AR",
              "fr-FR",
              "fr-CA",
              "fr-BE",
              "fr-LU",
              "ca-ES",
              "ja-JP",
              "kk-KZ",
              "de-DE",
              "de-AT",
              "de-CH",
              "pt-PT",
              "pt-BR",
              "it-IT",
              "it-CH",
              "ru-RU",
              "ru-BY",
              "uk-UA",
              "be-BY",
              "hi-IN",
              "zh-CN",
              "zh-TW",
              "zh-HK",
              "zh-SG",
              "zh-Hans",
              "zh-Hant",
              "zh-Hant-HK",
              "zh-Hant-TW",
              "zh-Hant-CN",
              "zh-Hans-HK",
              "zh-Hans-TW",
              "zh-Hans-CN",
              "ko-KR",
              "ar-EG",
              "ar-SA",
              "ar-AE",
              "ar-MA",
              "bg-BG",
              "cs-CZ",
              "cy-GB",
              "nl-NL",
              "nl-BE",
              "pl-PL",
              "id-ID",
              "is-IS",
              "ms-MY",
              "fi-FI",
              "eu-ES",
              "hr-HR",
              "iw-IL",
              "km-KH",
              "lv-LV",
              "lt-LT",
              "no-NO",
              "nb-NO",
              "nn-NO",
              "ro-RO",
              "sk-SK",
              "sw-TZ",
              "sw-KE",
              "sw-UG",
              "sw-CD",
              "sw-RW",
              "fa-IR",
              "fil-PH",
              "pa-IN",
              "pa-PK",
              "bn-BD",
              "bn-IN",
              "ga-IE",
              "gl-ES",
              "mt-MT",
              "sl-SI",
              "sq-AL",
              "bar-DE",
              "nap-IT",
              "af-ZA",
              "uz-Latn",
              "so-SO",
              "ti-ET",
              "zgh-MA",
              "tl-PH",
              "te-IN",
              "rw-RW",
              "ka-GE",
              "ml-IN",
              "hy-AM",
              "mk-MK"
            ],
            "type": "string",
            "description": "Target language code for translation",
            "default": "es-ES"
          },
          "translationProvider": {
            "title": "Translation Provider",
            "enum": [
              "gemini",
              "lingo"
            ],
            "type": "string",
            "description": "Choose translation service: Gemini (AI-powered, default) or Lingo.dev (brand voice preservation)",
            "default": "gemini"
          },
          "fontSize": {
            "title": "Font Size (Lingo only)",
            "minimum": 8,
            "maximum": 72,
            "type": "integer",
            "description": "Font size for translated text in pixels (only used with Lingo.dev provider)",
            "default": 16
          },
          "fontFamily": {
            "title": "Font Family (Lingo only)",
            "enum": [
              "Arial",
              "Helvetica",
              "Times New Roman",
              "Courier New"
            ],
            "type": "string",
            "description": "Font family for translated text (only used with Lingo.dev provider)",
            "default": "Arial"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}