This API powers the StoryTimeComicBook App, enabling users to create personalized comic books using their own images and story ideas. The API handles:
A voice model trainer is available for users to submit audio snippets of their voice; however, the training of this model on Replicate is not fully completed at this time (as of March 13, 2025).
Future development will allow the fine-tuned audio model to read the story back to users while they view their finished comic.
This API requires the following API keys to function properly:
LLM API Key - Choose one of:
Replicate API Keys:
The application uses Entity Framework Core's code-first approach and will automatically create the database schema on first run. You just need to:
ComicBookGeneratorDB (or your preferred name)Copy the template configuration file:
cp appsettings.template.json appsettings.json
Update the following in appsettings.json:
Example connection string format:
"ConnectionStrings": {
"ComicBookGeneratorDbConnection": "Host=localhost;Port=5432;Database=ComicBookGeneratorDB;Username=youruser;Password=yourpassword;"
}
FFmpeg is required for audio processing. Make sure it's installed and available in your system PATH, or specify the path in the appsettings.json file:
"FFmpeg": {
"Path": "/path/to/ffmpeg"
}
dotnet run
This API is designed to work with the StoryTimeComicBook Angular UI, which can be found at: https://github.com/rroethle7474/comic-book-generator
Please refer to the README in that repository for instructions on setting up the frontend application.
POST /api/comicbook/create: Create a new comic bookGET /api/comicbook/{id}: Get comic book detailsPUT /api/comicbook/{id}: Update comic book detailsDELETE /api/comicbook/{id}: Delete a comic bookPOST /api/comicbook/{id}/scene: Add a scene to a comic bookGET /api/comicbook/{id}/scenes: Get all scenes for a comic bookPOST /api/comicbook/{id}/scene/{sceneId}/generate-story: Generate story for a scenePOST /api/comicbook/{id}/assets: Create asset (FULL_STORY, STYLED_IMAGE, PDF)POST /api/comicbook/generate/{assetId}: Generate comic book PDFPOST /api/voice-mimic/create-voice-model: Create a new voice modelGET /api/voice-mimic/steps: Get recording stepsPOST /api/voice-mimic/voice-model/{id}/step/{stepId}/recording: Upload recording for a stepPOST /api/voice-mimic/voice-model/{id}/train: Train voice modelPOST /api/voice-mimic/synthesize/{id}: Synthesize speech with a voice modelAll files (images, audio recordings, generated PDFs) are stored locally in the wwwroot directory structure:
/uploads/scenes/: Original scene images/uploads/audio/: Voice recordings/comics/{comicBookId}/: Styled comic images/pdfs/: Generated comic book PDFsC#
100.0%
This API powers the StoryTimeComicBook App, enabling users to create personalized comic books using their own images and story ideas. The API handles:
A voice model trainer is available for users to submit audio snippets of their voice; however, the training of this model on Replicate is not fully completed at this time (as of March 13, 2025).
Future development will allow the fine-tuned audio model to read the story back to users while they view their finished comic.
This API requires the following API keys to function properly:
LLM API Key - Choose one of:
Replicate API Keys:
The application uses Entity Framework Core's code-first approach and will automatically create the database schema on first run. You just need to:
ComicBookGeneratorDB (or your preferred name)Copy the template configuration file:
cp appsettings.template.json appsettings.json
Update the following in appsettings.json:
Example connection string format:
"ConnectionStrings": {
"ComicBookGeneratorDbConnection": "Host=localhost;Port=5432;Database=ComicBookGeneratorDB;Username=youruser;Password=yourpassword;"
}
FFmpeg is required for audio processing. Make sure it's installed and available in your system PATH, or specify the path in the appsettings.json file:
"FFmpeg": {
"Path": "/path/to/ffmpeg"
}
dotnet run
This API is designed to work with the StoryTimeComicBook Angular UI, which can be found at: https://github.com/rroethle7474/comic-book-generator
Please refer to the README in that repository for instructions on setting up the frontend application.
POST /api/comicbook/create: Create a new comic bookGET /api/comicbook/{id}: Get comic book detailsPUT /api/comicbook/{id}: Update comic book detailsDELETE /api/comicbook/{id}: Delete a comic bookPOST /api/comicbook/{id}/scene: Add a scene to a comic bookGET /api/comicbook/{id}/scenes: Get all scenes for a comic bookPOST /api/comicbook/{id}/scene/{sceneId}/generate-story: Generate story for a scenePOST /api/comicbook/{id}/assets: Create asset (FULL_STORY, STYLED_IMAGE, PDF)POST /api/comicbook/generate/{assetId}: Generate comic book PDFPOST /api/voice-mimic/create-voice-model: Create a new voice modelGET /api/voice-mimic/steps: Get recording stepsPOST /api/voice-mimic/voice-model/{id}/step/{stepId}/recording: Upload recording for a stepPOST /api/voice-mimic/voice-model/{id}/train: Train voice modelPOST /api/voice-mimic/synthesize/{id}: Synthesize speech with a voice modelAll files (images, audio recordings, generated PDFs) are stored locally in the wwwroot directory structure:
/uploads/scenes/: Original scene images/uploads/audio/: Voice recordings/comics/{comicBookId}/: Styled comic images/pdfs/: Generated comic book PDFsC#
100.0%