Summarize, classify, extract JSON and answer questions on web pages, PDFs, Office files, images and any Apify dataset with OpenAI GPT. Several tasks per run, quotes checked against your input, AI-free data cleaning and dedupe, Flex and Batch for half-price runs. Not affiliated with OpenAI.
Unreleased — data tasks billed pro rata (owner decision 2026-11-11; LOCAL only)
Data tasks: $0.20 per 1,000 rows, billed per row: 10 rows = $0.002 (2,500 rows = $0.50). New per-row event
data-row ("Data row processed", $0.0002 on every tier) replaces the ceil-per-1,000 data-rows-1k draft (never
live). Same rules: once per run on the DISTINCT rows the data tasks read, ONE Actor.charge(count=N) call (apify SDK
3.4.1: no per-call cap, N <= the 100,000-row cap, so no chunking), reserved against "Max total charge" before any
task: if only part of the rows fit, the run stops cleanly (maxTotalChargeUsd, nothing charged, the data tasks do
not run on a subset). Never charged on a refused / empty / failed load, never twice on resume, only when data-row
is live in the run's pricing. RUN_SUMMARY dataRows adds priceUsdPerRow and estimatedChargeUsd
(billing.data_row_price, data_rows_charge_usd; exact Decimal room check). models.json, docs/LAUNCH_EVENTS.json,
input form text, README, PRICING_V2 (new margin table: break-even at 3–4 rows, ≥ 30 % from 4–6 rows, 99.3 %+ from
1,000 rows), STORE, OWNER, USER_GUIDE, FEATURES, MIGRATION updated.
Managed refusal code renamed to managedNotAvailable (same as the Claude and Gemini Actors), message
"apiKeyMode "managed": managed mode is not available yet. ...".
Unreleased — v2 launch decisions (2026-11-11, owner; LOCAL only: not pushed, no Apify run, no real API call, no price set on Apify)
Data-tasks event added to the code (since replaced by the per-row data-row, see above): AI-free data tasks
(profile, clean, dedupe, cluster, trends, anomalies, align, dataIntelligence) are charged once per run (not
per task; a dataset read by several data tasks counts once). Charged after the rows are loaded and accepted, before
any task runs (never for a refused run or a dataset that failed to load); "Max total charge" too low → the run stops
before any task (maxTotalChargeUsd, FAILED, nothing charged); resume never charges twice (checkpoint key
_run/data-rows). Rows show it in billing, RUN_SUMMARY in dataRows (src/intel.pycharge_data_rows,
data_rows_processed; src/billing.pydata_row_events).
batch-status-check ($0.0013) ON: one event on a collect run that finds the batch NOT ready, once per run state
(src/batch.pycharge_status_check); a ready batch never pays it. models.json billing.batchStatusCheck.enabled.
Safety: both events are charged ONLY when present in the run's live pricing, read once per run
(Billing.paid_event_status, same rule as Marjane's page_billing.py); absent → counted, not charged, one log line.
Managed mode not offered at launch: apiKeyMode removed from the input form (still read, no "unknown field"
warning); "managed" → "managed mode is not available yet", managedNotAvailable, FAILED, nothing charged
(models.json managedMode.available = false, config.managed_mode_available, main.run). Code kept and still tested
(conftest switch; tests marked launch_defaults use the shipped OFF switch).
Compute rules (PRICING_V2.md §5.C): C2 Flex concurrency raised to >= 3 (warning); C3 deep / expert passes run in
parallel (TaskRunner.run_passes; the very first call of a run stays alone); C4 Flex output capped at 16,000 tokens
at deep / expert (warning). C1 not applied: default memory stays 512 MB (data tasks need it).
.actor/actor.prod.json (production identity for the parent: ai-document-web-analyzer-openai, version 2.0),
docs/LAUNCH_EVENTS.json (the 2 events to create, tiered prices), README (prices, managed "coming later", "not
measured with real API calls yet", images to host), MIGRATION.md (rollback = build 0.1.6, backup
v1.0.3-datasets). Tests 398 → 436 (tests/test_launch.py + 2 updated tests).
Unreleased — 100,000 rows for the data tasks (2026-11-11, owner decision "A"; local only, not pushed or published, no price / event change)
New optional input maxDatasetItems (1 to 100,000): rows read per dataset by the AI-free data tasks only
(profile, clean, dedupe, cluster, trends, anomalies, align). Empty = unchanged behaviour (dataset rows count against
maxItems). config.MAX_DATA_ROWS (= intelcore.limits.MAX_DATA_ROWS), config.AI_MAX_DATASET_ITEMS = 10,000.
AI tasks keep their limits: only the first dataset rows that fit in maxItems (<= 10,000 in all) become AI items;
dataset analyze (incl. Code Interpreter upload) reads the same AI rows (TaskRunner.ai_records), never the
100,000; every v1 input reads at most maxItems rows (warning when maxDatasetItems is higher). A run without a
data task reads no more dataset rows than before.
Streamed, memory-bounded loading: main.load_dataset_records reads pages of 1,000 rows
(intelcore.loaders.iter_pages + dataset_fetcher, Dataset.get_data(offset, limit)); each row kept once (AI rows
= list slices of the same rows, intel.LoadedRows). A dataset whose count is unknown at start-up is read up to one
row above what the run memory allows (intel.rows_allowed) and the run is then refused right after loading (same
FAILED stop, nothing charged; new refuse callback of run_tasks). data_rows_to_read counts
min(itemCount, maxDatasetItems) per dataset when set. CSV documents stay AI text inputs (no row parsing).
Input schema: maxDatasetItems (max 100,000) with the memory table, the AI limit and the $0.05 per 1,000 rows
proposal marked "proposed, not yet active". README "Data tasks: rows and memory" (which limit for which task), input
table row; README extraction note: the exact-text rule costs about +9 % AI tokens vs v1 (accuracy, not a saving).
Measured (LOCAL, bench/data_rows_memory.py, synthetic rows, whole-process peak, no AI call): all data tasks on
10,000 / 50,000 / 100,000 rows → 146 / 551 / 1,037 MB peak (512 MB / 1 GB / 4 GB asked by the rule); profile alone
on 100,000 rows 158 MB. Billing unchanged (data tasks free; same charges with or without maxDatasetItems).
Tests 369 -> 379 (tests/test_data_limits.py).
Unreleased — _raw token diet (2026-11-11, local, not pushed, no price change)
DATE_RAW_RULE + PRICE_RAW_RULE and the long *_raw schema descriptions are replaced by ONE short shared rule
(extract_norm.RAW_RULE, same text in the 3 AI Actors), placed in the developer prompt before the customer
instructions and the item, and a 5-word description per *_raw field. *_raw still only for date and price /
amount fields; conversion unchanged. tiktoken o200k_base on the 30-text benchmark: 860 -> 660 input tokens per call
(Gemini REAL re-test of the same rule: accuracy unchanged at 1.000). Prefix stays < 1,024 tokens: no prompt cache
breakpoint is set for this suite (unchanged). Tests 368 -> 369.
Unreleased (2026-11-11, local, not pushed)
intelcore 2.2.3 vendored (sync_core.ps1, -Check OK): new intelcore/limits.py (100,000-row cap, measured memory table), cluster_texts memory fix (no behaviour change).
Start-up check of the data tasks (profile, clean, dedupe, cluster, trends, anomalies, align), before any row is loaded and before any AI call (src/main.pydata_limit_problem, src/intel.pydata_rows_to_read). Rows counted = the rows the data tasks would actually read: dataset itemCount from the dataset info (Actor.apify_client.dataset(id).get(), fallback open_dataset(...).get_metadata().item_count; unknown → logged and not counted) capped by maxItems like the loader, one row per text / URL, plus each task's inline items. Memory = ACTOR_MEMORY_MBYTES (unset locally → memory rule skipped with a log line; the row cap still applies). Refused → one FAILED_INPUTS entry tooManyRows / notEnoughMemory (with rows, memoryMb, requiredMemoryMb), nothing charged, run FAILED (stopReason = the code), like invalidInput. Policy: an input error found at start-up stops the whole run, so the AI tasks of the same list do not run either (same as an invalid task list). No change to maxItems, to how many rows are read or to .actor/actor.json. New tests tests/test_data_limits.py.
README: "Data tasks: rows and memory" (memory table, cap, codes, maxItems note), two Troubleshooting rows, pricing proposal line ($0.05 per 1,000 rows, proposed, not yet active).
PRICING_V2.md: data-task event proposal changed to $0.05 per 1,000 rows on all tiers, with the measured margin table (needs owner OK).
2.0.0 final pass (2026-11-11, local, not pushed)
Price exact-text rule (owner, 2026-11-11) + intelcore 2.2.2 vendored (-Check OK): every top-level price / amount field (money name; string, number or integer type) gets a required <field>_raw in the strict schema plus a prompt rule (PRICE_RAW_RULE: copy the exact price text with currency and scale words). The Actor reads number + currency from that text with intelcore.clean.parse_number and ignores the model's own number: "€35 million" → 35000000 EUR, "2,5 Mrd €" → 2500000000 EUR, currency words (euros, US dollars, dirhams, livres…) → ISO; a range / bound ("10–20 €", "from $10") → null + raw kept + ambiguousFields; "about X" → X + <field>_approximate: true. A bare number from the model with no <field>_raw is left alone. with_raw_dates is now with_raw_copies (alias kept). Test changed on purpose: test_schema_gets_a_required_raw_companion_for_every_date_field (price fields now get _raw). Tests 348 → 357.
intelcore 2.2.1 vendored (-Check OK). dedupe task: mode = precise (default) | balanced; an old find_all input runs as balanced with a warning; another value is an input error. Rows are only marked (dedupe.mark_duplicates): every row is kept unchanged, with duplicateGroupId / duplicateOf / duplicateConfidence / duplicateReasons, in DEDUPE_<taskId>. Nothing is dropped or merged. New options sharedValueRows, addressFields, postalFields, externalIdFields; threshold is ignored with a warning. Held-out precision / recall in the README and the input form. rapidfuzz==3.14.6 is pinned: the published metrics were measured with it, and without it dedupe was 20–50x slower (10,000 rows 170 s → 6 s). Test data fixed (test_v2.py had a mojibake "Café Lumière"). src/main.py and src/prompts.py are converted to LF.
intelcore 2.1.0 vendored (sync_core.ps1, -Check OK). The checkpoint now lives under state['v2']['intelcore']. A run started on 2.0 (flat done / charged in state['v2']) resumes with namespace=None: no redo, no double charge (tested both layouts). Shared codes use the PARITY names (badRequest, unexpected...). The local asyncio.sleep workaround is removed (core resolves it at call time). modelNotFound is a stop in the core; this Actor has no model fallback, so nothing else changes.
Billing bug fixed (units == work): a single-task expert run made ONE call but charged item-analyzed ×8. A single-task expert input now runs the real expert pipeline (3 passes + verification, evidence required) for its ×8. One-call work at expert is charged the deep units ×4: compare, contradictions, dataset analyze, narrative, the single-call path, Batch rows. Task rows show itemFee.work. quick / standard / deep single-task keep their v1 units.
Batch API, submit and exit (owner rules): batchMinItems (default 20; below it, normal calls + info). The submit run sends one batch and ends (never polls). It returns a signed receipt (HMAC-SHA256, intelcore.batch.make_receipt, secret env BATCH_RECEIPT_SECRET, valid 30 days = 24 h window + 30-day output retention). The receipt comes with a ready collect input (RUN_SUMMARY.batch.collectInput, BATCH_RECEIPT record, batchSubmitted row). Without the secret, batch is refused before any call (batchUnavailable). The collect run (batchReceipt) verifies the receipt first. A forged receipt, another user, an expired receipt, a missing secret or a missing receipt each give batchNotOwned: FAILED, no call, nothing charged. Then ONE status check. Not ready: SUCCEEDED, "try later", nothing charged. Done: each item charged once through ChargeLedger (HMAC-signed ledger in a named store, persisted before each charge), so a double collect charges nothing. The analysis level is bound to the request ids, so a deep batch cannot be collected at quick. batch-status-check event behind the flag models.json billing.batchStatusCheck.enabled=false (never billed). batchMaxWaitSecs is removed (ignored with a warning). Managed mode still never uses batch.
Normalised extraction (intelcore.clean.normalize_record, src/extract_norm.py): dates, prices / amounts and phones; emails / URLs when typed. Originals are kept in <field>_raw, ambiguous values become null and are listed in ambiguousFields (a 03/04 date is never guessed). Task list: result is normalised. Single-task: result unchanged (v1), copy in resultNormalized. Exact date text (owner rule 2026-11-11): every date field gets a required <field>_raw companion in the strict schema plus a prompt rule. The model copies the date exactly as written; the Actor converts that text to ISO (dates in words too: "20 August 2026", "le 5 mars 2026"). An ambiguous date becomes null with <field>_raw kept, and the model's own reading is not trusted.
constraints.txt regenerated for the Docker image (Python 3.12, manylinux x86_64) and verified with pip install --dry-run --platform manylinux… --python-version 3.12 --only-binary=:all: (exit 0; + colorama, − packaging).
PRICING_V2.md: one "Launch price change (proposal — needs owner OK)" section with every new event and the compute-coverage check for every level (incl. Flex, concurrency 1, full output); fixes proposed, nothing applied.
README: batch submit / collect / 30-minute schedule / 256 MB, normalised extraction, units == work, Store image list (HTML comment).
Tests: 304 → 348. Changed on purpose: test_billing.py::test_managed_single_call_item_fee_never_charges_expert_x8 (was ×8), test_v2.py (itemFee.work; the old wait-and-poll batch tests replaced by tests/test_v2_final.py).
2.0.0 (2026-11-10, dev build ai-document-web-analyzer-openai-v2-dev; local, not pushed)
Default model = GPT-6 Luna (cheapest) for the standard level (was GPT-6.1 Sol); quick unchanged (Luna), deep unchanged (Astra), new expert level (Astra, xhigh effort, 3 passes + verification, evidence required, ×8 item fee). An explicit model is always honoured.
Task list (tasks): several AI and data tasks per run in priority order, on the shared core intelcore 2.0.0 (vendored in src/intelcore/) through src/adapter.py (OpenAI adapter reusing the v1 request code). New AI types qa, contradictions; compare as one row per task; analyze with "scope": "dataset".
Evidence: conclusions with sources {itemId, field, page, quote}, quotes verified against the input, confidence computed from verified quotes and pass agreement only, limitations section; verification call at deep / expert.
Data intelligence without AI calls (free in 2.0): profile, clean (records in CLEANED_<taskId>), dedupe, cluster, trends, anomalies, align; optional narrative (one billed AI call).
Flex processing (serviceTier: "flex") with automatic fallback to the standard tier on HTTP 429 "Resource Unavailable" (flexFallback); serviceTierUsed, flexFallbackCalls and the real cost per row.
Batch API on /v1/responses (useBatchApi, batchId, batchMaxWaitSecs), own key, resume by batch id without resubmitting or double charge.
Prompt cache TTL 12 h (promptCacheTtl), costBreakdown per row (input / cachedInput / cacheWrite / output / tools), 12-hour writes priced at 2.5x.
Verbosity per level (textVerbosity), dropped automatically if the model refuses it (HTTP 400, not billed).
Built-in tools behind flags (own key): webSearch ($10 / 1,000 calls, webSources kept) and codeInterpreter for exact dataset statistics (upload with 1-hour expiry, deleted at the end).
Native files: DOC (was refused), RTF, ODT, PPT, XLS sent as input_file; warning spreadsheetRowsCapped above 1,000 rows per sheet.
Structured Outputs: format, pattern, multipleOf, exclusive bounds, recursion ($ref: "#") validated; unknown formats / external or dangling $ref refused before the run.
Billing: managed mode now charges per-item fee + tokens (v1: tokens only); managed refused when item-analyzed is not priced; failed items never pay the item fee. No new event; proposals in PRICING_V2.md.
Requirements pinned exactly (requirements.txt) + constraints.txt; Dockerfile installs with the constraints.
Tests: 247 → 304 (offline). Tests changed on purpose: test_billing.py (managed item fee, model pinned to Sol for tier mechanics), test_config.py (new defaults, expert level), test_provider.py (Luna default, verbosity param), test_main.py (managed item fee in charges, item-analyzed price in fixtures, long-context test pinned to Sol). New tests/test_v2.py (51 tests) and 6 new billing tests.
Benchmark: bench/run_bench.py (v1 production vs v2, MOCK), results in docs/BENCHMARK_V1_V2.md. Real-API harness extended (cases 09-15), not run.
2026-11-10 (parity pass with the Claude and Gemini siblings; local, not pushed)
One error-code vocabulary in the three AI Actors (table: README "Troubleshooting"). RUN_SUMMARY.status is now the run's real final status, SUCCEEDED or FAILED (was FINISHED also for FAILED runs), and RUN_SUMMARY.stopReason is always set at the end: completed, nothingAnalysed, an account-stop code (invalidApiKey, apiKeyNoAccess, quotaExceeded), modelNotFound or a limit.
api_key_errors.py is identical in the three Actors except the provider constants: every stop message says what happened, why, how to fix it (provider key / billing page), and "Only Apify's run start event was charged" only when nothing was analysed before the stop.
New tests/test_parity.py: the same scenarios, codes and statuses as the sibling Actors (auth stop, quota stop, mixed inputs, nothing analysed, no key, 5xx / 429 / network / timeout, 404 model, cut answer, restart without re-charge), plus a check that the shared part of api_key_errors.py has not drifted.
Empty texts entries are now listed in FAILED_INPUTS with code emptyText (were dropped silently), like the Gemini Actor.
Renamed codes (old name -> new name; integrations that filter on the old name must be updated): serverError -> providerError (was documented in the README); itemTimeout -> timeout; HTTP 422 unprocessable -> badRequest.
Managed-mode refusals use the shared account codes: managedNotAllowed, managedDisabled, managedPricingMissing -> apiKeyNoAccess; managedKeyMissing -> invalidApiKey (FAILED_INPUTS code, stopReason and stoppedReason; the status message still says which case it is). stoppedReason of a run with nothing analysed: allInputsFailed -> nothingAnalysed.
quotaExceeded stop message now reads "OpenAI refused the request: account quota, credit or spend limit used up" (was "account quota or spend limit reached").
Run status policy (same in the Claude, OpenAI and Gemini Actors), see docs/RELIABILITY_REPORT.md:
OpenAI quota / spend limit (insufficient_quota, project_spend_limit_exceeded, ... on any HTTP status) now stops the run like a rejected key: no retry, no further call, every item not analysed in FAILED_INPUTS with code quotaExceeded and links to the billing and limits pages, FAILED via Actor.fail. Before: an error row, notProcessed for the rest, and SUCCEEDED if an earlier item had worked.
A run where no input could be analysed (all invalid URLs, refusals, cut answers, persistent 429/5xx/timeouts, cost limit too low for one call...) now ends FAILED with "Failed: no input could be analysed (...)". Before: only when every failure was a provider error; all-input-error runs ended SUCCEEDED.
Managed-mode refusals (managedNotAllowed, managedKeyMissing, managedDisabled, managedPricingMissing) now end FAILED with every source listed in FAILED_INPUTS (invalidApiKey for the missing managed key). Before: SUCCEEDED with an empty dataset.
"Exact token count" in estimate-only mode with a rejected key now stops the run like an analysis call (before: a warning per item).
The stop message no longer says "Only Apify's run start event was charged" when items had been analysed (and billed) before the stop.
Retry-After above 60 s is honoured by not retrying (item error rateLimited with the requested wait) instead of retrying after 60 s.
Own key: tokens of a streamed attempt that broke and was retried are now added to the item's reported usage (OpenAI bills them).
Migration / restart: finished items are remembered in the persisted state (done, totals, billed events, compare profiles, account stop). A restarted run no longer re-sends or re-charges them; RUN_SUMMARY.resumedAfterRestart.
Key non-disclosure: the run's real key values (input apiKey, MANAGED_OPENAI_API_KEY, local OPENAI_API_KEY) are redacted literally from every message, even when they do not look like an sk- key (before, an odd value echoed by a 400/422 error text or a crash traceback was kept). Spaces and wrapping quotes pasted around the key are removed.
Tests: 186 → 228 (new tests/test_reliability.py, 42 tests; 2 tests in test_main.py updated to the new policy).
2026-11-10 (rejected API key: same behaviour in the Claude, OpenAI and Gemini Actors; local, not pushed)
A rejected key (HTTP 401 / 403) is a configuration error of the run: it stops after the FIRST such error (no further AI call; until the key has answered once, items are sent one at a time so a bad key costs one request whatever concurrency), every item not analysed goes to FAILED_INPUTS with one shared code invalidApiKey (or apiKeyNoAccess for 403 / permission) and a fix hint (where to create/check the key, the "OpenAI API key" field, nothing billed), RUN_SUMMARY gets stoppedReason + stoppedHint + apiKeyError, no dataset row, and the run ends FAILED via Actor.fail with the status "Stopped: OpenAI rejected the API key — nothing was analysed or billed. ..." (schedules and integrations notice a broken key). Only Apify's run start event is charged.
Before: run FAILED with "OpenAI refused the API key (401)...", an error row in the dataset, codes authError/permissionDenied + notProcessed.
Unchanged: 429 and 5xx are retried and never treated as key errors; a missing key still gives the successful estimate-only demo run.
Shared wording in src/api_key_errors.py (identical in the three Actors except the provider constants). New tests: 401, 403, stop after the first call (concurrency 1 and 5), 429 not a key error.
2026-11-10 (compare order; local, not pushed)
Fix: task compare sent the profiles and listed comparedSources in the order the items finished (with concurrency > 1 the second source could come first). They now follow the input order. The Done message already counted "N item(s) analysed + 1 comparison".
2026-11-09 (empty-input demo + own-key fee by level; local, not pushed)
Fixed
A run without any source (no startUrls/texts/documentUrls/imageUrls/mediaUrls/datasetIds), e.g. Apify's automatic Store test with {} or defaults only, no longer ends with "Nothing to analyse": it uses the demo sources = the prefill of those fields in .actor/input_schema.json (read at runtime; src/demo.py keeps a fallback checked against the schema by a test), logs "No source given: running the demo input" and continues. Without a key it is an estimate-only run: SUCCEEDED, 1 row, nothing billed. Runs with explicit sources are unchanged.
Changed (owner decision 2026-11-09)
Own-key fee scales with the analysis level: one event item-analyzed ($0.0015) charged with count 1 (quick), 2 (standard), 4 (deep) per analysed item = $0.0015 / $0.003 / $0.006. Never charged for errors, refusals, estimates or skipped items. README launch text ("free ... no fee of its own") replaced; PRICING.md updated.
0.3 — 2026-11-09 (local build, not published; no price change)
Managed mode is refused before any AI call (managedPricingMissing) when the run is not pay-per-event, or when the input-/output-tokens-1k-<tier> events of the chosen model are missing from the run's live pricing info (ChargingManager.get_pricing_info()) or priced at 0. Proposed prices no longer let a call through: a managed event without a live price makes the worst case infinite.
New per-model managedEnabled flag in models.json (missing = off). A disabled model is refused in managed mode (managedDisabled) without an Apify price change.
Answers are streamed (responses.create(stream=True)). While a stream runs, the Actor keeps a live token count: the counted input plus the text received so far. An item timeout or a dropped stream therefore still leaves a chargeable lower bound. In managed mode a stream that had started is not retried; its tokens are charged once with the failed item.
Timeouts come from the output budget: itemTimeoutSecs 0 (new default) = max(300, ceil(maxOutput / 30 tok/s) + 60). With the managed key a shorter value is raised to that minimum; with your own key you get a warning. The OpenAI client read timeout follows the same figure. Schema: itemTimeoutSecs now 0–7200, default 0.
Managed calls are counted first with OpenAI's documented POST /v1/responses/input_tokens. If the count fails, a conservative local count is used: ASCII/3 + 1 token per non-ASCII character, ×1.25. The limit per call is min(maxInputTokensPerItem, 272K − 2K), so a managed call never crosses the long-context step. When the count is above the limit, the content is split using the counted size: chunks are halved, or the final notes are trimmed.
Estimate-only + managed key for a user without a paid plan: the managed key is dropped, so no provider is built and no token count is made. exactTokenCount is skipped with a warning.
Actor.charge results are read: charged_count goes into billedEvents and RUN_SUMMARY, and any shortfall goes into unchargedEvents. A partial charge or event_charge_limit_reached stops further AI calls (maxTotalChargeUsd). A failed charge is logged at warning level and, in managed mode, stops further calls (chargeFailed).
Every uncaught exception is caught at the top level. Its traceback is logged redacted, and the run fails without re-raising, so the SDK's raw traceback is never printed. An unknown input field that holds a key-looking value triggers a warning that names the field but does not echo the value.
Tests
175 tests, up from 152. New tests cover:
the ChargingManager path of remaining_charge_usd(): finite limit, infinite limit, manager failure falling back to the env value;
live prices only;
charge failure, partial charge and limit-reached, at unit level and in full runs (the fake Actor reports the limit);
missing-event and non-PPE refusals, managedDisabled;
estimate-only with the managed key for a free user;
counted-size splitting with CJK text, chunk halving and notes trimming;
timeout and broken-stream charging, no retry in managed mode, retry with your own key;
stream error and cut events;
traceback redaction, the key-looking unknown field, derived timeouts.
test_event_prices_keep_margin now compares against hand-computed figures. The kit-copy test checks a SHA-256 stored in the test and no longer reads a file outside the repository.
0.2 — 2026-11-09 (local build, not published)
Security
DNS rebinding closed: each host is resolved once (cached per run), every answer must be public, and every connection (first URL, robots.txt, each redirect) is pinned to that exact IP (PinnedIPTransport: URL rewritten to the IP, original host kept in the Host header and as the httpx/httpcore sni_hostname extension, so TLS SNI and certificate hostname verification still use the real name; TLS verification unchanged). Keep-alive off so a TLS connection is never reused across host names; proxies from the environment ignored (trust_env=False). Same blockedAddress code, redirect and size caps. Tests run the real httpx/httpcore stack on a fake network backend.
0.1 — 2026-11-09 (local build, not published)
Added
First version: web pages, texts, documents (PDF, DOCX, PPTX, XLSX, TXT, MD, CSV, JSON), images and Apify datasets analysed with OpenAI GPT through the Responses API and strict Structured Outputs.
Tasks: summarize, extract (customer JSON Schema checked against strict-mode rules), classify, analyze, detect_key_info, compare (with a comparison row), report, custom.
Levels quick / standard / deep → gpt-6-luna / gpt-6.1-sol / gpt-6-astra, with model and effort overrides. Models and prices live in src/models.json.
Cost guards, estimate-only mode (optional exact count through responses.input_tokens.count), chunk map-reduce for long content (never silent truncation), long-context pricing above 272K input tokens.
Key modes: own key (item-analyzed event) and managed (input/output-tokens-1k-<tier> events, paid Apify users only, server-side caps, max-charge check before each call).
Retries with back-off on 429/5xx/timeouts that respect Retry-After. Quota, auth and model errors stop the run. Refusals and incomplete answers are recorded with their tokens.
SSRF guard: only http/https. Every hop (first URL and each redirect, followed by hand, max 5) must resolve to public addresses only. Loopback, private, link-local/metadata (169.254.169.254), unique-local IPv6, unspecified, localhost and *.internal are refused with code blockedAddress. Responses are size-capped.
gpt-6.1-terra has its own billing tier mid (managed events input/output-tokens-1k-mid).
MOCK_PROVIDER=1 canned answers for local runs only (refused when APIFY_IS_AT_HOME=1).