Presenton's API integration is divided into four phases:
- Service Preparation: Ensure that the container has passed the
-p 5000:80
mapped ports, and the startup is set with a validAPI_KEY
- request construction (of a building block): Use
multipart/form-data
Sends a POST request in the format of the required parameters:theme
: Specify the theme (modern/classic, etc.)content
: Upload a text file or enter text content directlyapi_key
: Authentication Key
- trigger generation: Example cURL command:
curl -X POST http://localhost:5000/api/generate -F 'theme=modern' -F 'content=@report.txt'
- Results processing: The API returns a stream of PPTX files that developers can store locally or integrate into automated processes. This interface is especially suitable for scenarios that require batch generation of product manuals, training materials, and so on.
This answer comes from the articlePresenton: open source AI automatic presentation generation toolThe