Question about Batch API & Files API

I’m looking at how the batch API works, but I have a question.

To use it, I will also be using the file API to be able to upload the files and obtain the results. I would like to know if the file API has any type of cost.

Since my intention is to use batch api to reduce costs, I’m not sure if I’m calculating the prices correctly since I can’t find the price of the api files anywhere.

Can someone give me more information about this?

1 Like

Welcome to the Forum!

Uploading the file for the purpose of batch processing does not incur any costs. You will only be charged based on the tokens consumed during the processing of your batch, i.e. after you have created the batch job.

For that, the regular batch pricing applies as per OpenAI’s pricing page:

https://openai.com/api/pricing/

Does this answer the question?

2 Likes