Runware Pokémon Generator - Watch Video
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.
For an API Key and free trial credits, create a free account with Runware
Click below to clone and deploy instantly to Vercel:
Clone the repo:
git clone https://github.com/CharlesCreativeContent/runware-pokemon-generator.git
cd runware-pokemon-generatorInstall Runware SDK and packages:
npm installAdd API-Key to environment variables:
export RUNWARE_API_KEY="your-runware-api-key"Run local server:
node server.js- 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);
Elastic Path API
|
CoinGecko-Thesys-MCP
|
Travel Web-Application
|
