Hi OpenAI team and fellow developers,
I’m currently integrating the gpt-image-1
model into a Unity game using Unity Cloud Code.
The goal is to generate merged images from multiple sources that players choose — each represented as a separate PNG image.
However, I’m running into a problem:
Unity Cloud Code has a hard request body size limit of 1 MB, and even after compressing and resizing images, it’s difficult to stay within that limit when uploading multiple reference images via multipart/form-data
. As a result, I’m unable to submit multiple input images to the OpenAI API from this environment without hitting a 413 Request Entity Too Large
error.
My question is:
- Is there any way to provide external
image_urls
as references (instead of uploading raw image data)? - If not currently supported, is this functionality something that’s being considered for the
gpt-image-1
model in the future?
This would be incredibly useful in serverless or constrained environments like Unity Cloud Code, where file uploads are tightly restricted.
Thanks for any insights or workarounds the team or community can provide!
Best regards,
Matthias