Loading...
Loading...
Compare original and translation side by side
curl -X POST https://tavusapi.com/v2/personas \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"persona_name": "Technical Interviewer",
"pipeline_mode": "full",
"system_prompt": "You are a senior technical interviewer...",
"context": "Focus on system design and coding problems.",
"default_replica_id": "rfe12d8b9597",
"layers": {
"llm": {...},
"tts": {...},
"perception": {...},
"stt": {...}
}
}'curl -X POST https://tavusapi.com/v2/personas \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"persona_name": "Technical Interviewer",
"pipeline_mode": "full",
"system_prompt": "You are a senior technical interviewer...",
"context": "Focus on system design and coding problems.",
"default_replica_id": "rfe12d8b9597",
"layers": {
"llm": {...},
"tts": {...},
"perception": {...},
"stt": {...}
}
}'{
"layers": {
"llm": {
"model": "tavus-gpt-4o"
}
}
}tavus-gpt-4otavus-gpt-4o-minitavus-llama{
"layers": {
"llm": {
"model": "tavus-gpt-4o"
}
}
}tavus-gpt-4otavus-gpt-4o-minitavus-llama{
"layers": {
"llm": {
"model": "gpt-4-turbo",
"base_url": "https://api.openai.com/v1",
"api_key": "sk-...",
"speculative_inference": true
}
}
}{
"layers": {
"llm": {
"model": "gpt-4-turbo",
"base_url": "https://api.openai.com/v1",
"api_key": "sk-...",
"speculative_inference": true
}
}
}{
"layers": {
"llm": {
"model": "tavus-gpt-4o",
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get current weather for a location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "City and state"
}
},
"required": ["location"]
}
}
}
]
}
}
}{
"layers": {
"llm": {
"model": "tavus-gpt-4o",
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get current weather for a location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "City and state"
}
},
"required": ["location"]
}
}
}
]
}
}
}{
"layers": {
"tts": {
"tts_engine": "cartesia",
"voice_id": "your-cartesia-voice-id"
}
}
}{
"layers": {
"tts": {
"tts_engine": "cartesia",
"voice_id": "your-cartesia-voice-id"
}
}
}{
"layers": {
"tts": {
"tts_engine": "elevenlabs",
"voice_id": "your-elevenlabs-voice-id",
"api_key": "your-elevenlabs-key"
}
}
}{
"layers": {
"tts": {
"tts_engine": "elevenlabs",
"voice_id": "your-elevenlabs-voice-id",
"api_key": "your-elevenlabs-key"
}
}
}{
"layers": {
"tts": {
"tts_engine": "playht",
"voice_id": "your-playht-voice-id",
"api_key": "your-playht-key"
}
}
}{
"layers": {
"tts": {
"tts_engine": "playht",
"voice_id": "your-playht-voice-id",
"api_key": "your-playht-key"
}
}
}{
"layers": {
"perception": {
"perception_model": "raven-0",
"ambient_awareness": true
}
}
}{
"layers": {
"perception": {
"perception_model": "raven-0",
"ambient_awareness": true
}
}
}{
"layers": {
"stt": {
"smart_turn_detection": true,
"participant_pause_sensitivity": "medium",
"participant_interrupt_sensitivity": "medium"
}
}
}lowmediumhigh{
"layers": {
"stt": {
"smart_turn_detection": true,
"participant_pause_sensitivity": "medium",
"participant_interrupt_sensitivity": "medium"
}
}
}lowmediumhigh{ "pipeline_mode": "full" }{ "pipeline_mode": "full" }{ "pipeline_mode": "echo" }{ "pipeline_mode": "echo" }{
"pipeline_mode": "full",
"audio_only": true
}{
"pipeline_mode": "full",
"audio_only": true
}curl -X PATCH https://tavusapi.com/v2/personas/{persona_id} \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"system_prompt": "Updated prompt...",
"context": "New context..."
}'curl -X PATCH https://tavusapi.com/v2/personas/{persona_id} \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"system_prompt": "Updated prompt...",
"context": "New context..."
}'undefinedundefinedundefinedundefined