SelamGPT PlatformSelamGPT
docs v1.0.0
GET
/languagesList Languages
Lists all supported languages for translation and text-to-speech features.
Multi-Language Support
SelamGPT supports over 100 languages for translation and TTS, including Ethiopian languages like Amharic, Tigrinya, and Oromo.
Request
This endpoint requires no parameters. Simply make a GET request with your API key.
Response
1{
2 "languages": [
3 {
4 "code": "en",
5 "name": "English",
6 "native_name": "English",
7 "supports_translation": true,
8 "supports_tts": true
9 },
10 {
11 "code": "am",
12 "name": "Amharic",
13 "native_name": "አማርኛ",
14 "supports_translation": true,
15 "supports_tts": true
16 },
17 {
18 "code": "ti",
19 "name": "Tigrinya",
20 "native_name": "ትግርኛ",
21 "supports_translation": true,
22 "supports_tts": true
23 }
24 ]
25}Examples
1import requests
2
3response = requests.get(
4 "https://api.selamgpt.com/v1/languages",
5 headers={"Authorization": "Bearer YOUR_API_KEY"}
6)
7
8languages = response.json()["languages"]
9
10for lang in languages:
11 print(f"{lang['name']} ({lang['code']}) - TTS: {lang['supports_tts']}")Was this page helpful?