AI Detector - the Original AI Checker for ChatGPT & More
This endpoint takes in file(s) input and returns the model's result. See the documentation
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
This endpoint takes in a single text input and runs AI detection. The document will be truncated to 50,000 characters. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gptzero_detect_ai: {
type: "app",
app: "gptzero_detect_ai",
}
},
async run({steps, $}) {
const data = {
"document": `Pipedream is the fastest way to automate any process that connects APIs. Build and run workflows with code-level control when you need it, and no code when you don't.`,
"multilingual": `false`,
}
return await axios($, {
method: "post",
url: `https://api.gptzero.me/v2/predict/text`,
headers: {
"Accept": `application/json`,
"Content-Type": `application/json`,
"x-api-key": `${this.gptzero_detect_ai.$auth.api_key}`,
},
data,
})
},
})
Develop, run and deploy your Node.js code in Pipedream workflows, using it between no-code steps, with connected accounts, or integrate Data Stores and File Stores.
This includes installing NPM packages, within your code without having to manage a package.json
file or running npm install
.
Below is an example of installing the axios
package in a Pipedream Node.js code step. Pipedream imports the axios
package, performs the API request, and shares the response with subsequent workflow steps:
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})