cURL
curl -X POST "https://api.pikzels.com/v2/title/text" \
-H "X-Api-Key: pkz_yourapikey" \
-H "Content-Type: application/json" \
--data-raw '{
"prompt": "I bought my own island"
}'import requests
url = "https://api.pikzels.com/v2/title/text"
headers = {
"X-Api-Key": "pkz_yourapikey",
"Content-Type": "application/json",
}
payload = {
"prompt": "I bought my own island"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())const url = "https://api.pikzels.com/v2/title/text";
const body = {
"prompt": "I bought my own island"
};
const options = {
method: "POST",
headers: {
"X-Api-Key": "pkz_yourapikey",
"Content-Type": "application/json",
},
body: JSON.stringify(body),
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data);<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pikzels.com/v2/title/text",
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([
'prompt' => 'I bought my own island'
]),
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.pikzels.com/v2/title/text"
payload := strings.NewReader("{\n \"prompt\": \"I bought my own island\"\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.pikzels.com/v2/title/text")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"I bought my own island\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pikzels.com/v2/title/text")
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 \"prompt\": \"I bought my own island\"\n}"
response = http.request(request)
puts response.read_body{
"outputs": [
"From 0 to 1M Subscribers: Lessons from My First Island Launch",
"I Bought My First Island (And You Can Too)",
"How a Beginner Built Their First Island in 30 Days"
],
"prompt_compacted": true,
"reasoning": "The titles emphasize curiosity, scale, and a clear creator journey.",
"request_id": "18b2ad5e-2a9e-4d3f-b9a8-9f2a1e0b1234"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}Titles
Generate titles
Generate title suggestions from text, a thumbnail, or both.
POST
/
v2
/
title
/
text
cURL
curl -X POST "https://api.pikzels.com/v2/title/text" \
-H "X-Api-Key: pkz_yourapikey" \
-H "Content-Type: application/json" \
--data-raw '{
"prompt": "I bought my own island"
}'import requests
url = "https://api.pikzels.com/v2/title/text"
headers = {
"X-Api-Key": "pkz_yourapikey",
"Content-Type": "application/json",
}
payload = {
"prompt": "I bought my own island"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())const url = "https://api.pikzels.com/v2/title/text";
const body = {
"prompt": "I bought my own island"
};
const options = {
method: "POST",
headers: {
"X-Api-Key": "pkz_yourapikey",
"Content-Type": "application/json",
},
body: JSON.stringify(body),
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data);<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pikzels.com/v2/title/text",
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([
'prompt' => 'I bought my own island'
]),
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.pikzels.com/v2/title/text"
payload := strings.NewReader("{\n \"prompt\": \"I bought my own island\"\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.pikzels.com/v2/title/text")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"I bought my own island\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pikzels.com/v2/title/text")
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 \"prompt\": \"I bought my own island\"\n}"
response = http.request(request)
puts response.read_body{
"outputs": [
"From 0 to 1M Subscribers: Lessons from My First Island Launch",
"I Bought My First Island (And You Can Too)",
"How a Beginner Built Their First Island in 30 Days"
],
"prompt_compacted": true,
"reasoning": "The titles emphasize curiosity, scale, and a clear creator journey.",
"request_id": "18b2ad5e-2a9e-4d3f-b9a8-9f2a1e0b1234"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
},
"request_id": "<string>"
}Authorizations
Your Pikzels API key (prefix: pkz_)
Body
application/json
- Option 1
- Option 2
- Option 3
Topic or video description. Requires at least 1 of prompt or a support image. Prompts longer than 750 characters may be automatically shortened before generation; the response reports this via prompt_compacted
Required string length:
1 - 3000Thumbnail or support image, HTTPS URL. Also accepts YouTube video URLs. If both support_image_url and support_image_base64 are provided, support_image_url is used.
Pattern:
^https://\S+$Thumbnail or support image, base64 data URL. If both support_image_url and support_image_base64 are provided, support_image_url is used.
Pattern:
^data:image/[a-zA-Z0-9.+-]+;base64,⌘I
