Create a snack pack
curl --request POST \
--url https://www.vidguy.ai/api/v1/snacks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"brandId": "b7f3a8b2-1234-5678-9abc-def012345678",
"name": "<string>",
"callbackUrl": "<string>",
"render": true,
"exclude": [],
"types": [],
"count": 5,
"context": "<string>",
"prompt": "<string>"
}
'import requests
url = "https://www.vidguy.ai/api/v1/snacks"
payload = {
"brandId": "b7f3a8b2-1234-5678-9abc-def012345678",
"name": "<string>",
"callbackUrl": "<string>",
"render": True,
"exclude": [],
"types": [],
"count": 5,
"context": "<string>",
"prompt": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
brandId: 'b7f3a8b2-1234-5678-9abc-def012345678',
name: '<string>',
callbackUrl: '<string>',
render: true,
exclude: [],
types: [],
count: 5,
context: '<string>',
prompt: '<string>'
})
};
fetch('https://www.vidguy.ai/api/v1/snacks', 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://www.vidguy.ai/api/v1/snacks",
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([
'brandId' => 'b7f3a8b2-1234-5678-9abc-def012345678',
'name' => '<string>',
'callbackUrl' => '<string>',
'render' => true,
'exclude' => [
],
'types' => [
],
'count' => 5,
'context' => '<string>',
'prompt' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://www.vidguy.ai/api/v1/snacks"
payload := strings.NewReader("{\n \"brandId\": \"b7f3a8b2-1234-5678-9abc-def012345678\",\n \"name\": \"<string>\",\n \"callbackUrl\": \"<string>\",\n \"render\": true,\n \"exclude\": [],\n \"types\": [],\n \"count\": 5,\n \"context\": \"<string>\",\n \"prompt\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://www.vidguy.ai/api/v1/snacks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"brandId\": \"b7f3a8b2-1234-5678-9abc-def012345678\",\n \"name\": \"<string>\",\n \"callbackUrl\": \"<string>\",\n \"render\": true,\n \"exclude\": [],\n \"types\": [],\n \"count\": 5,\n \"context\": \"<string>\",\n \"prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.vidguy.ai/api/v1/snacks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"brandId\": \"b7f3a8b2-1234-5678-9abc-def012345678\",\n \"name\": \"<string>\",\n \"callbackUrl\": \"<string>\",\n \"render\": true,\n \"exclude\": [],\n \"types\": [],\n \"count\": 5,\n \"context\": \"<string>\",\n \"prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"jobId": "<string>",
"offeringId": "snack_generation",
"status": "queued",
"pollUrl": "<string>",
"creditsReserved": 123,
"instanceId": "<string>",
"render": true,
"exclude": [
"slides"
],
"types": [
"slides"
],
"count": 123,
"snackTypeSequence": [
"slides"
]
}{
"error": "Invalid request",
"message": "<string>",
"details": {}
}{
"error": "Invalid request",
"message": "<string>",
"details": {}
}{
"error": "Invalid request",
"message": "<string>",
"details": {}
}{
"error": "Invalid request",
"message": "<string>",
"details": {}
}{
"error": "Invalid request",
"message": "<string>",
"details": {}
}{
"error": "Invalid request",
"message": "<string>",
"details": {}
}Snacks et mèmes
Create a snack pack
Async, kicks off a snack generation job for a brand. Returns a jobId immediately. Optionally renders the snacks server-side when render: true (+3 credits, URLs in result.renderedAssets[]).
POST
/
api
/
v1
/
snacks
Create a snack pack
curl --request POST \
--url https://www.vidguy.ai/api/v1/snacks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"brandId": "b7f3a8b2-1234-5678-9abc-def012345678",
"name": "<string>",
"callbackUrl": "<string>",
"render": true,
"exclude": [],
"types": [],
"count": 5,
"context": "<string>",
"prompt": "<string>"
}
'import requests
url = "https://www.vidguy.ai/api/v1/snacks"
payload = {
"brandId": "b7f3a8b2-1234-5678-9abc-def012345678",
"name": "<string>",
"callbackUrl": "<string>",
"render": True,
"exclude": [],
"types": [],
"count": 5,
"context": "<string>",
"prompt": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
brandId: 'b7f3a8b2-1234-5678-9abc-def012345678',
name: '<string>',
callbackUrl: '<string>',
render: true,
exclude: [],
types: [],
count: 5,
context: '<string>',
prompt: '<string>'
})
};
fetch('https://www.vidguy.ai/api/v1/snacks', 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://www.vidguy.ai/api/v1/snacks",
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([
'brandId' => 'b7f3a8b2-1234-5678-9abc-def012345678',
'name' => '<string>',
'callbackUrl' => '<string>',
'render' => true,
'exclude' => [
],
'types' => [
],
'count' => 5,
'context' => '<string>',
'prompt' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://www.vidguy.ai/api/v1/snacks"
payload := strings.NewReader("{\n \"brandId\": \"b7f3a8b2-1234-5678-9abc-def012345678\",\n \"name\": \"<string>\",\n \"callbackUrl\": \"<string>\",\n \"render\": true,\n \"exclude\": [],\n \"types\": [],\n \"count\": 5,\n \"context\": \"<string>\",\n \"prompt\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://www.vidguy.ai/api/v1/snacks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"brandId\": \"b7f3a8b2-1234-5678-9abc-def012345678\",\n \"name\": \"<string>\",\n \"callbackUrl\": \"<string>\",\n \"render\": true,\n \"exclude\": [],\n \"types\": [],\n \"count\": 5,\n \"context\": \"<string>\",\n \"prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.vidguy.ai/api/v1/snacks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"brandId\": \"b7f3a8b2-1234-5678-9abc-def012345678\",\n \"name\": \"<string>\",\n \"callbackUrl\": \"<string>\",\n \"render\": true,\n \"exclude\": [],\n \"types\": [],\n \"count\": 5,\n \"context\": \"<string>\",\n \"prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"jobId": "<string>",
"offeringId": "snack_generation",
"status": "queued",
"pollUrl": "<string>",
"creditsReserved": 123,
"instanceId": "<string>",
"render": true,
"exclude": [
"slides"
],
"types": [
"slides"
],
"count": 123,
"snackTypeSequence": [
"slides"
]
}{
"error": "Invalid request",
"message": "<string>",
"details": {}
}{
"error": "Invalid request",
"message": "<string>",
"details": {}
}{
"error": "Invalid request",
"message": "<string>",
"details": {}
}{
"error": "Invalid request",
"message": "<string>",
"details": {}
}{
"error": "Invalid request",
"message": "<string>",
"details": {}
}{
"error": "Invalid request",
"message": "<string>",
"details": {}
}Autorisations
Corps
application/json
Snack types to skip. Still supported with types; exclusions are subtracted after the allow-list is applied.
Maximum array length:
13Options disponibles:
slides, text-wall, ai-ugc, broll-demo, greenscreen-meme, meme-edit, single-image, sticker-pack, static-ad, ugc-ad, animated-ad, greenscreen-ad, music-ad Positive snack-type allow-list. Use with count for packs like 5 greenscreen memes or 5 slide carousels.
Required array length:
1 - 13 elementsOptions disponibles:
slides, text-wall, ai-ugc, broll-demo, greenscreen-meme, meme-edit, single-image, sticker-pack, static-ad, ugc-ad, animated-ad, greenscreen-ad, music-ad Réponse
Snack job accepted.

