askai-img
Version:
AI Art Generation Tool
33 lines (22 loc) • 671 B
Markdown
AI Art Generation Tool using Wombo.ai API
```bash
npm install askai-img
```
```typescript
import { askai_img } from 'askai-img';
async function main() {
// Get available styles
const styles = await askai_img.styles();
console.log('Available styles:', styles);
// Generate artwork
const imageUrl = await askai_img.generate("a beautiful sunset", 121); // 121 is Dark Fantasy v3
console.log('Generated image URL:', imageUrl);
}
```
You can get a list of available styles using the `styles()` method. Each style has an ID that can be used with the `generate()` method.
MIT