Kirejara...
It is also a matter of if the AI wants or needs the Resource.
If there are fewer Resources and the AI does not have them they will pay more.
If the AI population is not happy, Luxury Resources are more valuable naturally.
In Your Game Biq, you can make adjustment that will affect the AI and Trade:
*Try limiting the Resources and especially Luxury Resources in "Natural Resources".
*You can adjust the supported Units and the AI to AI Trade in "Difficulty Levels".
*You can Adjust Tech Costs so there is not enough Gold to increase Entertainment for the Population and keep up with research in "Civilization Advances".
*You can add settings concerning how happy, or should I say Unhappy the Population is in Difficulty Levels".
*You can Adjust if an Improvement or Wonder makes the Population Happy or Content as well as Require a Resource to Build an Improvement or Wonder in "Improvements and Wonders".
If you have Luxury Resources set as being required to Build something the AI needs or wants as well as making some of the Population Happy, the AI will pay much more to get the Luxury Resources.
It is true that the AI is NOT on your side and will always try to limit you when possible. This holds true if you have many Luxuries and Gold as mentioned. However, IF the AI seriously Needs or wants any resource, they will Pay Far More to get it.
The Adjustments you can make in the Editor or your Game Biq will affect Trade. The Game is "Hard Coded" as is said but you can alter the end result of the programing by making adjustments for your Game.
...Give it all some thought and realize what settings in combination will affect the AI trade so you get more of what you want in Game Play Trade.