Official TypeScript library for Prodia's AI inference API.
Usage
npm install prodia --save
import { createProdia } from "prodia";
const prodia = createProdia({
apiKey: "...",
});
(async () => {
const job = await prodia.generate({
prompt: "puppies in a cloud, 4k",
});
const { imageUrl, status } = await prodia.wait(job);
// check status and view your image :)
})();