AI Translator, Summarizer & Rewriter avatar

AI Translator, Summarizer & Rewriter

Pricing

Pay per event

Go to Apify Store
AI Translator, Summarizer & Rewriter

AI Translator, Summarizer & Rewriter

Transform any URL or text — translate, summarize, rewrite, extract key points, or TL;DR. URL inputs auto-extract to clean text. BYO model via OpenRouter. Token + cost accounting in every dataset row. Local cache for repeat inputs.

Pricing

Pay per event

Rating

0.0

(0)

Developer

BowTiedRaccoon

BowTiedRaccoon

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

7 days ago

Last modified

Categories

Share

Transform any URL or raw text through five AI-powered modes: translate, summarize, rewrite, extract-key-points, and tldr. URL inputs are automatically fetched and extracted to clean text before processing. Every dataset row includes token counts and vendor cost, so you know exactly what each operation cost.

What it does

  • Translate — Render text in any language. Provide an ISO 639-1 code or a language name.
  • Summarize — Condense content in formal, casual, technical, marketing, or SEO style.
  • Rewrite — Reword content in a chosen style while preserving length and meaning.
  • Extract key points — Produce a bulleted list of the core ideas.
  • TL;DR — One-paragraph summary of any length content.

URL inputs go through a full fetch + article extraction pipeline to strip navigation, ads, and boilerplate before the AI call. Raw text inputs are processed directly.

Input

FieldRequiredDescription
inputsYesArray of objects. Each must have url or text (or both). Optional language field for source language hint.
openrouterApiKeyYesYour OpenRouter API key (sk-or-...). Get a free key at openrouter.ai.
modeNotranslate (default), summarize, rewrite, extract-key-points, tldr.
targetLanguageRequired when mode=translateISO 639-1 code (e.g. es) or language name (e.g. French).
styleNoformal (default), casual, technical, marketing, seo. Applies to summarize and rewrite modes.
modelNoOpenRouter model ID. Default: openai/gpt-4o-mini. Options: openai/gpt-4o, anthropic/claude-3.5-haiku, anthropic/claude-3.5-sonnet, google/gemini-flash-1.5, mistralai/mistral-small.
maxOutputTokensNoMaximum response length per input. Default: 1024.
useCacheNoCache results by input hash (7-day TTL). Identical inputs return instantly without consuming tokens. Default: true.
maxItemsNoCap on number of inputs to process. Default: 15.

Example input

{
"inputs": [
{ "url": "https://example.com/article" },
{ "text": "The quick brown fox jumps over the lazy dog." }
],
"mode": "translate",
"targetLanguage": "es",
"model": "openai/gpt-4o-mini",
"openrouterApiKey": "sk-or-your-key-here"
}

Output

Each input item produces one dataset row:

FieldTypeDescription
inputobjectOriginal input item
modestringOperation mode used
modelstringOpenRouter model ID
outputstringTransformed content
inputTokensnumberTokens consumed by the prompt
outputTokensnumberTokens consumed by the completion
costUsdnumberVendor cost in USD for this record
cachedbooleanTrue when served from local cache
extractedFromUrlbooleanTrue when a URL was fetched and extracted
sourceLanguagestringSource language
targetLanguagestringTarget language (translate mode only)
statusstringsuccess or error
errorMsgstringError detail on failure

Example output row

{
"input": { "url": "https://example.com/article" },
"mode": "translate",
"model": "openai/gpt-4o-mini",
"output": "El rápido zorro marrón salta sobre el perro perezoso.",
"inputTokens": 312,
"outputTokens": 298,
"costUsd": 0.00000918,
"cached": false,
"extractedFromUrl": true,
"sourceLanguage": "en",
"targetLanguage": "es",
"status": "success",
"errorMsg": null
}

OpenRouter API key

This actor calls the OpenRouter API using your own key. OpenRouter provides a unified gateway to 200+ LLM models from OpenAI, Anthropic, Google, Mistral, and others.

  1. Sign up for free at openrouter.ai
  2. Create an API key in your dashboard
  3. Add credits (pay-as-you-go starting from a few dollars)
  4. Paste the key into the openrouterApiKey field

The actor passes your key directly to the OpenRouter API. No keys are stored. Costs are charged to your OpenRouter account balance.

Model selection

ModelBest forCost
openai/gpt-4o-miniFast, cheap, good quality (default)Very low
google/gemini-flash-1.5Fastest optionVery low
mistralai/mistral-smallEuropean languagesLow
anthropic/claude-3.5-haikuNuanced rewritesLow
openai/gpt-4oHighest qualityMedium
anthropic/claude-3.5-sonnetComplex contentMedium

For most translation and summarization tasks, gpt-4o-mini gives excellent results at minimal cost.

Caching

When useCache is enabled (default), results are cached using a SHA-256 hash of the input text, mode, target language, model, and style. A cache hit returns the stored output immediately with zero LLM calls. The cache TTL is 7 days.

Concurrency and rate limits

The actor processes up to 10 inputs in parallel. On rate limit responses (HTTP 429), the actor backs off exponentially with jitter and retries up to 5 times before recording an error for that item. Remaining inputs continue processing.

Error handling

Failed inputs produce a dataset row with status: "error" and an errorMsg. The actor continues processing remaining inputs. Common error causes:

  • Invalid or missing API key
  • URL unreachable or extraction returned empty content
  • OpenRouter model quota exceeded
  • targetLanguage missing when mode is translate