Skip to main content

Get Your API Key

  1. Sign up at LongStories.ai
  2. Go to your Dashboard
  3. Navigate to the API section
  4. Generate a new API key

Make Your First Request

Generate your first video with a simple POST request:
This will return a response with your generation run ID:

Check Generation Status

Monitor the status of your video generation:
Response when complete:

Next Steps

  1. Explore the API Reference for all available options
  2. Learn about Error Handling for robust implementations
  3. Check out our Examples for common use cases
  4. Join our Discord community

Code Examples

JavaScript/TypeScript

Python

Tips for Success

  1. Start Simple: Begin with basic prompts and default settings
  2. Be Specific: Provide clear, detailed prompts for better results
  3. Handle Errors: Implement proper error handling and retries
  4. Monitor Status: Poll the status endpoint at reasonable intervals
  5. Test Different Styles: Experiment with different script and image styles