All API endpoints are authenticated using API Keys. You can create one in the API keys section of the Itzam dashboard.

Now, you can use the API key to authenticate your requests.

In the API:

Bash
curl -X POST \
  -H "Api-Key: YOUR_API_KEY" \
  -d '{"input": "Hello, world!", "workflowSlug": "my_great_workflow"}' \
  https://itz.am/api/v1/generate/text

In the SDKs:

TypeScript
import Itzam from "itzam";

const itzam = new Itzam("YOUR_API_KEY");

const response = await itzam.generateText({
  input: "Hello, world!",
  workflowSlug: "my_great_workflow",
});