curl --request POST \
--url https://platform.perso.ai/api/v1/session/ \
--header 'Content-Type: application/json' \
--header 'PersoPlatform-APIKey: <api-key>' \
--data '
{
"capability": [
"STF_WEBRTC"
],
"prompt": "plp-ce0cd928367c09b3a511e92c4fec5405",
"llm_type": "gpt-4o",
"tts_type": "chohye_volume",
"model_style": "chaehee_livechat-front-black_suit-natural",
"stt_type": "gpt-4o-mini-transcribe"
}
'import requests
url = "https://platform.perso.ai/api/v1/session/"
payload = {
"capability": ["STF_WEBRTC"],
"prompt": "plp-ce0cd928367c09b3a511e92c4fec5405",
"llm_type": "gpt-4o",
"tts_type": "chohye_volume",
"model_style": "chaehee_livechat-front-black_suit-natural",
"stt_type": "gpt-4o-mini-transcribe"
}
headers = {
"PersoPlatform-APIKey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'PersoPlatform-APIKey': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
capability: ['STF_WEBRTC'],
prompt: 'plp-ce0cd928367c09b3a511e92c4fec5405',
llm_type: 'gpt-4o',
tts_type: 'chohye_volume',
model_style: 'chaehee_livechat-front-black_suit-natural',
stt_type: 'gpt-4o-mini-transcribe'
})
};
fetch('https://platform.perso.ai/api/v1/session/', 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://platform.perso.ai/api/v1/session/",
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([
'capability' => [
'STF_WEBRTC'
],
'prompt' => 'plp-ce0cd928367c09b3a511e92c4fec5405',
'llm_type' => 'gpt-4o',
'tts_type' => 'chohye_volume',
'model_style' => 'chaehee_livechat-front-black_suit-natural',
'stt_type' => 'gpt-4o-mini-transcribe'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"PersoPlatform-APIKey: <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://platform.perso.ai/api/v1/session/"
payload := strings.NewReader("{\n \"capability\": [\n \"STF_WEBRTC\"\n ],\n \"prompt\": \"plp-ce0cd928367c09b3a511e92c4fec5405\",\n \"llm_type\": \"gpt-4o\",\n \"tts_type\": \"chohye_volume\",\n \"model_style\": \"chaehee_livechat-front-black_suit-natural\",\n \"stt_type\": \"gpt-4o-mini-transcribe\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("PersoPlatform-APIKey", "<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://platform.perso.ai/api/v1/session/")
.header("PersoPlatform-APIKey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"capability\": [\n \"STF_WEBRTC\"\n ],\n \"prompt\": \"plp-ce0cd928367c09b3a511e92c4fec5405\",\n \"llm_type\": \"gpt-4o\",\n \"tts_type\": \"chohye_volume\",\n \"model_style\": \"chaehee_livechat-front-black_suit-natural\",\n \"stt_type\": \"gpt-4o-mini-transcribe\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.perso.ai/api/v1/session/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["PersoPlatform-APIKey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"capability\": [\n \"STF_WEBRTC\"\n ],\n \"prompt\": \"plp-ce0cd928367c09b3a511e92c4fec5405\",\n \"llm_type\": \"gpt-4o\",\n \"tts_type\": \"chohye_volume\",\n \"model_style\": \"chaehee_livechat-front-black_suit-natural\",\n \"stt_type\": \"gpt-4o-mini-transcribe\"\n}"
response = http.request(request)
puts response.read_body{
"session_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"status": "CREATED",
"prompt": "<string>",
"capability": [
"LLM"
],
"document": "<string>",
"llm_type": "<string>",
"tts_type": "<string>",
"text_normalization_config": "<string>",
"text_normalization_locale": "<string>",
"stt_type": "<string>",
"stt_text_normalization_config": "<string>",
"stt_text_normalization_locale": "<string>",
"model_style": "<string>",
"agent": "<string>",
"agent_config": "<string>",
"interactive_agent_config": "<string>",
"padding_left": 0,
"padding_top": 0.5,
"padding_height": 2.5,
"background_image": "<string>",
"extra_data": "<unknown>",
"mcp_servers": [
"<string>"
]
}Create Session
Create a new interactive session with the specified capabilities.
Capabilities
Choose one or more capabilities for your session. Each capability has different required fields:
| Capability | Description | Required Fields |
|---|---|---|
STF_WEBRTC | Full interactive avatar with video streaming | prompt, llm_type, model_style, tts_type |
STF_ONPREMISE | On-premise avatar rendering | model_style |
LLM | Language model conversation only | prompt, llm_type |
TTS | Text-to-speech only | tts_type |
STT | Speech-to-text only | stt_type |
Note:
STF_WEBRTCandSTF_ONPREMISEcannot be used together.
Note:
interactive_agent_configcannot be combined withllm_typeorprompt— providing either of them alongsideinteractive_agent_configis rejected with400.
Default Behavior
If no capability is specified, the session defaults to STF_WEBRTC.
Example
Select “STF_WEBRTC Session” from the Examples dropdown above to see a complete request example.
curl --request POST \
--url https://platform.perso.ai/api/v1/session/ \
--header 'Content-Type: application/json' \
--header 'PersoPlatform-APIKey: <api-key>' \
--data '
{
"capability": [
"STF_WEBRTC"
],
"prompt": "plp-ce0cd928367c09b3a511e92c4fec5405",
"llm_type": "gpt-4o",
"tts_type": "chohye_volume",
"model_style": "chaehee_livechat-front-black_suit-natural",
"stt_type": "gpt-4o-mini-transcribe"
}
'import requests
url = "https://platform.perso.ai/api/v1/session/"
payload = {
"capability": ["STF_WEBRTC"],
"prompt": "plp-ce0cd928367c09b3a511e92c4fec5405",
"llm_type": "gpt-4o",
"tts_type": "chohye_volume",
"model_style": "chaehee_livechat-front-black_suit-natural",
"stt_type": "gpt-4o-mini-transcribe"
}
headers = {
"PersoPlatform-APIKey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'PersoPlatform-APIKey': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
capability: ['STF_WEBRTC'],
prompt: 'plp-ce0cd928367c09b3a511e92c4fec5405',
llm_type: 'gpt-4o',
tts_type: 'chohye_volume',
model_style: 'chaehee_livechat-front-black_suit-natural',
stt_type: 'gpt-4o-mini-transcribe'
})
};
fetch('https://platform.perso.ai/api/v1/session/', 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://platform.perso.ai/api/v1/session/",
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([
'capability' => [
'STF_WEBRTC'
],
'prompt' => 'plp-ce0cd928367c09b3a511e92c4fec5405',
'llm_type' => 'gpt-4o',
'tts_type' => 'chohye_volume',
'model_style' => 'chaehee_livechat-front-black_suit-natural',
'stt_type' => 'gpt-4o-mini-transcribe'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"PersoPlatform-APIKey: <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://platform.perso.ai/api/v1/session/"
payload := strings.NewReader("{\n \"capability\": [\n \"STF_WEBRTC\"\n ],\n \"prompt\": \"plp-ce0cd928367c09b3a511e92c4fec5405\",\n \"llm_type\": \"gpt-4o\",\n \"tts_type\": \"chohye_volume\",\n \"model_style\": \"chaehee_livechat-front-black_suit-natural\",\n \"stt_type\": \"gpt-4o-mini-transcribe\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("PersoPlatform-APIKey", "<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://platform.perso.ai/api/v1/session/")
.header("PersoPlatform-APIKey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"capability\": [\n \"STF_WEBRTC\"\n ],\n \"prompt\": \"plp-ce0cd928367c09b3a511e92c4fec5405\",\n \"llm_type\": \"gpt-4o\",\n \"tts_type\": \"chohye_volume\",\n \"model_style\": \"chaehee_livechat-front-black_suit-natural\",\n \"stt_type\": \"gpt-4o-mini-transcribe\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.perso.ai/api/v1/session/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["PersoPlatform-APIKey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"capability\": [\n \"STF_WEBRTC\"\n ],\n \"prompt\": \"plp-ce0cd928367c09b3a511e92c4fec5405\",\n \"llm_type\": \"gpt-4o\",\n \"tts_type\": \"chohye_volume\",\n \"model_style\": \"chaehee_livechat-front-black_suit-natural\",\n \"stt_type\": \"gpt-4o-mini-transcribe\"\n}"
response = http.request(request)
puts response.read_body{
"session_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"status": "CREATED",
"prompt": "<string>",
"capability": [
"LLM"
],
"document": "<string>",
"llm_type": "<string>",
"tts_type": "<string>",
"text_normalization_config": "<string>",
"text_normalization_locale": "<string>",
"stt_type": "<string>",
"stt_text_normalization_config": "<string>",
"stt_text_normalization_locale": "<string>",
"model_style": "<string>",
"agent": "<string>",
"agent_config": "<string>",
"interactive_agent_config": "<string>",
"padding_left": 0,
"padding_top": 0.5,
"padding_height": 2.5,
"background_image": "<string>",
"extra_data": "<unknown>",
"mcp_servers": [
"<string>"
]
}Body
Identifier of the text-normalization config applied to TTS input. Configs bundle regex rulesets that rewrite text before speech synthesis (e.g. 20℉ → 화씨 20도, ₩1,000 → 1,000 원).
1Optional interactive-agent config identifier (pliac-*). When set, llm.request turns run on the external interactive-agent server instead of a single-shot completion. Cannot be combined with llm_type or prompt — providing either alongside is rejected.
1
