Discover how Edgegap works

Discover how Edgegap works

fal.ai

Deploy to Edgegap

fal.ai Made Your Game Look Good. Here's How to Make It Multiplayer.

Published

Published

Last reviewed for accuracy

Last reviewed for accuracy

ChatGPT logo: Edgegap integration guide for multiplayer games built with ChatGPT.

fal.ai gives a coding agent a whole art department: rigged 3D characters, props, textures and sounds on demand. The games built this way are almost always single-player, because nothing in that pipeline runs a match. This guide shows how to take one online with a matchmaker and one dedicated server per match on Edgegap, using a sample we built and tested end to end: Relic Rumble.

No credit card required. Free tier includes the resources to deploy a real game server.

No credit card required. Free tier includes the resources to deploy a real game server.

How people make games with fal.ai


fal’s own tutorial shows the pattern (as of November 17, 2026): a coding agent writes a Three.js game and orders its assets from fal in the same chat. A concept image becomes a rigged 3D character, and the game ends up as one HTML file that plays offline. fal’s MCP server connects the same model catalog to Claude Code, Codex, Cursor and others, and the genmedia CLI does it from a terminal.

The result looks like a studio made it, and it is single-player. That’s the right call for a solo game. It’s also why “can my friends join?” has no answer yet.

fal is build time. Multiplayer is play time.

fal works while you build, a game server works while people play. A match never calls fal. So adding multiplayer doesn’t touch your asset pipeline. It changes one thing: where the rules run.

In a multiplayer game one machine has to decide what happened: who picked up the relic, who got shoved. If that machine is a player’s browser, that player can cheat. So the rules move to a server, and the page becomes a view: it sends inputs and draws what the server says.

Relic Rumble: four fal.ai-generated characters in an online match on Edgegap

What we built

Relic Rumble is a Three.js game for 4 players: carry a relic to your corner for a point, shove a rival to make them drop theirs, first to 5 wins. A coding agent wrote the code. fal generated four rigged characters with walk and run animations, three props, a floor texture and five sounds, for about $6.30 at list prices on November 17, 2026. Every prompt, model and price is in the sample’s PROMPTS.md.

Step-by-Step Guide

Detailed Integration Steps

1. Put every rule in one file the server can run

Give your coding agent this rule before it writes the game, or ask it to reshape a game you already have:

“Put every game rule in rules.js, an ES module with no window, document, WebGL, audio or timers. Export createWorld, addPlayer, removePlayer, setInput with plain numbers and booleans, step(world, dt) that returns a list of events, and botInput that reads only positions. Characters collide as circles and obstacles as boxes, never as meshes.”

The page runs this file for solo play. The game server imports the same file for online play, so the rules can’t drift apart.

To the server, a character is a circle. It’s a hooded thief with a walk cycle only in the page.

2. Make every asset optional, then generate with fal

List every model, texture and sound in one file, and draw a plain shape when an entry is empty. The game is then playable and testable, online included, before you spend any fal credit. We finished and tested the multiplayer part of Relic Rumble as capsules and boxes first.

Then generate. For each character: one concept image, then image-to-3D with rigging.

  • Ask for a body that can be rigged: full body, A-pose, arms away from the body, empty hands. All four of our characters rigged on the first try, a robot and a goblin included.

  • Never size the game to a model. Scale each model to a size in world units. A rigged model reports the wrong size to Three.js’s default bounding box; measure the skinned vertices instead.

  • Animations can arrive as separate files. The rigging step returned walk and run as small files that hold only the motion. They apply to the rigged model directly.

  • Shrink before you ship. Each character came back at about 3.5 MB; resizing its texture brought it to about 1.3 MB.

No asset goes on the game server. The server image holds the server code and the rules file. New art needs no server release; only a rules change does.

3. Connect your coding agent to Edgegap

The agent that talks to fal can talk to Edgegap the same way. Add the Edgegap MCP server to your coding agent:

The server ships Edgegap’s agent skills. Its edgegap-fal skill holds this workflow: the game brief, the asset rules, the server templates, the matchmaker config and the tests.

Keep your API token private. It controls your Edgegap account. Keep it in your agent’s MCP settings and never put it in game code. If it leaks, revoke it in the dashboard.

4. Deploy one test server

“Here is a game I made with fal assets. Make it online multiplayer on Edgegap with the edgegap-fal skill: keep the solo mode, build the server image with GitHub Actions, and deploy one test server with TLS Upgrade so browsers connect over wss://. Ask me before you create anything in my Edgegap account.”

The agent adds a small Node.js server around your rules file, builds its image, creates the app and version, deploys a test server and returns its address. In our run the server was ready 5 seconds after the deploy call.

5. Play on the test server

Open the page in two browser tabs and join the test server from both. You should see the same match in each tab, with the same characters, props and sounds as solo play, because the page draws server state with the same renderer.

The sample also plays a full match with two headless players, so you can test without a browser.

6. Add Edgegap Matchmaker

A matchmaker groups players and starts a server near them. Relic Rumble’s config matches 2 to 4 players, gives a lone player a server after 20 seconds, and bots fill the empty seats.

Upload the config in the dashboard, start the matchmaker, and put its URL and client token in the page. The client token is made to ship in web pages; your Edgegap API token is not.

In our test, two players were matched 12 seconds after queueing and had their server 5 seconds later.

7. Test the full loop in two browser tabs

Click Find match in two tabs within 20 seconds. Both should land in the same match on one server.

When the match ends, the server stops itself. In our tests it was gone 20 seconds after the results screen, so nothing runs when nobody plays.

Frequently Asked Questions

Common questions about taking a game built with fal.ai assets online with dedicated servers and matchmaking on Edgegap.

Do my fal models need to be on the game server?

No. The server runs the rules with simple shapes. Models, textures and sounds are files your page loads.

Does a match call fal?

No. fal is used when you generate assets. Playing costs no fal credit.

How much did the fal assets cost?

About $6.30 at fal’s list prices on November 17, 2026: 8 images, 7 3D models (4 rigged) and 5 short sounds. The models and prices are listed in the sample’s PROMPTS.md.

What does a match cost on Edgegap?

A match runs on one 0.25 vCPU server for the length of the match plus about 20 seconds. Testing on the free tier is free, with no credit card.

Does this work for 2D games and sprites?

The same split applies: sprites in the page, hit boxes in the rules file. Our verified sample is 3D; we haven’t run a sprite-sheet game through it yet.

Which coding agents does this work with?

Any agent that can use MCP servers. We ran it with Claude Code, fal’s genmedia CLI and the Edgegap MCP server.

Clients

Learn more from clients who integrated Edgegap

31 case studies are available from studios that moved to Edgegap from another platform.

Key reasons why they chose Edgegap

Discover the impact of Edgegap's automated game server orchestration for a flawless multiplayer experience.

Cost

Pricing

Pricing

Optimize costs and performance with hybrid orchestration

Optimize costs and performance with hybrid orchestration

Optimize costs and performance with hybrid orchestration

Edge Cloud

On-Demand

$0.00115

/ vCPU

/ MINUTE

Billed by the Minute, Only on Usage

Pay only when players play. 0 active servers = $0

Deploy game servers worldwide, per instance, to all 615+ edge cloud locations. Zero commitment.

Simply add a credit card.

Edge Cloud

On-Demand

$0.00115

/ vCPU

/ MINUTE

Billed by the Minute, Only on Usage

Pay only when players play. 0 active servers = $0

Deploy game servers worldwide, per instance, to all 615+ edge cloud locations. Zero commitment.

Simply add a credit card.

Private Fleet (Bare Metal)

Reserved Capacity

$0.0261

/ vCPU

/ HOUR

Billed Monthly, Always On

$280 per host/month (12 mo rate), or $350 monthly

Optimize the cost effectiveness of your game server with egress-free hosting of Private Fleets.

Persistent, available 24/7, exclusive to your studio.

Private Fleet (Bare Metal)

Reserved Capacity

$0.0261

/ vCPU

/ HOUR

Billed Monthly, Always On

$280 per host/month (12 mo rate), or $350 monthly

Optimize the cost effectiveness of your game server with egress-free hosting of Private Fleets.

Persistent, available 24/7, exclusive to your studio.

Your bill varies per rate and usage; which can vary per game type, player count, & more.

Your bill varies per rate and usage; which can vary per game type, player count, & more.

Model your usage with our estimate calculator ->

Model your usage with our estimate calculator ->

Edgegap's features & price: detailed comparison between Edge Cloud & Private Fleets

Edgegap's features & price: detailed comparison between Edge Cloud & Private Fleets

COMPARE

Free Trial

Edge Cloud

Private Fleets

FEATURES

Analytics & Monitoring

Billing Alarms

Click to Expand

28 more rows

Unlocks

Capabilities are unlocked when a credit card is added to the account.

COMPARE

Free Trial

Edge Cloud

Private Fleets

FEATURES

Analytics & Monitoring

Billing Alarms

Click to Expand

28 more rows

Unlocks

Capabilities are unlocked when a credit card is added to the account.

COMPARE

Free Trial

Edge Cloud

Private Fleets

FEATURES

Analytics & Monitoring

Billing Alarms

Click to Expand

28 more rows

Unlocks

Capabilities are unlocked when a credit card is added to the account.