Generative Manim logo

Generative Manim

GPT for video generation

Generative Manim is an open-source tool for generating animation videos from text. Built on top of the Manim library.
Loading...

Working on a complex animation?

Animo is a video editor powered by LLMs and Manim to create complex animations faster. It processes images, instructions, and code. Are you up for trying it?

⚑️ How it works

Making video animations accessible to everyone.

Generative Manim is an open-source tool for generating animation videos from text. It is divided in three parts:

  • Generate Video: Generate the video from the text.
  • Render Engine: Render the video from the code.
  • Prompt Generator: Generate the code from the text.

The Generate Video part is the sum of the Prompt Generator and the Render Engine in a single step.

πŸ’‘ Concept

Imagine a future where you can watch an animation video from a concept you have in your mind in a few seconds. That would be useful for teachers, students, and more. People that want to generate a video won't need to learn how to use a video editor, how to draw, or how to code. You just need to write a descriptive text.

That indeed is a future. And it is not that far. We can already start working on it.

Manim is a Python library for creating complex graphics and animations. The main advantage of Manim for GPT, it's that since it's a language for the LLM, it's more easy to generate proper code from a prompt.

πŸ’» Models

The models we use to generate Manim code from text.

Generative Manim uses models to generate code from text. The first model we used was GPT-4 with a Zero Shot Learning strategy. Today we are using two models.

πŸ€– GPT-4o

GPT-4o is the next-generation model from OpenAI. We use a basic system prompt to generate the code. We add a few extra instructions to help the model understand the task.

πŸ“‘ GPT-3.5 Fine-Tuned

We trained a GPT-3.5 model with a few examples of Manim code. The model is fine-tuned to generate Manim code from a prompt. This model is a little bit slower than GPT-4o.

πŸ’‘ GPT-3.5 Fine-Tuned for Physics

A GPT-3.5 model fined-tuned to generate Manim for the Manim Physics plugin.

If you have an idea or want to help us, go to our Discord Community and let us know.

πŸš€ Contributors

Awesome people that are contributing to the project.

Generative Manim is an open source project. You can contribute to the project by suggesting new features, fixing bugs, or improving the documentation. Pull Requests are warmly welcome.

Remember you can also join our Discord Community to discuss new features, bugs or any other topic.