• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Omyadav

Omyadav

reelMitrajs

Remix of Omyadav/untitled-509
Public
Like
reelMitrajs
Home
Code
2
reelMitra.js
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/12/2025
Viewing readonly version of main branch: v4
View latest version
README.md

export const generateReelScript = async (topic: string) => { const prompt = Generate a short 15-second Instagram reel script and 5 viral hashtags for the topic: "${topic}". Make the script engaging and desi style.;

const res = await fetch("https://api.openai.com/v1/chat/completions", { method: "POST", headers: { "Authorization": Bearer ${Deno.env.get("OPENAI_API_KEY")}, "Content-Type": "application/json", }, body: JSON.stringify({ model: "gpt-4", messages: [{ role: "user", content: prompt }], temperature: 0.7, }), });

const data = await res.json(); return data.choices[0].message.content; };

// Example test run generateReelScript("Shiv Bhakti").then(console.log); 🎥 Script: "Jab tak gale mein dam hai, tab tak Bholenath ka naam hai! Har har Mahadev! 🚩"

🔖 Hashtags: #MahadevReel #DesiBhakti #ShivPremi #ReelMitra #BhaktiViral

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.