diff --git a/src/components/ImageTo3DModal.tsx b/src/components/ImageTo3DModal.tsx index c3708f4..a8c50f6 100644 --- a/src/components/ImageTo3DModal.tsx +++ b/src/components/ImageTo3DModal.tsx @@ -326,7 +326,7 @@ export const ImageTo3DModal: React.FC = ({ isOpen, onClose, } } - const taskRes = await fetch('https://api.meshy.ai/openapi/v1/image-to-3d', { + const taskRes = await fetch('https://api.meshy.ai/openapi/v2/image-to-3d', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -342,7 +342,7 @@ export const ImageTo3DModal: React.FC = ({ isOpen, onClose, let isDone = false; while (!isDone) { await new Promise(r => setTimeout(r, 2000)); - const pollRes = await fetch(`https://api.meshy.ai/openapi/v1/image-to-3d/${taskId}`, { + const pollRes = await fetch(`https://api.meshy.ai/openapi/v2/image-to-3d/${taskId}`, { headers: { 'Authorization': `Bearer ${meshyApiKey}` }