api/image/generate - generate an image

Merged
SW
1y ago
+195-77

Summary by CodeRabbit

  • New Features

    • Image-generation API endpoint with prompt handling and CORS preflight support
  • Improvements

    • Clearer client-facing error responses for missing prompts and generation failures
    • Updated image-generation request/response behavior
  • Chores

    • Added AI SDK dependencies and image-generation utility
    • Adjusted TypeScript configuration
  • Removed

    • Protected page previously displaying gated content has been removed

✏️ Tip: You can customize this high-level summary in your review settings.