AI Integration
Leverage AI capabilities in your applications.
Available Models
| Model | Use Case |
|---|---|
| GPT-4 | Text generation, chat |
| DALL-E | Image generation |
| Whisper | Speech-to-text |
| Embeddings | Semantic search |
Text Generation
const response = await aethex.ai.generate({
model: 'gpt-4',
prompt: 'Write a quest description for a fantasy RPG',
maxTokens: 200
});
console.log(response.text);
NPC Dialogue
const npc = await aethex.ai.createNPC({
personality: 'A wise old wizard who speaks in riddles',
knowledge: ['game lore', 'quest hints']
});
const dialogue = await npc.respond('What dangers await in the dungeon?');