I've had it done for a used car my parents bought several years ago. The stealership was gonna charge over $300, so we went to a local locksmith and had one scanned & made for around $75.
When they bought a used Lexus from a "good" used car lot, I asked them to throw in the extra. They have a weekly visit from a key/lock truck...dropped by a few days later on his scheduled day.... no charge.
At the Lexus dealership many years ago....I had an SC400...it was over $500

.
Live & learn....