Generate a presentation asynchronously
curl --request POST \
--url http://localhost:5001/api/v1/ppt/presentation/generate/async \
--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/async"
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/async', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"type": "<string>",
"status": "pending",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"message": "<string>",
"error": {},
"data": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Generate Presentation Async
Async generation (self-hosted)
Create a background generation task and return immediately with its task identifier.
POST
/
api
/
v1
/
ppt
/
presentation
/
generate
/
async
Generate a presentation asynchronously
curl --request POST \
--url http://localhost:5001/api/v1/ppt/presentation/generate/async \
--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/async"
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/async', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"type": "<string>",
"status": "pending",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"message": "<string>",
"error": {},
"data": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Body
application/json
Was this page helpful?