Generate a presentation synchronously
curl --request POST \
--url http://localhost:5001/api/v1/ppt/presentation/generate \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "A concise introduction to renewable energy"
}
'import requests
url = "http://localhost:5001/api/v1/ppt/presentation/generate"
payload = { "content": "A concise introduction to renewable energy" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({content: 'A concise introduction to renewable energy'})
};
fetch('http://localhost:5001/api/v1/ppt/presentation/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"presentation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"path": "<string>",
"edit_path": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Open Source API
Sync generation (self-hosted)
Create and export a presentation before returning the final presentation paths.
POST
/
api
/
v1
/
ppt
/
presentation
/
generate
Generate a presentation synchronously
curl --request POST \
--url http://localhost:5001/api/v1/ppt/presentation/generate \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "A concise introduction to renewable energy"
}
'import requests
url = "http://localhost:5001/api/v1/ppt/presentation/generate"
payload = { "content": "A concise introduction to renewable energy" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({content: 'A concise introduction to renewable energy'})
};
fetch('http://localhost:5001/api/v1/ppt/presentation/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"presentation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"path": "<string>",
"edit_path": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Body
application/json
Was this page helpful?