itch.io is community of indie game creators and players

Devlogs

Quick Setup Guide: (Free!) OpenRouter Setup

Formamorph
A browser game made in HTML5

1. Create OpenRouter Account & Get API Key

2. Choose Your Model

  • Recommended free model: mistralai/mistral-7b-instruct:free
  • Copy the exact model name

3. Configure Game Settings

  • Open game settings (top right menu button in-game)
  • Change API URL to: https://openrouter.ai/api/v1/chat/completions
  • Paste your API key
  • Enter your chosen model name
  • optional: In the same setting menu, increase memory limit from 2k to 3k if the model’s max memory is 5k (just subtract 1-2k from the model’s max context length)

That’s it! You should now be able to play the game using faster AI models!

4. So…

  • There’s a limit to small free models, however. The little 7b model will likely fail when the world is too big and complex like Veilwood :(
  • If you want to play in a really large complex world, I recommend spending a few bucks on openrouter and use a paid model such as mistral nemo instruct. It doesn’t have to be an expensive model, just one that is smart and creative.
Important:
- Free models have rate limits!
- Different models have more/less limits. You can experiment by changing free models.

Best free model: meta-llama/llama-3.3-70b-instruct:free
- This model is very smart and has extreme memory (128K!)
- HOWEVER: it has more limited rate limits which means you can’t send in many requests, maybe once per minute

Files

  • dist.zip 39 MB
    Feb 10, 2025
Download Formamorph
Read comments (30)