It's model-dependent, and ChatGPT which is the heaviest/largest model is not yet available through API. Costs for the other ones range from to for about 1000-2000 words, so 20k words can be between and