The part number S323AIK9-12218SXF that you mentioned is for the below IOS Feature Set:
Cisco CAT6000-SUP32 IOS ADVANCED IP SERVICES SSH
If you have already paid for this part number for the particular chassis that you are going to enable OSPF and BGP, my understanding is you dont need to pay any additional licensing fee.
I have also enclosed the Q & A for SUP32 for your reference:
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: