Skip to main content

Djelia Extensions

Djelia extends the OpenAI request format wherever possible, while introducing additional options through a dedicated djelia object for settings unique to the platform.

Sending JSON Requests

Each client exposes arbitrary body fields its own way. Pick yours:

Use the extra_body parameter to include Djelia-specific options:

translation = client.chat.completions.create(
model="banjugu-1",
messages=[{"role": "user", "content": "Bonjour"}],
extra_body={
"djelia": {
"source_language": "fra_Latn",
"target_language": "bam_Latn",
}
},
)

For a full example, see our Python integration guide.

Translation Language Pair

When using the banjugu-1 model, both source and target languages are required:

FieldAccepted values
djelia.source_languagebam_Latn, fra_Latn, eng_Latn
djelia.target_languagebam_Latn, fra_Latn, eng_Latn

The source and target language codes must differ. Requests with missing, unknown, or identical codes will receive a 400 error.

Speech Sampling Options

The jifili-1 model accepts the following optional parameters:

FieldRange
djelia.temperature0.0 to 2.0
djelia.top_pGreater than 0.0, up to and including 1.0
djelia.repetition_penaltyGreater than 0.0, up to 2.0

Any omitted parameter will use the model server’s default value.
jifili-1 uses the fixed voice moussa and does not support the deprecated djelia.description or djelia.speaker fields.

Voice behavior details:

  • Until September 19, 2026, djelia-tts-v1 selects voices using the numeric djelia.speaker and ignores voice and djelia.description.
  • djelia-tts-v2 recognizes djelia.description.
  • jifili-1 uses only the voice field.

For jifili-1, the moussa voice is available along with OpenAI voice names mapped to it: alloy, nova, and coral. Any other name results in a 400 unsupported_voice error.

The djelia.chunk_size field (0.1 to 2.0 seconds, default 1.0) is validated but ignored by jifili-1, as chunk size is determined by Djelia itself.

Multipart Requests

Endpoints /audio/transcriptions and /audio/translations expect multipart/form-data rather than a JSON djelia object.
To request translation into French, add the form field language=fra_Latn. If omitted, English (eng_Latn) is used by default.