Skip to content

CharlesCreativeContent/runware-pokemon-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Runware Pokémon Generator - Watch Video

Runware

Generate Pokémon-inspired images and videos using the Runware SDK with a lightweight Express.js server. Runware SDK is used to run AI image generation with the Runware API, powered by the RunWare inference platform. It also allows the use of an existing library of more than 150k models, including any model or LoRA from the CivitAI gallery. The API also supports upscaling, background removal, inpainting, outpainting, ControlNets, and more. Visit the Runware site for detailed feature breakdown.


Get API access

For an API Key and free trial credits, create a free account with Runware

Deploy with Vercel

Click below to clone and deploy instantly to Vercel:

Deploy with Vercel

Installation (Local Development)

Clone the repo:

git clone https://github.com/CharlesCreativeContent/runware-pokemon-generator.git
cd runware-pokemon-generator

Install Runware SDK and packages:

npm install

Add API-Key to environment variables:

export RUNWARE_API_KEY="your-runware-api-key"

Run local server:

node server.js

Features (in app /runware.js file)

  • Image and Video Generation using RunwareSDK
import { Runware } from "@runware/sdk-js";

const runware = new Runware({
  apiKey: process.env.RUNWARE_API_KEY,
  timeout: 600000, // 10 minutes for complex video generation
  maxRetries: 30,
  retryDelay: 2000,
});
  • Image Generation → POST /generate-image

    • Returns both the raw image URL and a background-removed version.
const images = await runware.requestImages({
      positivePrompt: "Pixel Art Pokemon Generator: "+prompt,
      model: "rundiffusion:130@100",
      numberResults: 1,
      outputFormat: "JPEG",
      width: 1024,
      height: 1024,
      steps: 33,
      CFGScale: 3,
      scheduler: "Euler Beta",
      includeCost: true,
      outputType: ["URL"],
      outputQuality: 95,
    });
    
    const backgroundRemoved = await runware.removeImageBackground({
      inputImage: images[0].imageURL,
    });
  • Video Generation → POST /generate-video

    • Uses Google’s veo3 model to animate your Pokémon image with audio and prompt enhancement.
const payload = {
      duration: 8,
      fps: 24,
      model: "google:3@1", // Google Veo3
      outputFormat: "mp4",
      height: 1280,
      width: 720,
      numberResults: 1,
      includeCost: true,
      outputQuality: 95,
      providerSettings: {
        google: {
          generateAudio: true,
          enhancePrompt: true,
        },
      },
      frameImages: [{ inputImage: `${imageURL}`, frame: "first" }],
      positivePrompt: prompt,
    };
    // This call handles all async complexity internally
    const response = await runware.videoInference(payload);

More Projects

Elastic Path API
Elastic Path API
CoinGecko-Thesys-MCP
CoinGecko-Thesys-MCP
Travel Web-Application
Portfolio

About

Generates using RunwareSDK, a monster image (bytedance) and idle animation video (google veo3) for a pokedex entry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published