๐Create from a PDF Upload
Send a base64-encoded PDF to keep proprietary decks or reports private. Mark the resource pdf and include the encoded payload in content.
curl -X POST "https://api.autocontentapi.com/content/Create" \
-H "accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"outputType": "video",
"resources": [
{ "type": "pdf", "content": "BASE64_ENCODED_PDF" }
],
"text": "Summarize the executive summary and cite supporting stats."
}'Tips
Encode the PDF with
base64(macOS/Linux:base64 file.pdf).For large files, share a pre-signed URL instead using a
websiteresource.
Try it in code
Last updated