1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "text": "Artificial intelligence has fundamentally transformed the landscape of modern education. In today's fast-paced world, students are increasingly relying on large language models to assist with research, drafting, and editing their academic work. It is important to note that these tools offer significant benefits, including personalized learning experiences and instant access to information. Moreover, educators must navigate the complexities of integrating technology into traditional curricula while maintaining academic integrity. The ever-evolving nature of generative AI presents both opportunities and challenges for institutions worldwide. Furthermore, the ability to analyze vast datasets enables these systems to generate coherent and contextually appropriate responses. In conclusion, stakeholders must collaborate to develop robust frameworks that ensure responsible usage while unlocking the power of these transformative technologies."
12};
13
14
15const run = await client.actor("dev00/humanizerx-ai-detector").call(input);
16
17
18console.log('Results from dataset');
19console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
20const { items } = await client.dataset(run.defaultDatasetId).listItems();
21items.forEach((item) => {
22 console.dir(item);
23});
24
25