{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk LLM Runner: AI Prompt for Every Row, JSON Output, No Key",
    "description": "Run one AI prompt over hundreds of rows from a list or a dataset. Classify, extract, summarize, translate or enrich every row with GPT-OSS and get strict JSON with your own fields, in input order. Try it with no key, or use your own free Groq key for $0.001 per row.",
    "version": "0.1",
    "x-build-id": "cbph4ShFN6Xpy86h8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rod_analytics~bulk-llm-runner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rod_analytics-bulk-llm-runner",
        "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/rod_analytics~bulk-llm-runner/runs": {
      "post": {
        "operationId": "runs-sync-rod_analytics-bulk-llm-runner",
        "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/rod_analytics~bulk-llm-runner/run-sync": {
      "post": {
        "operationId": "run-sync-rod_analytics-bulk-llm-runner",
        "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": {
          "prompt": {
            "title": "Prompt for each row",
            "type": "string",
            "description": "What the model should do with one row. Use {{field}} to insert a field of the row, for example {{text}} or {{company.name}}. {{row}} inserts the whole row as JSON. Plain text rows are available as {{text}}."
          },
          "rows": {
            "title": "Rows",
            "type": "array",
            "description": "The items to process: a list of objects like [{\"text\": \"...\"}, {\"name\": \"...\", \"website\": \"...\"}], or a list of plain strings. Leave empty when you use a dataset."
          },
          "datasetId": {
            "title": "Dataset with rows",
            "type": "string",
            "description": "Optional. Process the items of a dataset, for example the output of a scraper run. Each item is one row. Added after the rows above."
          },
          "outputFields": {
            "title": "Output fields",
            "type": "array",
            "description": "Field names the JSON answer must have, for example sentiment and reason. Every row gets exactly these fields as text. For numbers, lists or nested objects use \"JSON schema\" instead.",
            "items": {
              "type": "string"
            }
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "json",
              "text"
            ],
            "type": "string",
            "description": "JSON returns one parsed object per row in \"output\". Text returns the answer as a string.",
            "default": "json"
          },
          "model": {
            "title": "Model",
            "enum": [
              "openai/gpt-oss-20b",
              "openai/gpt-oss-120b"
            ],
            "type": "string",
            "description": "Open-weight models served by Groq through this Actor's own key. No API key needed. With your own key below, \"Custom model\" picks any model of your provider.",
            "default": "openai/gpt-oss-20b"
          },
          "systemPrompt": {
            "title": "System prompt",
            "type": "string",
            "description": "Optional instructions for every row, for example tone, language or rules. The prompt above is still sent per row."
          },
          "jsonSchema": {
            "title": "JSON schema",
            "type": "object",
            "description": "Optional. A JSON schema of an object that every answer must follow, for example {\"type\": \"object\", \"properties\": {\"score\": {\"type\": \"number\"}, \"tags\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}}}}. Overrides \"Output fields\". All properties become required."
          },
          "maxRows": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper limit of rows per run, from the list and the dataset together. Set \"Maximum cost per run\" in Run options to cap spend.",
            "default": 10000
          },
          "reasoningEffort": {
            "title": "Reasoning effort",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "How long GPT-OSS models think before answering. Thinking tokens count as output tokens.",
            "default": "low"
          },
          "temperature": {
            "title": "Temperature",
            "minimum": 0,
            "maximum": 2,
            "type": "number",
            "description": "0 gives the most consistent answers, which suits classification and extraction. Raise it for creative text.",
            "default": 0
          },
          "maxOutputTokens": {
            "title": "Max output tokens per row",
            "minimum": 16,
            "maximum": 16384,
            "type": "integer",
            "description": "Upper limit for the answer, thinking included. Answers cut at the limit are reported with finishReason \"length\".",
            "default": 1024
          },
          "includeInput": {
            "title": "Include the input row",
            "type": "boolean",
            "description": "Copy each input row into \"input\" of its result, so results can be joined back without the row index.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel rows",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many rows run at the same time. Results are still saved in input order.",
            "default": 10
          },
          "apiKey": {
            "title": "Your own API key",
            "type": "string",
            "description": "Optional. Leave empty to use the built-in models, which share a daily limit across all users. For big lists paste your own key: a free Groq key takes one minute at <a href='https://console.groq.com/keys'>console.groq.com/keys</a>. Stored encrypted."
          },
          "apiBaseUrl": {
            "title": "API base URL",
            "type": "string",
            "description": "OpenAI compatible endpoint of your provider. Empty means Groq. Examples: https://api.openai.com/v1, https://openrouter.ai/api/v1. Only used with your own key."
          },
          "customModel": {
            "title": "Custom model",
            "type": "string",
            "description": "Any model name of your provider, for example gpt-4o-mini or anthropic/claude-sonnet-4.5 on OpenRouter. Only used with your own key."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}