Official TypeScript library for Prodia's AI inference API.
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 :)
})();
Create a new Prodia object.
apiKey
(string
)
Your API key from the Prodia dashboard.
base
(string
)
Optional: an enterprise-specific Prodia island.
Create a new text to image job.
Supports all parameters listed in the documentation.
Create a new image to image job.
Supports all parameters listed in the documentation.
Returns once as job has completed.