DC grids are being strongly considered as a technology to be used for future expansions of the transmission system. Voltage sourced converters (VSC) are the key equipment considered for AC/DC interconnections. However the flow from DC to AC system has to be properly set as many alternatives exists. In this article, an Optimal Power Flow (OPF) to control the flow of power in the converters interconnecting AC-DC systems is presented. The proposed OPF solution technique was tested using the CIGRE B4 DC Grid Test System. Streszczenie. W artykule opisano sterowanie przeplywem mocy w przeksztaltniku lączącym sieci DC-AC. Optymalny przeplyw mocy OPF byl testowany w systemie sieciowym CIGRE B4 DC. Sterowanie przeplywem mocy w przeksztaltniku lączącym sieci DC-AC