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
- AI generation API quickstart
Create an API key, discover models, estimate credits and submit your first image with Node.js and cURL.
- AI video generation API
Integrate text-to-video and image-to-video with model discovery, owned uploads, cost estimates and asynchronous results.
- AI image generation and editing API
Build image generation and reference-image editing with live model settings and fractional-credit pricing.
- AI music and audio generation API
Generate music and use song tools through one action, with live model controls, per-operation pricing and multi-track results.
- AI image and video upscaling API
Upscale images and videos or double frame rate with live engines, source rules and measured pricing.
- fal.ai vs Higgsfield API: Pricing Compared Side by Side
fal.ai vs Higgsfield API prices for the same model and settings, with dated official sources. Plus authentication, polling, webhooks and migration steps.
- MotionLab API reference
Endpoints, actions, job statuses, error codes, rate limits, upload limits and the OpenAPI document for the MotionLab generation API.