curl --request POST \
--url https://api.jogg.ai/v1/ai_scripts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"language": "english",
"product_id": "NTQ0MTkzNjg",
"name": "Owala FreeSip Insulated Stainless Steel Water Bottle with Straw for Sports.",
"description": "Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. ",
"target_audience": "",
"video_length": "15"
}
'import requests
url = "https://api.jogg.ai/v1/ai_scripts"
payload = {
"language": "english",
"product_id": "NTQ0MTkzNjg",
"name": "Owala FreeSip Insulated Stainless Steel Water Bottle with Straw for Sports.",
"description": "Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. ",
"target_audience": "",
"video_length": "15"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
language: 'english',
product_id: 'NTQ0MTkzNjg',
name: 'Owala FreeSip Insulated Stainless Steel Water Bottle with Straw for Sports.',
description: 'Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. ',
target_audience: '',
video_length: '15'
})
};
fetch('https://api.jogg.ai/v1/ai_scripts', 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.jogg.ai/v1/ai_scripts",
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([
'language' => 'english',
'product_id' => 'NTQ0MTkzNjg',
'name' => 'Owala FreeSip Insulated Stainless Steel Water Bottle with Straw for Sports.',
'description' => 'Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. ',
'target_audience' => '',
'video_length' => '15'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.jogg.ai/v1/ai_scripts"
payload := strings.NewReader("{\n \"language\": \"english\",\n \"product_id\": \"NTQ0MTkzNjg\",\n \"name\": \"Owala FreeSip Insulated Stainless Steel Water Bottle with Straw for Sports.\",\n \"description\": \"Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. \",\n \"target_audience\": \"\",\n \"video_length\": \"15\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.jogg.ai/v1/ai_scripts")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"language\": \"english\",\n \"product_id\": \"NTQ0MTkzNjg\",\n \"name\": \"Owala FreeSip Insulated Stainless Steel Water Bottle with Straw for Sports.\",\n \"description\": \"Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. \",\n \"target_audience\": \"\",\n \"video_length\": \"15\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jogg.ai/v1/ai_scripts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"language\": \"english\",\n \"product_id\": \"NTQ0MTkzNjg\",\n \"name\": \"Owala FreeSip Insulated Stainless Steel Water Bottle with Straw for Sports.\",\n \"description\": \"Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. \",\n \"target_audience\": \"\",\n \"video_length\": \"15\"\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"msg": "<string>",
"data": {
"generated_scripts": [
{
"script_paragraphs": "Ever tried drinking water while running? It's like a comedy show!You either spill it all over or look like a fish out of water.Then I found the Owala FreeSip bottle—game changer.",
"script_style": "Storytime."
}
]
}
}AI Scripts
Simply provide the product information or the product_id generated in the Upload URL to create product, and you can create several different styles of product introduction scripts.If you do not provide the product_id, then the product’s name and description are required.
curl --request POST \
--url https://api.jogg.ai/v1/ai_scripts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"language": "english",
"product_id": "NTQ0MTkzNjg",
"name": "Owala FreeSip Insulated Stainless Steel Water Bottle with Straw for Sports.",
"description": "Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. ",
"target_audience": "",
"video_length": "15"
}
'import requests
url = "https://api.jogg.ai/v1/ai_scripts"
payload = {
"language": "english",
"product_id": "NTQ0MTkzNjg",
"name": "Owala FreeSip Insulated Stainless Steel Water Bottle with Straw for Sports.",
"description": "Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. ",
"target_audience": "",
"video_length": "15"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
language: 'english',
product_id: 'NTQ0MTkzNjg',
name: 'Owala FreeSip Insulated Stainless Steel Water Bottle with Straw for Sports.',
description: 'Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. ',
target_audience: '',
video_length: '15'
})
};
fetch('https://api.jogg.ai/v1/ai_scripts', 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.jogg.ai/v1/ai_scripts",
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([
'language' => 'english',
'product_id' => 'NTQ0MTkzNjg',
'name' => 'Owala FreeSip Insulated Stainless Steel Water Bottle with Straw for Sports.',
'description' => 'Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. ',
'target_audience' => '',
'video_length' => '15'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.jogg.ai/v1/ai_scripts"
payload := strings.NewReader("{\n \"language\": \"english\",\n \"product_id\": \"NTQ0MTkzNjg\",\n \"name\": \"Owala FreeSip Insulated Stainless Steel Water Bottle with Straw for Sports.\",\n \"description\": \"Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. \",\n \"target_audience\": \"\",\n \"video_length\": \"15\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.jogg.ai/v1/ai_scripts")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"language\": \"english\",\n \"product_id\": \"NTQ0MTkzNjg\",\n \"name\": \"Owala FreeSip Insulated Stainless Steel Water Bottle with Straw for Sports.\",\n \"description\": \"Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. \",\n \"target_audience\": \"\",\n \"video_length\": \"15\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jogg.ai/v1/ai_scripts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"language\": \"english\",\n \"product_id\": \"NTQ0MTkzNjg\",\n \"name\": \"Owala FreeSip Insulated Stainless Steel Water Bottle with Straw for Sports.\",\n \"description\": \"Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. \",\n \"target_audience\": \"\",\n \"video_length\": \"15\"\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"msg": "<string>",
"data": {
"generated_scripts": [
{
"script_paragraphs": "Ever tried drinking water while running? It's like a comedy show!You either spill it all over or look like a fish out of water.Then I found the Owala FreeSip bottle—game changer.",
"script_style": "Storytime."
}
]
}
}Body
Script generation language (defaults to English if not specified):
-
english - English
-
filipino - Filipino
-
french - French
-
german - German
-
hindi - Hindi
-
indonesian - Indonesian
-
italian - Italian
-
japanese - Japanese
-
korean - Korean
-
malay - Malay
-
portuguese - Portuguese
-
russian - Russian
-
spanish - Spanish
-
thai - Thai
-
vietnamese - Vietnamese
-
arabic - Arabic
-
greek - Greek
-
turkish - Turkish
-
slovenian - Slovenian
-
croatian - Croatian
-
romanian - Romanian
-
chinese - Simplified Chinese
-
bengali - Bengali
-
urdu - Urdu
-
hungarian - Hungarian
-
traditional-chinese - Traditional Chinese
-
polish - Polish
-
cantonese - Cantonese
-
danish - Danish
-
malayalam - Malayalam
-
tamil - Tamil
-
telugu - Telugu
-
czech - Czech
-
hebrew - Hebrew
-
zulu - Zulu
-
swedish - Swedish
-
lithuanian - Lithuanian
-
dutch - Dutch
-
flemish - Flemish
-
norwegian - Norwegian
-
finnish - Finnish
-
bulgarian - Bulgarian
-
latvian - Latvian
-
ukrainian - Ukrainian
-
mongolian - Mongolian
-
persian - Persian
-
odia - Odia
-
assamese - Assamese
-
kannada - Kannada
-
tagalog - Tagalog
-
amharic - Amharic
-
serbian - Serbian
-
slovak - Slovak
-
swahili - Swahili
english, filipino, french, german, hindi, indonesian, italian, japanese, korean, malay, portuguese, russian, spanish, thai, vietnamese, arabic, greek, turkish, slovenian, croatian, romanian, chinese, bengali, urdu, hungarian, traditional-chinese, polish, cantonese, danish, malayalam, tamil, telugu, czech, hebrew, zulu, swedish, lithuanian, dutch, flemish, norwegian, finnish, bulgarian, latvian, ukrainian, mongolian, persian, odia, assamese, kannada, tagalog, amharic, serbian, slovak, swahili "english"
Product introduction and selling points
"Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. "
Response
Success

