Tencent Hunyuan Role is tuned for character role-play and persona-consistent dialogue - ideal for companion apps, games and interactive fiction. Not available on OpenRouter.
curl https://aiapi-pro.com/v1/chat/completions \
-H "Authorization: Bearer $NOVAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hunyuan-role",
"messages": [{"role":"user","content":"Stay in character as a witty pirate captain and greet your crew."}]
}'
from openai import OpenAI
client = OpenAI(
base_url="https://aiapi-pro.com/v1",
api_key="YOUR_NOVAI_API_KEY",
)
resp = client.chat.completions.create(
model="hunyuan-role",
messages=[{"role":"user","content":"Stay in character as a witty pirate captain and greet your crew."}],
)
print(resp.choices[0].message.content)