Skip to content
Projects

prodialabs/prodia-js has 29 GitHub stars and 11 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-14 09:15 UTC. Last push 2026-08-31.

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

About

Official TypeScript library for Prodia's AI inference API.

AI

README.md

Original

Prodia

npm version Validate Formatting & Types

Official TypeScript library for Prodia's AI inference API.

Usage

[!NOTE] Requires Node >= 18 or Deno >= 2

npm install prodia --save

v2

As of October 2024, we require users to have a Pro+ or Enterprise subscription with us to use our v2 API. This is to ensure quality of service. However, we expect to revisit this by EOY and make it available more broadly.

import fs from "node:fs/promises";
import { createProdia } from "prodia/v2"; // v2 :)

const prodia = createProdia({
	token: process.env.PRODIA_TOKEN, // grab a token from https://app.prodia.com/api
});

(async () => {
	// run a flux dev generation
	const job = await prodia.job({
		type: "inference.flux.dev.txt2img.v1",
		config: {
			prompt: "puppies in a cloud, 4k",
			steps: 25,
		},
	});

	const image = await job.arrayBuffer();

	await fs.writeFile("puppies.jpg", new Uint8Array(image));

	// open puppies.jpg
})();

v1 Legacy API

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 :)
})();

help

Email us at [email protected].

Explore related projects