8000 Prodia Labs, Inc. · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
@prodialabs

Prodia Labs, Inc.

AI Inference API. Integrate in 5 minutes.

Welcome to Prodia

We make a fast simple API for AI image generation.

const { createProdia } = require("prodia/v2");
const fs = require("node:fs/promises"); // add this to imports at the top

const prodia = createProdia({
  token: process.env.PRODIA_TOKEN, // get it from environment
});

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

  const image = await job.arrayBuffer();

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

For more information check out our API docs.

Pinned Loading

  1. prodia-js prodia-js Public

    Official TypeScript library for Prodia's AI inference API.

    TypeScript 24 12

Repositories

Showing 10 of 18 repositories

Top languages

Loading…

Most used topics

Loading…

0