1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "texts": ["Artificial intelligence has transformed the way organizations approach content creation, enabling teams to produce high-quality written materials at unprecedented speed and scale. By leveraging large language models, businesses can generate drafts, summarize research, and personalize communications while maintaining a consistent brand voice across every customer touchpoint. This technological shift requires robust governance, including human review, disclosure policies, and authenticity checks, so stakeholders can trust the information they consume."],
10 "maxTexts": 1,
11 "maxCharacters": 4000,
12 "includeSentences": True,
13 "includeTextPreview": True,
14 "aiThreshold": 80,
15 "humanThreshold": 20,
16 "maxConcurrency": 2,
17}
18
19
20run = client.actor("khadinakbar/ai-content-detector").call(run_input=run_input)
21
22
23print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
24for item in client.dataset(run.default_dataset_id).iterate_items():
25 print(item)
26
27