The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
import { connection } from "next/server";
import { listCreatives } from "@/server/ads";
/** A brand's ads (`?brand=<id>`, optionally `&batch=` or `&product=`), newest run first. */
export async function GET(request: Request) {
await connection();
const q = new URL(request.url).searchParams;
const brandId = q.get("brand");
if (!brandId) return Response.json({ error: "Pick a brand" }, { status: 400 });
return Response.json({ items: listCreatives({ brandId, batchId: q.get("batch") ?? undefined, productId: q.get("product") ?? undefined }) });
}