import { GigaReels } from "@gigareels/sdk";const client = new GigaReels("your-api-key");const task = await client.templates.brainrot.newsFish({ searchTerm: "AI robots take over fast food industry!", webhookUrl: "https://your-app.com/webhook",});console.log("Breaking news video started:", task.taskId);
Perfect for covering technology trends and AI developments:
AI News
Social Media Trends
Absurd Headlines
await client.templates.brainrot.newsFish({ searchTerm: "New AI can predict what you'll order for lunch!"});await client.templates.brainrot.newsFish({ searchTerm: "ChatGPT now writes better poems than Shakespeare!"});await client.templates.brainrot.newsFish({ searchTerm: "AI robots learn to make perfect pizza in 30 seconds!"});
await client.templates.brainrot.newsFish({ searchTerm: "TikTok dance moves now required curriculum in schools!"});await client.templates.brainrot.newsFish({ searchTerm: "Instagram adds 'Cringe Filter' to protect users' dignity!"});await client.templates.brainrot.newsFish({ searchTerm: "Scientists discover optimal TikTok video length is exactly 23.7 seconds!"});
await client.templates.brainrot.newsFish({ searchTerm: "Local man discovers cats have been plotting world domination since 1987!"});await client.templates.brainrot.newsFish({ searchTerm: "Breaking: Millennials blamed for decline in traditional alarm clock industry!"});await client.templates.brainrot.newsFish({ searchTerm: "Area woman's houseplant finally speaks up, demands better WiFi!"});
The best breaking news videos have headlines that are funny because they’re almost believable:✅ Good: “Scientists discover plants prefer jazz music over classical”
❌ Bad: “Plants become sentient and start singing opera”✅ Good: “New study shows cats judge their owners’ Netflix choices”
❌ Bad: “Cats develop ability to speak fluent French”
Use Current Trends
Reference trending topics, technologies, or cultural phenomena: - Tech trends: AI, crypto,
social media platforms - Cultural references: Generational differences, modern life - Timely
events: Holidays, seasons, current events (but keep it light)
Keep it Concise
Headlines should be punchy and fit within the news format:✅ Good length: “TikTok algorithm reveals secret to viral success: dancing cats”
❌ Too long: “In a groundbreaking study that will revolutionize our understanding of social media engagement, researchers have discovered that the TikTok algorithm secretly prefers videos featuring cats performing dance moves”
Create timely breaking news based on seasons or events:
async function generateSeasonalNews() { const currentMonth = new Date().getMonth(); let headline; switch (currentMonth) { case 0: // January headline = "New Year's resolutions industry reports record profits from abandoned gym memberships!"; break; case 1: // February headline = "Valentine's Day: Local florists accidentally corner global economy!"; break; case 11: // December headline = "Christmas lights visible from space, aliens request volume reduction!"; break; default: headline = "Breaking: Meteorologists baffled by weather that matches their predictions!"; } return await client.templates.brainrot.newsFish({ searchTerm: headline, });}
Create news based on current trends (use with caution and fact-checking):
async function generateTrendingNews(trendingTopic) { const absurdAngles = [ `Scientists study ${trendingTopic}, conclude humans are even weirder than expected!`, `${trendingTopic} shortage causes panic, millennials switch to alternative trends!`, `Breaking: Local grandmother becomes expert on ${trendingTopic}, teenagers everywhere confused!`, `Study reveals ${trendingTopic} has been around since ancient times, Gen Z claims they invented it!`, ]; const randomAngle = absurdAngles[Math.floor(Math.random() * absurdAngles.length)]; return await client.templates.brainrot.newsFish({ searchTerm: randomAngle, });}// Usageawait generateTrendingNews("NFTs");await generateTrendingNews("sustainable fashion");
import { GigaReels, ValidationError } from "@gigareels/sdk";async function safeNewsGeneration(headline) { try { // Validate headline length if (headline.length < 10) { throw new Error("Headline too short - needs to be at least 10 characters"); } if (headline.length > 200) { throw new Error("Headline too long - should be under 200 characters"); } const task = await client.templates.brainrot.newsFish({ searchTerm: headline, }); console.log("✅ Breaking news video started:", task.taskId); return task; } catch (error) { if (error instanceof ValidationError) { console.error("❌ Validation failed:", error.message); } else { console.error("❌ Generation failed:", error.message); } throw error; }}
Content Guidelines: While breaking news videos are meant to be humorous and absurd, avoid
content that could be harmful, misleading about real events, or offensive. Keep it light, fun, and
obviously satirical.
// Daily news seriesconst dailyNews = await client.templates.brainrot.newsFish({ searchTerm: "Area person successfully avoids small talk in elevator, receives Nobel Prize!"});// Trend commentaryconst trendNews = await client.templates.brainrot.newsFish({ searchTerm: "Scientists confirm it's physically impossible to fold fitted sheets correctly!"});
// Product announcements (keep it fun)const productNews = await client.templates.brainrot.newsFish({ searchTerm: "Local coffee shop's WiFi password so secure, even customers can't remember it!"});// Industry humorconst industryNews = await client.templates.brainrot.newsFish({ searchTerm: "Marketing team discovers customers actually read terms and conditions, panics!"});
// Fun facts formatconst funFact = await client.templates.brainrot.newsFish({ searchTerm: "Study reveals humans spend 3 years of life looking for misplaced items!"});// Science communicationconst scienceNews = await client.templates.brainrot.newsFish({ searchTerm: "Researchers confirm coffee is essential for human survival, water is secondary!"});