In the mosaic creation of multiple high-resolution synthetic aperture radar (SAR) images, achieving an optimal seamline in overlapping areas is crucial for seamless and visually satisfactory results. Many existing seamline generation methods are designed primarily for optical remote sensing images, but due to the differing characteristics of SAR images and optical images, applying these methods directly to SAR images poses challenges in finding the optimal seamline. In response, this paper proposes a segmentation-based optimal seamline generation (SOSG) method for SAR image mosaics. The SOSG method involves a multi-step process. First, SAR image joint segmentation is performed within the overlapping areas. Subsequently, homogeneous areas are identified based on the segmentation results. Following this, a pixel cost matrix is constructed, incorporating homogeneous areas and intensity differences. Finally, the minimum path cost from the starting pixel to the end pixel is computed using the Dijkstra algorithm to determine the optimal path. To assess the feasibility and effectiveness of the proposed method, experiments are conducted using multiple SAR images from the Chinese Gaofen-3 01 satellite as datasets. The experimental results demonstrate that the proposed method yields seamless mosaic images when compared to other methods, while delivering satisfactory outcomes. This indicates the potential of the proposed method in addressing the unique challenges posed by SAR images and enhancing the quality of SAR image mosaics.