### Running Narrated Story Creator Server with Docker (Nvidia/CUDA) Source: https://github.com/gyoridavid/ai_agents_az/blob/main/episode_9/guide-start-server.md This command starts the `narrated-story-creator` Docker container with full GPU support, leveraging Nvidia CUDA drivers. It maps port 8000, removes the container on exit, and exposes all available GPUs and driver capabilities to the container, using the `latest-cuda` image. ```bash docker run --rm --gpus=all -e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_DRIVER_CAPABILITIES=all -p 8000:8000 -it gyoridavid/narrated-story-creator:latest-cuda ``` -------------------------------- ### Running Narrated Story Creator Server with Docker (Basic) Source: https://github.com/gyoridavid/ai_agents_az/blob/main/episode_9/guide-start-server.md This command starts the `narrated-story-creator` Docker container, mapping port 8000 from the container to port 8000 on the host. It runs in interactive mode, removes the container upon exit, and names it `narrated-story-creator`. This is the standard way to run the server on Windows, macOS, and Linux without GPU support. ```bash docker run -it --rm --name narrated-story-creator -p 8000:8000 gyoridavid/narrated-story-creator:latest ``` -------------------------------- ### Running MCP Server with Docker (Tiny Image) Source: https://github.com/gyoridavid/ai_agents_az/blob/main/episode_7/README.md This command runs the MCP server using Docker with the `latest-tiny` image, which is recommended for its smaller size. It maps port 3123, sets the log level to debug, and requires a Pexels API key. ```Shell docker run -it --rm --name short-video-maker -p 3123:3123 -e LOG_LEVEL=debug -e PEXELS_API_KEY= gyoridavid/short-video-maker:latest-tiny ``` -------------------------------- ### Running MCP Server with Docker (Normal Image) Source: https://github.com/gyoridavid/ai_agents_az/blob/main/episode_7/README.md This command runs the MCP server using Docker with the standard `latest` image. It maps port 3123, sets the log level to debug, and requires a Pexels API key. This version is noted as slower compared to the tiny image. ```Shell docker run -it --rm --name short-video-maker -p 3123:3123 -e LOG_LEVEL=debug -e PEXELS_API_KEY= gyoridavid/short-video-maker:latest ``` -------------------------------- ### Running MCP Server with Docker (CUDA Support) Source: https://github.com/gyoridavid/ai_agents_az/blob/main/episode_7/README.md This command runs the MCP server using Docker with the `latest-cuda` image, enabling GPU acceleration for `whisper.cpp` via the `--gpus=all` flag. It maps port 3123, sets the log level to debug, and requires a Pexels API key. ```Shell docker run -it --rm --name short-video-maker -p 3123:3123 -e LOG_LEVEL=debug -e PEXELS_API_KEY= --gpus=all gyoridavid/short-video-maker:latest-cuda ``` -------------------------------- ### Listing All Videos - REST API - HTTP Source: https://github.com/gyoridavid/ai_agents_az/blob/main/episode_9/guide-using-the-server.md This endpoint retrieves a list of all available videos managed by the server. It can be used to fetch an overview of existing video content. ```HTTP GET /api/videos ``` -------------------------------- ### Creating a New Video - REST API - HTTP Source: https://github.com/gyoridavid/ai_agents_az/blob/main/episode_9/guide-using-the-server.md This endpoint is used to initiate the creation of a new video. It requires specific parameters such as text, person image URL, background video URL, and person name to generate the video. ```HTTP POST /api/videos ``` -------------------------------- ### Viewing Video Processing Queue - REST API - HTTP Source: https://github.com/gyoridavid/ai_agents_az/blob/main/episode_9/guide-using-the-server.md This endpoint provides access to the current queue of video processing tasks. It allows monitoring of pending video generation requests. ```HTTP GET /api/queue ``` -------------------------------- ### Retrieving Specific Video Details - REST API - HTTP Source: https://github.com/gyoridavid/ai_agents_az/blob/main/episode_9/guide-using-the-server.md This endpoint fetches detailed information about a single video identified by its unique ID. It provides access to specific video properties and metadata. ```HTTP GET /api/videos/:id ``` -------------------------------- ### Checking Server Health - REST API - HTTP Source: https://github.com/gyoridavid/ai_agents_az/blob/main/episode_9/guide-using-the-server.md This endpoint allows clients to check the current operational status of the server. A successful response indicates the server is running and accessible. ```HTTP GET /health ``` -------------------------------- ### MCP Server SSE Endpoint - HTTP Source: https://github.com/gyoridavid/ai_agents_az/blob/main/episode_9/guide-using-the-server.md This endpoint provides a Server-Sent Events (SSE) stream for real-time updates from the MCP server. Clients can subscribe to this endpoint to receive continuous event notifications. ```HTTP /mcp/sse ``` -------------------------------- ### Checking Video Processing Status - REST API - HTTP Source: https://github.com/gyoridavid/ai_agents_az/blob/main/episode_9/guide-using-the-server.md This endpoint allows clients to query the current processing status of a video identified by its ID. It provides updates on the video generation progress. ```HTTP GET /api/videos/:id/status ``` -------------------------------- ### MCP Server Messages Endpoint - HTTP Source: https://github.com/gyoridavid/ai_agents_az/blob/main/episode_9/guide-using-the-server.md This endpoint is used for sending or receiving messages to/from the MCP server. It facilitates communication for specific MCP operations. ```HTTP /mcp/messages ``` -------------------------------- ### Deleting a Video - REST API - HTTP Source: https://github.com/gyoridavid/ai_agents_az/blob/main/episode_9/guide-using-the-server.md This endpoint is used to remove a video from the server, identified by its unique ID. Deleting a video is a permanent operation. ```HTTP DELETE /api/videos/:id ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.