Go to the Developer Portal and select API Key from the sidebar menu.
Click Create New Key to begin generating your API key.
Enter a name for the key and (optional) specify allowed IP addresses, then click Create API Key.
Copy your newly created API key and store it securely.
We cannot recover your API Key if you lose it.
2
Step 2: Create a Persona
In this example, we’ll create an interviewer persona with the following settings:
A Phoenix-3 stock replica.
raven-0 as the perception model to enable screen sharing.
Enable smart_turn_detection to use the Sparrow model.
Use the following request body example:
cURL
Copy
Ask AI
curl --request POST \ --url https://tavusapi.com/v2/personas \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "persona_name": "Interviewer", "system_prompt": "As an Interviewer, you are a skilled professional who conducts thoughtful and structured interviews. Your aim is to ask insightful questions, listen carefully, and assess responses objectively to identify the best candidates.", "pipeline_mode": "full", "context": "You have a track record of conducting interviews that put candidates at ease, draw out their strengths, and help organizations make excellent hiring decisions.", "default_replica_id": "rfe12d8b9597", "layers": { "perception": { "perception_model": "raven-0", }, "stt": { "stt_engine": "tavus-advanced", "smart_turn_detection": true } } }'
Tavus offers full layer customizations for your persona. Please see the following for each layer configurations: