Skip to main content
Sunflower is Sunbird AI’s family of large language models, fine-tuned for African languages and cultural context. It provides conversational AI through an OpenAI-compatible endpoint: POST /tasks/chat/completions. Because the request and response formats mirror the OpenAI Chat Completions API, you can move between the OpenAI API and the Sunbird API by changing only the base URL and API key.

Choosing a Model

Select a model with the model field. Two models are available:
sunflower-9b is the default when model is omitted — pass "model": "sunflower-14b" to keep using the 14B model. The old identifier Sunbird/Sunflower-14B is no longer accepted — sending it returns a 400 error asking you to use sunflower-14b instead.
sunflower-9b — supported languages (67 African languages, grouped by the model’s understanding tier):
  • Good: Afrikaans, Zulu, Nigerian Pidgin, Chichewa, Swahili, Xhosa, Somali, Lingala, Sotho, Igbo, Malagasy, Kinyarwanda, Hausa, Tswana, Yoruba, Luganda, Shona, Ndebele, Amharic, Kirundi, Runyoro, Luo, Ewe, Runyankole.
  • Moderate: Kikuyu, Lusoga, Acholi, Rukiga, Rutooro, Oromo, Bemba, Ruruuli, Akan, Lango, Lugwere, Lugbara, Kumam, Lugungu, Lumasaba, Ateso, Lunyole.
  • Basic: Kabyle, Rukonjo, Bambara, Lubwisi, Wolof, Samia, Jopadhola, Alur, Bari, Kakwa, Dagbani, Karamojong, Berber, Fulani, Kwamba, Ma’di, Aringa, Luhya, Kalenjin, Kupsabiny, Lendu, Dagaare, Ik, Pokot, Kanuri, Dinka.
sunflower-14b — supported languages (English + 31 Ugandan/regional): Acholi (ach), Alur (alz), Aringa (luc), Ateso (teo), Bari (bfa), English (eng), Jopadhola (adh), Kakwa (keo), Karamojong (kdj), Kinyarwanda (kin), Kumam (kdi), Kupsabiny (kpz), Kwamba (rwm), Lango (laj), Lubwisi (tlj), Lugbara (lgg), Lugungu (rub), Lugwere (gwr), Luganda (lug), Lumasaba (myx), Lunyole (nuj), Ma’di (mhi), Pokot (pok), Rukiga (cgg), Rukonjo (koo), Runyankole (nyn), Runyoro (nyo), Ruruuli (ruc), Rutooro (ttj), Samia (lsm), Swahili (swa), Lusoga (xog).
Per-language quality scales with the amount of training data available for each language. Full evaluations and language codes are on the model pages: sunflower-14b and sunflower-qwen3.5-9b.

Chat Completion

Example Request

Response

Using the OpenAI SDK

Because the endpoint is OpenAI-compatible, the official OpenAI Python SDK works out of the box — just point base_url at https://api.sunbird.ai/tasks:

Multi-turn Conversations

Maintain context by sending the running message history. Each message has a role and content:
  • system: Sets the behavior and persona of the AI. When omitted, each model applies its own default Sunflower system message.
  • user: The input from the human user.
  • assistant: A previous response from the AI (used for history).

Streaming

Set "stream": true to receive Server-Sent Events in OpenAI chat.completion.chunk format, terminated by data: [DONE]. With the OpenAI SDK:

Supported Parameters