This paper presents the results of a first-of-its-kind 3D data-driven musculoskeletal model of the Drosophila leg, implemented in OpenSim and MuJoCo simulation environments. Based on high-resolution X-ray scan data, a Hill-type muscle model was constructed and combined with 3D pose estimation data for various gait and grooming behaviors of Drosophila. This model allows for muscle-based behavioral reproduction in OpenSim. Using this model, we simulated muscle activity during various gait and grooming behaviors, predicting coordinated muscle synergies that can be experimentally validated. We then trained an imitation learning policy in MuJoCo to analyze the impact of passive joint characteristics on learning rates. In conclusion, this model enables the study of motor control in experimentally trackable model organisms, providing insights into how biomechanics contribute to the generation of complex limb movements. Furthermore, it can be used to control artificial agents that are designed to generate natural and adaptive gaits in simulation environments.