Cao Pi (onyomi: Sō Hi) is Cao Cao's second son and successor. Like his father, he was a reputed intellectual who calculated his plans thoroughly. However, Cao Pi was unpopular even with his retainers, allegedly due to his foul and taboo behavior. He founded Wei by forcing Emperor Xian to abdicate his throne. He is Zhenji's second husband and Cao Rui is his heir.
Cao Pi first desires to prove himself as a worthy heir to his father. He accompanies the campaign against Yuan Shao and proves his strength to Zhen Ji. She accepts him and chooses to follow him hence forth. Cao Pi continues to follow his father's campaign at Chi Bi and is disappointed by his father's lack of vision. After Cao Cao's death, Cao Pi takes command over the kingdom of Wei. He tests Shu's might at Jie Ting and deems them weakened enough to invade their lands. With their force defeated, he sets his sights on Wu. Sun Quan makes a preemptive strike at He Fei Castle. Undeterred, he realizes he has his own ambition and succeeds in uniting the land under Wei.
His Legend Mode in Dynasty Warriors 5: Xtreme Legends pairs him with Sima Yi and Xu Huang. The trio work together to punish the traitor, Meng Da, at Xin Castle. He has stationed himself within the castle's walls and doesn't budge from his position. His followers, however, were pressured into the battle and submit to Cao Pi upon their defeat. When the castle's defenders realize the situation, they eventually open the castle gates and allow the trio to deal judgment. After the battle's conclusion, Cao Pi grows irritated by Shu's interruptions and threatens to exterminate them as well.
During the sixth title, Cao Pi is entrusted with Han Zhong in Cao Cao and Sima Yi's stories. His father leaves the area in his care after conquering it, though Cao Pi bluntly counters that it would be easy to crush the weakened Liu Bei. On Cao Cao's behest, however, Cao Pi restrains himself and continues to rule over Han Zhong. For this story, he survives to eventually take over the throne. During Sima Yi's storyline, he appears as reinforcements for the strategist's suppression of the area. After a few biting greetings, Cao Pi expresses his desire to have Sima Yi continue working for his own ambitious future. When Sima Yi betrays his father at Xu Chang, Cao Pi arrives as late aid for the main keep. He may either die in battle or be ignored entirely at this point. He also reinforces Cao Cao at He Fei Castle during Wu's story modes.
In Dynasty Warriors 6: Special, Cao Pi begins his story by leading follow-up campaigns for his father's conquests. He leads the downfall of Lu Bu's army at Xia Pi and captures a wild Red Hare for Wei. Since he didn't participate in the battle at Guan Du, Cao Pi commands the secondary campaign in his father's place to end Yuan Shao once and for all. After Liu Bei seizes Jing, he helps Cao Ren's defense against Guan Yu at Fan Castle. His father dies of illness shortly after. Following his father's last request to him, Cao Pi decides to make a land in his own image. Accompanying him is Sima Yi, who also secretly desires to realize his own ambition.
Cao Pi starts his conquest by getting rid of Wu at Shi Ting and unites the land by defeating Liu Bei at Wu Zhang Plains. Earning his seat as the undisputed ruler of the land, Sima Yi betrays him and claims Xu Chang. Along with his upstart, the strategist also convinces the remnants of Shu (Yue Ying, Ma Chao, and Wei Yan) and Wu (Lu Xun, Ling Tong, and Zhou Tai) to join him. Unimpressed and expecting the betrayal himself, Cao Pi confronts the strategist with his siblings to see which one of them is truly worthy to rule the land. Their contest ends with Cao Pi victorious and Sima Yi captured. His prisoner is spared as Cao Pi wants the strategist to continue working for his vision; Sima Yi acts offended but is grateful for the mercy.
Dynasty Warriors 7 introduces Cao Pi at Guandu as he leads Cao Cao's men into battle. He performs magnificently in his duties and, with Xu You and Jia Xu's help, burns Wuchao to the ground. As the supply line is engulfed in flames, Cao Pi corners a frightened Zhang He to make his choice: disappear with the ashes of the Yuan family or spark a new allegiance under his family. His demands are enough to convince the general to defect during the turnabout of the battle. When he defeats Zhen Ji a second time, she bitterly refuses to return to her husband in defeat and asks Cao Pi to take her life. He therefore counters her proposal as an invitation to live and die with him, which surprises yet charms her to accept. In Wei's version of Guandu, he successfully captures Yuan Shao and orders the belligerent man to be taken away. Shu's version merely has him act as one of the generals attacking the area.
Cao Pi helps his father's escape from Chibi, but he otherwise contributes little to his father's campaigns. He proudly accepts his right to the throne after his father passes away. During Wu's Story Mode, Wu and Shu rebuild their ties and Sun Quan seeks to conquer Wei at Dongkou. Cao Pi opposes him in a bid to claim Wu and suffers a humiliating defeat. Spared by Sun Quan, he begrudgingly licks his wounds back at Wei. He is mentioned in passing to have died during Jin's Story Mode and the throne is passed on to his short-lived heir.
His first Legendary Battle sets him up to battle many famous warriors to show Zhen Ji his worth to marry her. In his other Legendary Battle stages, Cao Pi successfully conquers the other two kingdoms and unifies the land under his rule.
In Dynasty Warriors Next, Cao Pi is already a member of his father's army during the fourth chapter. He mostly interacts with Sima Yi throughout Wei's concluding chapter, sharing his thoughts on the state of the land. Both men work in tandem to repel Zhuge Liang at the Wuzhang Plains. The player takes control of Cao Pi during the final battle against Shu in Chengdu. Upon breaking through their defenses, he challenges Liu Bei to a duel and kills him. With his father's nemesis dead, the Wei army finally turns their attention on Wu to unify the land. Other chapters have Cao Pi stationed at Chang'an. He also appears during a flashback in Jin's opening movie, implying his awareness of Sima Yi's growing ambition. Surprisingly enough, he tells the strategist to do what he sees fit if any of his successors prove themselves unworthy.
Dynasty Warriors 8 has Cao Pi mainly reprise his role from the previous installment. He is present at Chibi and, if the fire attack is a success, defends against the attacking Wu-Shu coalition to allow Cao Cao time to flee. He also participates at Fan Castle, helping with the reinforcements for Cao Ren and Pang De. In the hypothetical route, he defends Xuchang from Zuo Ci's assault and joins his father in defeating Liu Bei at Baidi Castle.
In Wu's historical route, Cao Pi serves as the enemy commander in Hefei Castle. He is defeated by the Wu forces and gives up Hefei altogether but challenges Sun Quan to continue fighting against him until one remains standing. In its hypothetical route, he serves as the enemy commander at Shouchun. Cao Pi is named the vassal king of Wei by the Emperor after Cao Cao's death. He and Zhenji do not attend Sun Quan's banquet as they still mourn for the loss of his father. In Shu's hypothetical route, Cao Pi defends Luoyang and stands by Cao Cao at the final battle of Xuchang.
In Wei's first Xtreme Legend stage "Final Conflict at Guandu", Cao Pi appears along with Li Dian and Zhang Liao to defeat Yuan Shao with Lu Bu as their ally.