Generate from Document
curl --request POST \
--url https://api.example.com/slides/generate-from-doc \
--header 'Content-Type: application/json' \
--data '
{
"instructions": "<string>",
"num_slides": 123,
"template_id": "<string>",
"deep_research": true
}
'import requests
url = "https://api.example.com/slides/generate-from-doc"
payload = {
"instructions": "<string>",
"num_slides": 123,
"template_id": "<string>",
"deep_research": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
instructions: '<string>',
num_slides: 123,
template_id: '<string>',
deep_research: true
})
};
fetch('https://api.example.com/slides/generate-from-doc', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/slides/generate-from-doc",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'instructions' => '<string>',
'num_slides' => 123,
'template_id' => '<string>',
'deep_research' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/slides/generate-from-doc"
payload := strings.NewReader("{\n \"instructions\": \"<string>\",\n \"num_slides\": 123,\n \"template_id\": \"<string>\",\n \"deep_research\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/slides/generate-from-doc")
.header("Content-Type", "application/json")
.body("{\n \"instructions\": \"<string>\",\n \"num_slides\": 123,\n \"template_id\": \"<string>\",\n \"deep_research\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/slides/generate-from-doc")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"instructions\": \"<string>\",\n \"num_slides\": 123,\n \"template_id\": \"<string>\",\n \"deep_research\": true\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"message": "<string>",
"conversation_id": "<string>",
"presentation_id": "<string>",
"check_status_url": "<string>"
}REST API
Generate from Document
POST
/
slides
/
generate-from-doc
Generate from Document
curl --request POST \
--url https://api.example.com/slides/generate-from-doc \
--header 'Content-Type: application/json' \
--data '
{
"instructions": "<string>",
"num_slides": 123,
"template_id": "<string>",
"deep_research": true
}
'import requests
url = "https://api.example.com/slides/generate-from-doc"
payload = {
"instructions": "<string>",
"num_slides": 123,
"template_id": "<string>",
"deep_research": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
instructions: '<string>',
num_slides: 123,
template_id: '<string>',
deep_research: true
})
};
fetch('https://api.example.com/slides/generate-from-doc', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/slides/generate-from-doc",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'instructions' => '<string>',
'num_slides' => 123,
'template_id' => '<string>',
'deep_research' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/slides/generate-from-doc"
payload := strings.NewReader("{\n \"instructions\": \"<string>\",\n \"num_slides\": 123,\n \"template_id\": \"<string>\",\n \"deep_research\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/slides/generate-from-doc")
.header("Content-Type", "application/json")
.body("{\n \"instructions\": \"<string>\",\n \"num_slides\": 123,\n \"template_id\": \"<string>\",\n \"deep_research\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/slides/generate-from-doc")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"instructions\": \"<string>\",\n \"num_slides\": 123,\n \"template_id\": \"<string>\",\n \"deep_research\": true\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"message": "<string>",
"conversation_id": "<string>",
"presentation_id": "<string>",
"check_status_url": "<string>"
}Asynchronously generates slides from an uploaded document. Returns immediately with a presentation ID and status URL for polling.
The document file (PDF, DOCX, TXT, MD, etc.)
Custom instructions for generation (default: “Create a presentation from the document”)
Target number of slides (default: 20)
UUID of the template to use
Enable deep research mode (default: false)
Status of the generation (“pending”, “processing”, “completed”, “failed”)
Human-readable message
UUID of the conversation
UUID of the presentation
URL to check presentation status
⌘I

