Hi 8th Wall Support Team:
I’m currently working on a WebAR project using 8th Wall’s Editor version. The goal is to allow users to upload an image, which will be sent to Meshy AI’s image-to-3D API for model generation, and then render the generated GLB model back in the scene. Additionally, I intend to use OpenAI’s image analysis capabilities for further processing of uploaded images.
Here are the details of my setup:
- Meshy AI Integration: I’ve set up the backend module (
index.ts
) and successfully send base64 images to Meshy’s API. I am receiving atask_id
in response, but I’m running into trouble with polling the task status and retrieving the final GLB file. - OpenAI Integration: I am also exploring using OpenAI’s image analysis capabilities (e.g., object detection, scene analysis) in the workflow. I need clarification on whether OpenAI’s image analysis API can be efficiently integrated within the backend of 8th Wall or if a separate service is necessary.
My specific questions are:
Meshy API Questions:
- Does 8th Wall’s backend environment support long-running tasks like polling (e.g., 30–60 seconds with intervals) for Meshy’s image-to-3D API?
- Can I download and locally save the generated GLB file to
/static/models/
within the backend function? If not, what are the recommended workarounds? - Is
fetch()
compatible withawait res.arrayBuffer()
for downloading binary data inside a backend module in 8th Wall?
OpenAI API Questions:
- Can I integrate OpenAI’s image analysis API directly in 8th Wall’s backend, or should I use an external server for processing?
- Are there any guidelines on using OpenAI’s image-to-text API for scene/object detection within an AR project (similar to what I’m trying to do with Meshy)?
- What are the best practices for handling large-scale image processing (e.g., multiple images at once) in an 8th Wall environment with OpenAI’s API?
Any guidance or code examples would be greatly appreciated. I’m trying to confirm whether this functionality can be handled entirely within 8th Wall’s backend modules or if I need to use an external service for certain tasks.
Thanks in advance for your help!