curl
Useful for checking a key, debugging a payload, or calling Djelia from a language with no OpenAI SDK.
Speech
curl https://api.djelia.cloud/openai/v1/audio/speech \
-H "Authorization: Bearer $DJELIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "jifili-1",
"input": "Aw ni ce, i ka kene wa?",
"voice": "moussa"
}' \
--output hello.mp3
Transcription
curl https://api.djelia.cloud/openai/v1/audio/transcriptions \
-H "Authorization: Bearer $DJELIA_API_KEY" \
-F file=@hello.mp3 \
-F model=sunjata-1
Translating speech to French
curl https://api.djelia.cloud/openai/v1/audio/translations \
-H "Authorization: Bearer $DJELIA_API_KEY" \
-F file=@hello.mp3 \
-F model=sunjata-1 \
-F language=fra_Latn
Translating text
The djelia extension object is a plain top-level key in the JSON body.
curl https://api.djelia.cloud/openai/v1/chat/completions \
-H "Authorization: Bearer $DJELIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "banjugu-1",
"messages": [{"role": "user", "content": "Bonjour, comment allez-vous ?"}],
"djelia": {"source_language": "fra_Latn", "target_language": "bam_Latn"}
}'
Listing models
curl https://api.djelia.cloud/openai/v1/models \
-H "Authorization: Bearer $DJELIA_API_KEY"