Here is the post about how to program Toyota/Lexus smart key with different year vehicles and ordinary key with different chip by Lonsdor k518s .
1.Smart Key (not support refitted vehicles):
For vehicles launched before 2007, dismantle smart box and write a key that can start the vehicle.
For vehicles launched after 2007, need an original key/an old key to add a new key. If all keys are lost, try to backup EEPROM in the menu first. Need to dismantle smart box and read Chip 93C86 data with a programmer if you fail to backup EEPROM data via OBD. Not support data of other chips except 93C86.
For Chip 8A/H (for example Ralink), need a master key to add a new key. Need to change an immo box if all keys are lost.
For Chip 4D/67/68, program in the menu via OBD.
For Chip 4C, need to dismantle and write a key that can start the car.
For Chip G, need a master key to add a new key. Need to reset the immo box if all keys are lost.