What do you want to automate

with API Ninjas and AI/ML API?

Prompt, edit and deploy AI agents that connect to API Ninjas, AI/ML API and 2,500+ other apps in seconds.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Integrate the API Ninjas API with the AI/ML API API
Setup the API Ninjas API trigger to run a workflow which integrates with the AI/ML API API. Pipedream's integration platform allows you to integrate API Ninjas and AI/ML API remarkably fast. Free for developers.

Overview of API Ninjas

API Ninjas offers a wide-ranging collection of APIs that allow you to tap into various functionalities, like data retrieval, calculations, and text processing. On Pipedream, you can harness these capabilities to automate workflows, enrich data, and integrate with other services. The platform provides a serverless environment to trigger actions based on events, schedule tasks, and execute complex logic with minimal overhead.

Connect API Ninjas

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    api_ninjas: {
      type: "app",
      app: "api_ninjas",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.api-ninjas.com/v1/trivia`,
      headers: {
        "X-Api-Key": `${this.api_ninjas.$auth.api_key}`,
      },
    })
  },
})

Connect AI/ML API

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    ai_ml_api: {
      type: "app",
      app: "ai_ml_api",
    }
  },
  async run({steps, $}) {
    const data = {
          "model": "mistralai/Mistral-7B-v0.1",
          "messages":  [
            {
                "role": "system",
                "content": "You are an AI assistant who knows everything.",
            },
            {
                "role": "user",
                "content": "Tell me, why is the sky blue?"
            },
        ]
    }
    return await axios($, {
      method: "POST",
      url: `https://api.aimlapi.com/chat/completions`,
      headers: {
        Authorization: `Bearer ${this.ai_ml_api.$auth.api_key}`,
      },
      data,
    })
  },
})

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo