Try Demo here 👉🏻👉🏻 SwiftSora
SwiftSora is an open-source AI video generator built around the OpenAI Sora model. Developed using full-stack technologies, it integrates Nuxt 3, Vue 3, and Tailwind CSS for both frontend and backend functionalities. Featuring a user-friendly web UI, SwiftSora can be easily deployed on platforms like Vercel and Netlify within minutes.
[!NOTE] This project is experimental. Although it has undergone optimization, caution is still advised. Use it at your own risk, and be aware of any potential consequences.
The preferred deployment option is Vercel, although you have the flexibility to deploy it on any platform of your choice.
# Your actual OPENAI_API_KEY
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxx
# Specify the Sora model name, check at https://platform.openai.com/docs/api-reference
OPENAI_API_MODEL=sora-1.0
# Set the actual OpenAI base URL or a proxy OpenAI API base URL
# e.g., https://api.openai.com, https://api.myopenaiproxy.com
OPENAI_API_BASE_URL=http://localhost:3000
# Use this URL as the production host for the application
# Always utilize this proxy URL for secure access to any OpenAI API
# e.g., https://www.swiftsora.com/
OPENAI_API_PROXY_URL=http://localhost:3000
Read the Vercel Nuxt deployment guide 👉🏻👉🏻 here.
You can also deploy it using Netlify.
Read the Netlify Nuxt deployment guide 👉🏻👉🏻 here.
Ensure installed the node.js v18+.
Add a .env
file at the home folder. And set the values as mentiond here.
OPENAI_API_PROXY_URL
with your deployed URL. For instance, if you have deployed the project to https://swiftsora.vercel.app, update the OPENAI_API_PROXY_URL
to https://swiftsora.vercel.app.OPENAI_API_BASE_URL
to your deployed URL temporarily. Once the OpenAI Sora API becomes available, update it to https://api.openai.com
or any other OpenAI proxy URL.Build the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run build
Check out the Nuxt.js deployment documentation for more information.
SwiftSora is an open-source full-stack platform, combining Nuxt, Vue 3, and Tailwind CSS for both the front-end and back-end. It features a user-friendly web UI and can be easily installed on platforms like Vercel and Netlify within minutes.
Empowering users to transform text into videos using OpenAI's Sora model, this platform simplifies the video creation process, ensuring smooth deployment and usage.
SwiftSora enables effortless video creation by simply inputting text, making it a versatile tool for professionals and enthusiasts alike in video production and AI technology.
On February 16, 2024, OpenAI unveiled its groundbreaking generative artificial intelligence model, "Sora." It is reported that Sora can generate a video lasting up to 60 seconds directly from textual prompts, featuring highly detailed backgrounds, intricate multi-angle shots, and emotionally rich characters.
This signifies OpenAI's expansion of its advanced AI technology into the realm of videos, following text and images. OpenAI also emphasizes that Sora serves as the foundation for a model capable of understanding and simulating the real world, marking a significant milestone towards achieving AGI (Artificial General Intelligence).
The emergence of OpenAI's video generation model was anticipated within the industry, with some noting that it arrived "faster than imagined." Others expressed excitement, stating that "we are truly witnessing the advent of a new industrial revolution."
As of today, Sora has not been publicly released. However, it is currently accessible to Red Team members for evaluating potential risks and critical areas. The OpenAI Sora team has expanded access to visual artists, designers, and filmmakers to gather feedback for improving the model to meet the needs of creative professionals. OpenAI is sharing early research progress, collaborating with individuals outside the organization, and seeking input to provide insights into upcoming AI features for the public.
Try Demo here 👉🏻👉🏻 SwiftSora
https://github.com/jasonwang178/SwiftSora/assets/222802/d9752751-a906-4dcc-80d2-b30dc0ccad99
https://github.com/jasonwang178/SwiftSora/assets/222802/b4c1f5b1-0348-4946-98cd-87647cf81d93
https://github.com/jasonwang178/SwiftSora/assets/222802/18eb7897-7b46-431a-9487-98b8dfa8b804
https://github.com/jasonwang178/SwiftSora/assets/222802/f6e670a5-d281-4cf2-a8fa-3f38c17155d3
https://github.com/jasonwang178/SwiftSora/assets/222802/842d4ba0-9442-4be5-a1ff-c1283ec9160a
https://github.com/jasonwang178/SwiftSora/assets/222802/e8e1a120-4b42-4457-bd09-368c32cc0e18
server/routes/fakeOpenAISoraAPI.post.ts
- This is a fake OpenAI Sora API. Please deactivate this API when the official Sora API becomes accessible.server/routes/v1/[...].ts
- This is an OpenAI API proxy. This measure aims to prevent the inadvertent exposure or risk control by OpenAI of your API key.Clone this repository and make sure to install the dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn dev
# bun
bun run dev
Build the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run build
Locally preview production build:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
# bun
bun run preview
Check out the Nuxt.js deployment documentation for more information.
Support the author 支持作者
If you find this project enjoyable and genuinely helpful, kindly consider supporting it with your contributions and stars. Thanks! 如果你喜欢这个项目,并且它对你确实有帮助,请不要吝啬你的Star.