Skip to content

Translate a v2 Presentation

POST https://api.slidespeak.co/api/v2/presentation/translate

Translates an existing presentation into another language and exports it to PowerPoint. Translation is asynchronous. The endpoint returns a task_id; poll /task_status/{task_id} until SUCCESS, then use the returned request_id with /presentation/download/{request_id}.


Content-Type: string

application/json

X-API-Key: string

The API key to use for the request.


presentation_id: string

The ID of a presentation created with your API key. It must not be empty, and the presentation must belong to the same user as the API key. To translate your own PowerPoint file, first import it with /presentation/import to get a presentation_id.

language: string

The target language to translate the presentation into. Pass either a language code (SPANISH, PORTUGUESE_BRAZIL) or its English name (Spanish, Portuguese (Brazil)) — matching is case-insensitive. See Supported Languages for the full list.


Terminal window
curl -X POST "https://api.slidespeak.co/api/v2/presentation/translate" -H "Content-Type: application/json" -H "X-API-Key: YOUR_API_KEY" -d '{
"presentation_id": "cmgt32cut0000h3ovex8dbzmn",
"language": "SPANISH"
}'

{
"presentation_id": "cmgt32cut0000h3ovex8dbzmn",
"language": "SPANISH"
}

{
"task_id": "7f9801d8-c8bf-45c3-9fe7-d024b5a76f69"
}

Poll /task_status/{task_id} until task_status is SUCCESS. The task_result contains the request_id to use with /presentation/download/{request_id}.

{
"task_id": "7f9801d8-c8bf-45c3-9fe7-d024b5a76f69",
"task_status": "SUCCESS",
"task_result": {
"presentation_id": "cmgt32cut0000h3ovex8dbzmn",
"request_id": "7f9801d8-c8bf-45c3-9fe7-d024b5a76f69"
}
}

Translation costs 1 API credit per slide. Credits are checked before the task starts and charged once translation succeeds. See API Credits for details.


  • presentation_id is required, must be non-empty, and must belong to your API key.
  • language is required and must match one of the supported languages (by code or English name, case-insensitive). Unsupported values are rejected with a 422.
  • You must have enough credits for the presentation’s slide count.
  • Unknown request fields are rejected.

Pass the code or the English name, in any casing. The value is normalized to the code.

CodeLanguage
CHINESE_SIMPLIFIEDChinese (Simplified)
CHINESE_TRADITIONAL_TAIWANChinese (Traditional, Taiwan)
CHINESE_TRADITIONAL_HONG_KONGChinese (Traditional, Hong Kong)
SPANISHSpanish
SPANISH_MEXICOSpanish (Mexico)
ENGLISHEnglish (U.S.)
ENGLISH_UKEnglish (U.K.)
ENGLISH_IRELANDEnglish (Ireland)
ENGLISH_AUSTRALIAEnglish (Australia)
ENGLISH_CANADAEnglish (Canada)
BENGALIBengali
HINDIHindi
PORTUGUESEPortuguese
PORTUGUESE_BRAZILPortuguese (Brazil)
RUSSIANRussian
JAPANESEJapanese
GERMAN, STANDARDGerman
GERMAN_SWITZERLANDGerman (Switzerland)
GERMAN_AUSTRIAGerman (Austria)
JAVANESEJavanese
KOREANKorean
FRENCHFrench
FRENCH (Canada)French (Canada)
FRENCH (Switzerland)French (Switzerland)
VIETNAMESEVietnamese
TELUGUTelugu
MARATHIMarathi
TAMILTamil
TURKISHTurkish
URDUUrdu
GUJARATIGujarati
POLISHPolish
ARABICArabic
ARABIC_SAUDI_ARABIAArabic (Saudi Arabia)
UKRAINIANUkrainian
ITALIANItalian
MALAYALAMMalayalam
KANNADAKannada
ORIYAOriya
PUNJABI_PAKISTANPunjabi (Pakistan)
SUNDASundanese
PUNJABI_INDIAPunjabi (India)
ROMANIANRomanian
BHOJPURIBhojpuri
AZERBAIJANI_IRANAzerbaijani (Iran)
MAITHILIMaithili
HAUSAHausa
BURMESEBurmese
KARENKaren
CROATIANCroatian
SERBIANSerbian
AWADHIAwadhi
THAIThai
DUTCHDutch
YORUBAYoruba
SINDHISindhi
UZBEK, NORTHERNUzbek, Northern
MALAYMalay
AMHARICAmharic
INDONESIANIndonesian
IGBOIgbo
TAGALOGTagalog
NEPALINepali
SARAIKISaraiki
CEBUANOCebuano
ASSAMESEAssamese
HUNGARIANHungarian
CHITTAGONIANChittagonian
MADURAMadura
SINHALASinhala
HARYANVIHaryanvi
MARWARIMarwari
CZECHCzech
GREEKGreek
MAGAHIMagahi
CHHATTISGARHIChhattisgarhi
DECCANDeccan
BELARUSIANBelarusian
ZHUANG, NORTHERNZhuang, Northern
PASHTO_PAKISTANPashto (Pakistan)
SOMALISomali
MALAGASYMalagasy
RWANDARwanda
ZULUZulu
BULGARIANBulgarian
SWEDISHSwedish
LOMBARDLombard
OROMO, WEST-CENTRALOromo, West-Central
PASHTO_AFGHANISTANPashto (Afghanistan)
KAZAKHKazakh
ILOCANOIlocano
TATARTatar
FULFULDE, NIGERIANFulfulde, Nigerian
UYGHURUyghur
HAITIAN CREOLE FRENCHHaitian Creole French
AZERBAIJANIAzerbaijani
AFRIKAANSAfrikaans
ALBANIANAlbanian
ARMENIANArmenian
BASQUEBasque
BOSNIANBosnian
CATALANCatalan
DANISHDanish
ESPERANTOEsperanto
ESTONIANEstonian
FINNISHFinnish
GANDAGanda
GEORGIANGeorgian
HEBREWHebrew
ICELANDICIcelandic
IRISHIrish
LATINLatin
LATVIANLatvian
LITHUANIANLithuanian
MACEDONIANMacedonian
MAORIMaori
MONGOLIANMongolian
NORWEGIAN_BOKMALNorwegian Bokmål
NORWEGIAN_NYNORSKNorwegian Nynorsk
PERSIANPersian
SHONAShona
SLOVAKSlovak
SLOVENESlovenian
SOTHOSotho
SWAHILISwahili
TSONGATonga
TSWANATswana
WELSHWelsh
XHOSAXhosa