Skip to content

Official TypeScript library for Prodia's AI inference API.

Notifications You must be signed in to change notification settings

Tetokong/prodia-js

 
 

Repository files navigation

Prodia

npm version Validate Formatting & Types

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

API

createProdia(opts) => Prodia

Create a new Prodia object.

opts

  • apiKey (string)

Your API key from the Prodia dashboard.

  • base (string)

Optional: an enterprise-specific Prodia island.

Prodia

generate( params ) => ProdiaJob

Create a new text to image job.

Supports all parameters listed in the documentation.

transform( params ) => ProdiaJob

Create a new image to image job.

Supports all parameters listed in the documentation.

wait( ProdiaJob ) => { status, imageUrl }

Returns once as job has completed.

About

Official TypeScript library for Prodia's AI inference API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%