AI Integration

AI-powered features for your applications

AI Integration

Leverage AI capabilities in your applications.

Available Models

ModelUse Case
GPT-4Text generation, chat
DALL-EImage generation
WhisperSpeech-to-text
EmbeddingsSemantic 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?');