Generative AI Creation Code Tool
Important
Join the Meta Horizon Creator Program! As a member, you gain: - Access to monetization opportunities including monthly bonuses, in-world purchases and competition cash prizes.
- Helpful resources including educational content, technical support and a collaborative creator community.
Important
The desktop editor is in early access and we need your feedback! To report bugs, go to the main menu and select Report a problem. To give us feedback, select Help us improve from the main menu. World creators can struggle when learning Typescript and when trying to convert Meta Horizon Worlds concepts into Typescript code. Luckily, the Generative AI Creation Tool is here to help! Conveniently built into the Horizon Desktop Editor, the Generative AI Creation Tool is an authoritative, AI-powered chat assistant. The tool works like a chat app and is as simple as having a back-and-forth, real-time conversation with someone. In this case, that someone just happens to be an
LLM.
The GenAI TypeScript tool has two models available:
Gen AI Tool Availability & Rates
Horizon creation tools with Meta AI are currently only available to users in the United States aged 13+. Note that there are daily rate limits per user on content created using Meta AI. Additionally, there are daily rate limits per user on content created using Meta AI. These limits are: - Typescript - 1000 requests
- Audio SFX/Ambient - 200 requests
Comparing Llama and Specialist models
You can use both Llama and Specialist models to:
- Generate TypeScript code snippets for relatively small tasks.
- Learn Typescript and Horizon Typescript APIs.
The Llama model works well for quick questions, and general information about Meta Horizon Worlds.
The Specialist model is trained on TypeScript and the Meta Horizon Worlds API. It can generate scripts and answer questions about scripting and TypeScript. The Specialist model works well as a personal tutor to learn TypeScript and familiarize yourself with TypeScript APIs.
Note: Specialist mode output might have minor formatting issues, especially around separating text from code snippets.
Generating TypeScript code
The code generation process struggles with complex tasks that use multiple APIs. For best results, keep questions scoped to one API at a time.
Responses will occasionally contain
hallucinations. This usually happens when there are no supported APIs available for the given prompt.
If a response doesn’t give the expected result, try reframing your prompt to be more clear and specific.
Select the TypeScript button to the right of Generate:
After you make a selection, a list of suggested prompts appears.
Select either the LLama or Specialist model with the Model dropdown.
- Enter a prompt. You may either:
- Try one of the suggested prompts by selecting it, or;
- Type your own prompt, and click Generate.
- If the response includes TypeScript code, you can copy and paste the code, or create a new script file from the output.
Note: To change topics, you must start a new conversation.
Specify whether the result was helpful by clicking either Like (thumbs-up), or Dislike (thumbs-down). Meta uses this information to fine-tune the LLM.
After generating code with the generative AI tool, you can view previous chats by selecting the History icon.
After opening the history window you can select a previous conversation. This will restore the selected conversation including the context used to generate content.
To learn more about Meta Horizon Worlds, try the following:
- Create your first world using our step-by-step tutorial.
- If you have issues when running the desktop editor, see Desktop Editor Troubleshooting
- Learn about the desktop editor with the Introduction to the Desktop Editor.
- Learn about the other tools available by reading our Tools Overview.
- Join the Meta Horizon Creator Program to learn about our program benefits.