In which openai version is batch api and files api supported

I am using the version 1.30.0 . Will there be any problem will the following code ?

import os
from openai import OpenAI

client = OpenAI(
api_key=os.getenv(“OPENAI_API_KEY”)
)

batch_input_file = client.files.create(
file=open(“batchinput.jsonl”, “rb”),
purpose=“batch”
)

client.batches.create(
input_file_id=batch_input_file_id,
endpoint=“/v1/chat/completions”,
completion_window=“24h”,
metadata={
“description”: “nightly eval job”
}
)

client.batches.retrieve(“batch_abc123”)