Quantum resources offer intrinsic randomness that is valuable for applications such as cryptography, scientific simulation, and computing. Silicon-based photonics chips present an excellent platform for the cost-effective deployment of next-generation quantum systems on a large scale, even at room temperature. Nevertheless, the potential susceptibility of these chips to hacker control poses a challenge in ensuring security for on-chip quantum random number generation, which is crucial for enabling extensive utilization of quantum resources. Here, we introduce and implement an on-chip source-device-independent quantum random number generator (SDI-QRNG). The randomness of this generator is achieved through distortion-free on-chip detection of quantum resources, effectively eliminating classical noise interference. The security of the system is ensured by employing on-chip criteria for estimating security entropy in a practical chip environment. By incorporating a photoelectric package, the SDI-QRNG chip achieves a secure bit rate of 146.2 Mbps and a bare chip rate of 248.47 Gbps, with all extracted secure bits successfully passing the randomness test. Our experimental demonstration of this chip-level SDI-QRNG shows significant advantages in practical applications, paving the way for the widespread and cost-effective implementation of room-temperature secure QRNG, which marks a milestone in the field of QRNG chips.