BaiduERNIEWenxinTutorial
Baidu ERNIE API Integration: ERNIE 4.5 Turbo and X1.1 Reasoning Models
Baidu ERNIE LLMs have deep expertise in Chinese NLP. ERNIE 4.5 Turbo is ideal for long document understanding; ERNIE X1.1 is a reasoning model for complex tasks.
ERNIE Model Series
ERNIE 4.5 Turbo is the main general model, ideal for Chinese long documents, multi-turn conversation, and knowledge Q&A; ERNIE X1.1 is a reasoning model for complex logic and agent tasks.
Chinese NLP Advantages
Baidu has years of accumulation in Chinese NLP. ERNIE models excel at Chinese semantic understanding, idioms, and cultural background knowledge.
Integration Method
curl https://chinawhapi.com/v1/chat/completions -H "Authorization: Bearer {key}" -d '{"model":"ernie-4.5-turbo-latest","messages":[{"role":"user","content":"Analyze the risk clauses in this contract"}]}'