Hi there 👋
Unfortunately, file uploads aren't currently supported in the API. The API works with text input only through the inputText parameter.
Here's how the API expects your content:
json
{
"inputText": "Your document content here",
"format": "presentation",
"themeName": "Your preferred theme"
}
Good news though! You can extract text from your Word doc first, then send it to Gamma's API:
With Zapier: Their Formatter or Document Parser steps can extract the text for you
With Make.com: The MS Word module reads document content that you can pass along
With code: Libraries like python-docx can extract the text programmatically
The inputText field accepts up to 750,000 characters, so even lengthy documents should work fine.
The text extraction approach should work well for your use case.
Let me know if you have questions about the API parameters or formatting once you have your text ready!