How to add AI to your game: pictures, text and 3D
How to add AI to your game so players generate pictures, text, voice, music, video and 3D in it, without your own AI keys or server, at a price you set.

To add AI to your game, ask the AI coder for the feature you want, for example "let players generate a hero portrait", and set it up in the dashboard. Players then create pictures, text, voice, music, video or 3D models right in the game. You need no AI keys and no server of your own: generations run on the iDos Games server, and you set the price for players in game resources.
A game with AI inside is different from a game made by AI. Here the player uses the AI: a portrait of their hero, a story for their character, a skin for their item. Features like these give players something of their own to come back for, and something to show friends.
What players can create
| Kind | Example in a game |
|---|---|
| Text | a backstory for the hero, a riddle, a letter from an NPC |
| Picture | a portrait, a card illustration, a skin |
| Voice | a line read aloud, a narrator for a quest |
| Music | a theme for the player's base or level |
| Video | a short clip of the player's creation |
| 3D | a model from a text, a picture or four views, then texture, rig or animation |
Each feature you open appears in the game's AI studio, grouped by kind. The player writes what they want, sees the price and gets the result; everything they made stays in "My creations".
What matters is that the result belongs to the player. A portrait they described themselves feels like theirs in a way a stock image never does, and a player who has spent an evening making a hero tends to return to play with it. That attachment is what AI really adds to a game.
"A fox knight in golden armor, cartoon style"
Step 01Add the feature
In the AI coder write what players should be able to make:
Let players generate a portrait of their hero from a short description.
The AI coder installs the in-app AI system or calls the feature from the game code. You do not write a request to a model, store keys or wait for jobs yourself: the system does that.
Step 02Set it up in the dashboard
Open the dashboard, pick your project and go to Live Operations → v2 → InApp AI:
- Create a feature: its kind, the hidden prompt and its quality mode.
- For 3D, pick the operation: a model from text, from a picture or from four views, or work on a model the player already made. You set its quality, polygon limit and allowed animations.
- Set the player price in game resources and the limits per player.
- Set the spending caps of the title so a popular game does not spend more than you planned.
The AI button on that page opens an assistant: describe the feature in words, review what it proposes and press Save.
Step 03Test and release
Try the feature in the test version of the game, then send the settings to the live game as a separate step. Players see a new feature only after that.
Who pays and how much it costs you
- Generations are paid from the AI credits of your plan, then from the Aspis of your iDos Games account.
- Players pay you back, if you want: a price in game resources or in Aspis for each feature, or free.
- A failed generation costs the player nothing: Aspis are charged only when the result is ready, and a refused request (limit reached, feature unavailable) charges nothing.
- Caps protect you: per-player limits and the spending caps of the title stop a viral moment from emptying your balance.
A simple start is a free feature with a small daily limit per player. When you see how often people use it, move it to a price in game currency that players earn by playing.
How to choose the first feature
Ask yourself three questions.
- What does the player already do most in the game? If they collect heroes, the first feature is a hero portrait; if they build, it is a world or a building from a description.
- Where will the result be seen? A generation nobody sees gets boring fast. A portrait in the profile, a skin on the character or a card in the deck is seen by the player and by others.
- How often is it needed? A portrait is made once a week, NPC lines are needed all the time. Rare things can be paid, frequent ones are better as a hidden feature of the game itself.
One feature that answers all three questions is worth more than six that answer none.
Ideas by genre
- RPG: a portrait of the hero, a backstory, a name and a crest for the guild.
- Sandbox: a world built from the player's description; the voxel sandbox does this with a hidden feature.
- Card or board game: art for a custom card, a voiced announcer.
- Social games: player creations shared with others through the workshop.
- Any game: NPC lines written by AI from the game code, so characters do not repeat the same three phrases.
AI the game uses by itself
Not every feature has to be in the studio. A feature marked hidden is called only by the game code and never shown to players. That is how a game can write a new quest text each day, give an NPC a reply that fits the situation, or turn the player's short idea into a whole level. The player sees the result, not the prompt.
For developers
In-app AI works through client.ai in @idosgames/core. A refusal charges nothing, and waitForGeneration follows
the server job for you:
const res = await client.ai.generateImage('skin-gen', { Prompt: text })
if (!res.ok) return showError(res.error)
const done = await client.ai.waitForGeneration(res.data)Mistakes to avoid
- Opening every kind at once. Start with one feature that fits the game; a studio with six empty buttons confuses.
- No limits. Without a per-player limit one enthusiastic player can use the whole budget in an evening.
- A prompt that does too much. The hidden prompt should keep results in the game's style; the player adds only the details.
- Hiding the price. Show what a generation costs before the player presses the button.
If you are still building the game itself, start with how to make a game with AI and add in-game AI once the core loop works.

About the author
Aidos RyskeldinovFounder of iDos Games
Lifelong gamer and tech enthusiast. Since 2020 I have been building and shipping cross-platform games and apps, and today I'm building iDos Games: a platform where anyone can make a game with AI, put it live at its own link and earn from it. Here I share how to make games faster and easier than you'd think.
Frequently asked questions
Do I need my own AI API keys?
No. Generations run on the iDos Games server and are paid from the AI credits of your plan, then from the Aspis of your account. Prompts and models stay on the server.
Can players pay for generations?
Yes. You set a price in game resources or Aspis for every feature, or make it free, and set limits per player.
Can the game itself use AI, not only players?
Yes. A feature marked hidden is called by the game code, for example for NPC lines or for building a world from a description.
What happens if a generation fails?
The player is not charged: Aspis are taken only when the result is ready, and a refused request costs nothing.
Learn more in the documentation
- AI inside your game: text, pictures, music and 3D for playersHow the ready-made iDos Games in-app AI works - an AI studio where players generate text, pictures, voice, music, video and 3D through features you open, with a price in game resources - and how to set it up in the dashboard.
- Workshop: player-made levels, worlds and skinsHow the ready-made iDos Games Workshop works - players publish what they made in the game, share it for free, sell it for in-game resources with author royalties or unlock it by holding an item - and how to set it up in the dashboard.
- The voxel sandbox template: survival, building and worlds from a pictureA ready voxel game template on iDos Games - survival and creative modes, mining, crafting, mobs, three dimensions, worlds from a picture and a description with or without AI, and co-op for up to 8 players. What is inside and how to make it your own game.
Make your own game
Describe the idea in a sentence - the AI coder builds it, and it goes live at its own link.
All articles
Games with AIAI game generator: from text to a playable gameHow an AI game generator turns a text description into a playable browser game: what to check in one, ready templates, seven constructor genres and publishing.
Aidos Ryskeldinov5 min read
Games with AIHow to add a leaderboard, quests and a store to a web gameHow to add a leaderboard to a web game that players cannot cheat, plus daily quests and a store with server-checked prices. No backend to write.
Aidos Ryskeldinov5 min read
Games with AIHow to build an app with AI without codingHow to build an app with AI without coding: describe it in plain words, refine it with the AI coder in a live preview, publish it at its own link.
Aidos Ryskeldinov5 min read