@@ -47,7 +47,13 @@ def create(
4747 * ,
4848 completion_window : Literal ["24h" ],
4949 endpoint : Literal [
50- "/v1/responses" , "/v1/chat/completions" , "/v1/embeddings" , "/v1/completions" , "/v1/moderations"
50+ "/v1/responses" ,
51+ "/v1/chat/completions" ,
52+ "/v1/embeddings" ,
53+ "/v1/completions" ,
54+ "/v1/moderations" ,
55+ "/v1/images/generations" ,
56+ "/v1/images/edits" ,
5157 ],
5258 input_file_id : str ,
5359 metadata : Optional [Metadata ] | Omit = omit ,
@@ -68,9 +74,9 @@ def create(
6874
6975 endpoint: The endpoint to be used for all requests in the batch. Currently
7076 `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`,
71- and `/v1/moderations` are supported. Note that `/v1/embeddings` batches are also
72- restricted to a maximum of 50,000 embedding inputs across all requests in the
73- batch.
77+ `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are
78+ supported. Note that `/v1/embeddings` batches are also restricted to a maximum
79+ of 50,000 embedding inputs across all requests in the batch.
7480
7581 input_file_id: The ID of an uploaded file that contains requests for the new batch.
7682
@@ -265,7 +271,13 @@ async def create(
265271 * ,
266272 completion_window : Literal ["24h" ],
267273 endpoint : Literal [
268- "/v1/responses" , "/v1/chat/completions" , "/v1/embeddings" , "/v1/completions" , "/v1/moderations"
274+ "/v1/responses" ,
275+ "/v1/chat/completions" ,
276+ "/v1/embeddings" ,
277+ "/v1/completions" ,
278+ "/v1/moderations" ,
279+ "/v1/images/generations" ,
280+ "/v1/images/edits" ,
269281 ],
270282 input_file_id : str ,
271283 metadata : Optional [Metadata ] | Omit = omit ,
@@ -286,9 +298,9 @@ async def create(
286298
287299 endpoint: The endpoint to be used for all requests in the batch. Currently
288300 `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`,
289- and `/v1/moderations` are supported. Note that `/v1/embeddings` batches are also
290- restricted to a maximum of 50,000 embedding inputs across all requests in the
291- batch.
301+ `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are
302+ supported. Note that `/v1/embeddings` batches are also restricted to a maximum
303+ of 50,000 embedding inputs across all requests in the batch.
292304
293305 input_file_id: The ID of an uploaded file that contains requests for the new batch.
294306
0 commit comments