MotionLab for developers

Image-to-3D API

Turn one uploaded image into a textured GLB model: source image tips, cost estimate, job creation and download.

Image-to-3D in one request

motionlab_create_3d turns one image into a textured 3D model in GLB format. It is image-to-3D only: there is no prompt field, and the image decides the result. Read result.models.threeD from GET /api/v1/models for the available modelId values and their price in credits.

Prepare and upload the source image

Use a single, clearly lit object on a plain background, fully inside the frame. Cropped objects, busy backgrounds and several objects in one image give weaker geometry. Call motionlab_create_upload with the image's filename, contentType and fileSizeBytes, PUT the bytes to uploadUrl, and keep the returned key.

POST /api/v1/actions/motionlab_create_upload
{ "filename": "chair.png", "contentType": "image/png", "fileSizeBytes": 1482113 }

Estimate, then create

Estimate with kind: three_d. model is optional here; without it the estimate uses the current default 3D model. Then create the job with the upload key. modelId is optional and also falls back to the default.

POST /api/v1/actions/motionlab_estimate_cost
{ "kind": "three_d", "model": "THREE_D_MODEL_ID_FROM_DISCOVERY" }

POST /api/v1/actions/motionlab_create_3d
{
  "imageKey": "OWNED_UPLOAD_KEY",
  "modelId": "THREE_D_MODEL_ID_FROM_DISCOVERY",
  "idempotencyKey": "YOUR_SAVED_UNIQUE_REQUEST_ID"
}

Note the field names: the estimate uses model, the create action uses modelId and imageKey.

Retrieve the model

Poll motionlab_get_job until a terminal status. A completed job has mediaType: model_3d and outputUrl pointing at the GLB file. Download it to your own storage before outputExpiresAt. If the job fails, error.code says why and error.refunded says whether the credits were returned.

To start from a generated image, create it with the image API, download the result, and upload it as the 3D source.

Continue building

Explore live models and prices · Create your API key

Image-to-3D API | MotionLab