Recommend influencers for a brief
curl --request POST \
--url https://api.budgetpixel.com/v1/characters/recommend \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"brief": "A 10-second TikTok ad for a protein shake aimed at gym beginners",
"count": 3,
"include_mine": false
}
'import requests
url = "https://api.budgetpixel.com/v1/characters/recommend"
payload = {
"brief": "A 10-second TikTok ad for a protein shake aimed at gym beginners",
"count": 3,
"include_mine": False
}
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({
brief: 'A 10-second TikTok ad for a protein shake aimed at gym beginners',
count: 3,
include_mine: false
})
};
fetch('https://api.budgetpixel.com/v1/characters/recommend', 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.budgetpixel.com/v1/characters/recommend",
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([
'brief' => 'A 10-second TikTok ad for a protein shake aimed at gym beginners',
'count' => 3,
'include_mine' => false
]),
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://api.budgetpixel.com/v1/characters/recommend"
payload := strings.NewReader("{\n \"brief\": \"A 10-second TikTok ad for a protein shake aimed at gym beginners\",\n \"count\": 3,\n \"include_mine\": false\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://api.budgetpixel.com/v1/characters/recommend")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"brief\": \"A 10-second TikTok ad for a protein shake aimed at gym beginners\",\n \"count\": 3,\n \"include_mine\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.budgetpixel.com/v1/characters/recommend")
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 \"brief\": \"A 10-second TikTok ad for a protein shake aimed at gym beginners\",\n \"count\": 3,\n \"include_mine\": false\n}"
response = http.request(request)
puts response.read_body{
"how_to_use": "<string>",
"recommendations": [
{
"age": "<string>",
"catchphrase": "Obviously.",
"creator": "<string>",
"gender": "<string>",
"handle": "barry",
"mention": "@barry",
"name": "Barry",
"page_url": "https://budgetpixel.com/characters/bfaa78ab-a3c0-4537-b979-b5c851cd6853",
"picture_tags": [
"avatar",
"full_body",
"expressions",
"selfie"
],
"preview_url": "<string>",
"source": "official",
"summary": "<string>",
"title": "Rich in his head",
"traits": [
"<string>"
],
"trend_rank": 123,
"idea": "<string>",
"prompt": "<string>",
"why": "<string>"
}
]
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}Characters
Recommend influencers for a brief
Describe what you are making and the AI casting director picks the BudgetPixel AI
influencers who fit it best, each with why, a content idea and a ready-to-use prompt
that starts with their mention. Set include_mine to consider your own and collected
characters too.
Free — no credits. Limited to 30 calls per day per account.
POST
/
characters
/
recommend
Recommend influencers for a brief
curl --request POST \
--url https://api.budgetpixel.com/v1/characters/recommend \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"brief": "A 10-second TikTok ad for a protein shake aimed at gym beginners",
"count": 3,
"include_mine": false
}
'import requests
url = "https://api.budgetpixel.com/v1/characters/recommend"
payload = {
"brief": "A 10-second TikTok ad for a protein shake aimed at gym beginners",
"count": 3,
"include_mine": False
}
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({
brief: 'A 10-second TikTok ad for a protein shake aimed at gym beginners',
count: 3,
include_mine: false
})
};
fetch('https://api.budgetpixel.com/v1/characters/recommend', 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.budgetpixel.com/v1/characters/recommend",
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([
'brief' => 'A 10-second TikTok ad for a protein shake aimed at gym beginners',
'count' => 3,
'include_mine' => false
]),
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://api.budgetpixel.com/v1/characters/recommend"
payload := strings.NewReader("{\n \"brief\": \"A 10-second TikTok ad for a protein shake aimed at gym beginners\",\n \"count\": 3,\n \"include_mine\": false\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://api.budgetpixel.com/v1/characters/recommend")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"brief\": \"A 10-second TikTok ad for a protein shake aimed at gym beginners\",\n \"count\": 3,\n \"include_mine\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.budgetpixel.com/v1/characters/recommend")
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 \"brief\": \"A 10-second TikTok ad for a protein shake aimed at gym beginners\",\n \"count\": 3,\n \"include_mine\": false\n}"
response = http.request(request)
puts response.read_body{
"how_to_use": "<string>",
"recommendations": [
{
"age": "<string>",
"catchphrase": "Obviously.",
"creator": "<string>",
"gender": "<string>",
"handle": "barry",
"mention": "@barry",
"name": "Barry",
"page_url": "https://budgetpixel.com/characters/bfaa78ab-a3c0-4537-b979-b5c851cd6853",
"picture_tags": [
"avatar",
"full_body",
"expressions",
"selfie"
],
"preview_url": "<string>",
"source": "official",
"summary": "<string>",
"title": "Rich in his head",
"traits": [
"<string>"
],
"trend_rank": 123,
"idea": "<string>",
"prompt": "<string>",
"why": "<string>"
}
]
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}Authorizations
API key as a bearer token: Authorization: Bearer bpx_live_xxx
Body
application/json
What you are making, for whom and where it will be posted.
Maximum string length:
1000Example:
"A 10-second TikTok ad for a protein shake aimed at gym beginners"
Required range:
1 <= x <= 5Also consider your own and collected characters.