I want to know if you recommend to use some kind of heat treatment after the process of bending a pipe. For the bending I am using heat to put more ductile the material.
The material is Carbon Steel (api 5l).
API 5L covers a vast array of low carbon alloy steels. Which grades A B? or X60, X70? How much heat are you applying? What temperature? What's the diameter large or small? What's the thickness? Are the pipes welded or seamless? As LittleInch stated, "...you can have disaster on your hands."
Looking through your post history I can see you're a young engineer. Do you not have someone in your company to ask these sort of questions? Getting training like this from the Internet is not the best way to proceed.
A bit of background as to why you're asking the question helps a lot.
Remember - More details = better answers
Also: If you get a response it's polite to respond to it.