The AI Sovereigns can go on certain quests (not all of them) The alchemists offer is one of the quests the AI can go on. Mind you failure for the AI on a quest means death of their sovereign, since they cannot accomplish the quest exactly the same way as the player.
In my current knowledge this is the only way to get an ophidian, and that wizard knows the value of his life from that quest. Apparently it is equivalent to an ophidian.