← ClaudeAtlas

wiro-nextjslisted

Build Next.js App Router features on Wiro AI, the API for 1,000+ image, video, speech, music and LLM models. Keeps the API key in route handlers and server actions, finds models in the Wiro catalog and shows the price before a run, starts tasks on the server and follows them by polling or a webhook, uploads input files, and streams chat from the Wiro LLM gateway with the AI SDK. Use when adding Wiro AI to a Next.js app, or when working in the wiroai/Wiro-Next-Starter repository.
wiroai/Wiro-Next-Starter · ★ 0 · Web & Frontend · score 72
Install: claude install-skill wiroai/Wiro-Next-Starter
# Wiro AI in Next.js Wiro AI runs 1,000+ models through one API. A run is a task: start it with `POST /Run/{owner}/{model}`, follow it with `POST /Task/Detail`, and read the files from the finished task. Chat models also answer through the OpenAI-compatible LLM gateway at `https://llm.wiro.ai/v1`. Only successful runs are billed, from the prepaid wallet of the project that owns the key. This skill is the Next.js App Router layer. For every Run API detail (all statuses, error codes, workflows, the MCP server), use the `wiro-ai` skill from wiroai/Wiro-Plugin. For the gateway in depth, use the `wiro-llm` skill from wiroai/Wiro-LLM. Each code block below is a file in `examples/` next to this file, at the path in its first line. The CI of wiroai/Wiro-Next-Starter type-checks every one of them against the starter's own code. ## Rules - **The key stays on the server.** Read `WIRO_API_KEY`, plus `WIRO_API_SECRET` for a Signature project, from server environment variables. Never prefix them with `NEXT_PUBLIC_`, never import them into a client component, and never log them or send them in a response. Call Wiro from route handlers and server actions, and start server helper modules with `import 'server-only'`. - If the variables are missing, ask the user to create a project at https://wiro.ai/panel/project/new and set them in `.env.local` and on their host. Do not ask them to paste a key into the chat. - **The server decides.** It picks the model and checks every input; the browser