Skip to main content
Version: 0.14.0

Creating New App with AI

Wasp comes with its own AI: Wasp AI, aka Mage (Magic web App GEnerator).

Wasp AI allows you to create a new Wasp app from only a title and a short description (using GPT in the background)!

There are two main ways to create a new Wasp app with Wasp AI:

  1. Free, open-source online app usemage.ai.
  2. Running wasp new on your machine and picking AI generation. For this you need to provide your own OpenAI API keys, but it allows for more flexibility (choosing GPT models).

They both use the same logic in the background, so both approaches are equally "smart", the difference is just in the UI / settings.

info

Wasp AI is an experimental feature. Apps that Wasp AI generates can have mistakes (proportional to their complexity), but even then they can often serve as a great starting point (once you fix the mistakes) or an interesting way to explore how to implement stuff in Wasp.

usemage.ai

1. Describe your app 2. Pick the color 3. Generate your app 🚀

Mage is an open-source app with which you can create new Wasp apps from just a short title and description.

It is completely free for you - it uses our OpenAI API keys and we take on the costs.

Once you provide an app title, app description, and choose some basic settings, your new Wasp app will be created for you in a matter of minutes and you will be able to download it to your machine and keep working on it!

If you want to know more, check this blog post for more details on how Mage works, or this blog post for a high-level overview of how we implemented it.

Wasp CLI

You can create a new Wasp app using Wasp AI by running wasp new in your terminal and picking AI generation.

If you don't have them set yet, wasp will ask you to provide (via ENV vars) your OpenAI API keys (which it will use to query GPT).

Then, after providing a title and description for your Wasp app, the new app will be generated on your disk!

wasp-cli-ai-input wasp-cli-ai-generation