Developer platform
Playground
Start a conversation
In Derja, French, or both.
Enter to send
- First token
- –
- Total
- –
- Chunks
- –
curl https://baarcha.tn/api/v1/chat/completions \
-N \
-H "Authorization: Bearer $BAARCHA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hannibal",
"messages": [
{
"role": "user",
"content": "شكونك إنتي بالضبط؟"
}
],
"temperature": 0.7,
"max_tokens": 512,
"stream": true
}'Runs against the public v1 API with your key. This page executes the same call keylessly as a demo.
Transcribe your audio
Record or upload speech in Tunisian Derja.
Audio input
Record a clip or upload an audio file up to 8 MB.
- Latency
- –
curl https://baarcha.tn/api/v1/audio/transcriptions \
-H "Authorization: Bearer $BAARCHA_API_KEY" \
-F file=@'female-street.mp3' \
-F model=fennecRuns against the public v1 API with your key. This page executes the same call keylessly as a demo.
Turn text into speech
Write in Tunisian Derja, choose a voice, and listen.
0 / 5,000 characters
Dido · Text to speech
- First byte
- –
- Total
- –
curl https://baarcha.tn/api/v1/audio/speech \
-H "Authorization: Bearer $BAARCHA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dido",
"input": "الشارع مسكر اليوم على خاطر الأشغال، لازم نعملو دورة طويلة باش نوصلو للخدمة في الوقت.",
"voice": "female"
}' \
--output speech.mp3Runs against the public v1 API with your key. This page executes the same call keylessly as a demo.
Clone a voice with the API
curl https://baarcha.tn/api/v1/voices \
-H "Authorization: Bearer $BAARCHA_API_KEY" \
-F name='صوتي' \
-F consent=true \
-F sample=@'take-one.wav'Returns a vc_… id to use as voice in the speech request. Consent is required. See the voices reference for recording requirements and voice status.