Build AI-powered story generation into your applications
Get started in 5 minutes with our TypeScript SDK
npm install @myria/sdk
import { Myria } from '@myria/sdk';
const client = new Myria({
apiKey: process.env.MYRIA_API_KEY
});
const story = await client.stories.create({
prompt: "A dragon learning to code"
});
console.log(story.id);Standard HTTP endpoints for any language
POST https://api.myria.pro/api/stories
Headers:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Body:
{
"prompt": "A dragon learning to code",
"style": "realistic",
"length": "short"
}Create complete stories with narrative, characters, and scenes
Generate consistent images for each scene
Export complete videos with animations and voice
Real-time notifications for long-running tasks
Create a new story from a text prompt
Retrieve story details and current status
Generate video from completed story
Download URL for exported video
Create custom characters for your stories
| Tier | API Keys | Requests/Min | Requests/Day | Cost |
|---|---|---|---|---|
| Creator | 2 | 30 | 1,000 | $29/month |
| Pro | 5 | 60 | 10,000 | $149.99/month |
| Enterprise | 10 | 120 | 50,000 | $399/month |