Deploy Wiro AI Next.js Starter
Run 1,000+ Wiro AI models in Next.js: playground, image, video, audio, chat
Wiro-Next-Starter
Just deployed
Deploy and Host Wiro AI Next.js Starter on Railway
Wiro AI Next.js Starter is an open-source Next.js app for the Wiro AI API: a Playground for any of the 1,000+ models, image, video and audio tools, a streaming LLM chat built with the Vercel AI SDK, and a history of your runs. Route handlers make every call to Wiro AI, so the API key stays on the server.
About Hosting Wiro AI Next.js Starter
The app is a standard Next.js 16 server. Railway builds it with Railpack, which runs npm install and npm run build, then starts it with npm run start on the port Railway assigns. The server needs one variable, WIRO_API_KEY, and makes outbound HTTPS calls to api.wiro.ai and llm.wiro.ai. It keeps no database and no files: generated images and videos are served from the Wiro AI CDN.
Common Use Cases
- A starting point for a product that generates or edits images, video, speech or music
- An internal tool for trying models side by side, with the price of each run shown before it starts
- Reference code for the Wiro AI catalog, the Run API, file uploads and the Wiro LLM gateway in Next.js route handlers
Dependencies for Wiro AI Next.js Starter Hosting
- A Wiro AI project API key from wiro.ai/panel/project/new
- Node.js 22 or later, which Railpack reads from
package.json
Deployment Dependencies
- Source code on GitHub
- Wiro AI docs: Run a model, Tasks and the LLM gateway
@wiro-ai/wiro-llm, the Wiro AI provider for the AI SDK
Implementation Details
- Playground: browse the catalog by category or search it, and run any model with a form built from its inputs.
- Image: generate, edit with a prompt, upscale and remove backgrounds. Video: text and image to video with each stage of the task shown. Audio: speech with the model's voices, music and transcription.
- Chat with every model on the Wiro LLM gateway, with the cost of each reply. History keeps runs in the browser.
- The server checks each run against the model's inputs and hides uncensored, NSFW and live models.
- Set
BASIC_AUTH_PASSWORDto put the app behind a password, andMAX_RUN_PRICEto cap the price of one run.
Each run is billed to your Wiro AI account at the model's price.
Why Deploy Wiro AI Next.js Starter on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Wiro AI Next.js Starter on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
Wiro-Next-Starter
wiroai/Wiro-Next-StarterWIRO_API_KEY
API key of your Wiro AI project. Create a project at https://wiro.ai/panel/project/new

