Car 3D Model
Car 3D model API reference. Turn 1 to 6 photos of a real car into a clean, consistent set of views and a 3D-printable model at any scale (H0, N, 1:43, 1:18 and more).
Overview
The car flow turns ordinary photos of a car - phone shots, listing photos, cropped or backlit pictures - into a 3D model. It works in two steps: prepare reads the photos and creates four clean, consistent views of the car (front, left, back, right) on a white background; generate builds the 3D model from those views and scales it. You can run both steps in one call with /v1/flow/car/, or call prepare first, check the views, and only then pay for generate.
Prepare Views
POST/v1/flow/car/prepare/
Upload 1 to 6 photos of the same car from the outside. Returns four clean views of the car (front, left, back, right). Photos that do not show the car clearly are skipped, and a view that no photo shows is filled in and flagged in the warnings. For best results include a front, a rear and both sides, or the four corners. Costs 80 credits.
curl -X POST https://api.3daistudio.com/v1/flow/car/prepare/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"images": [
"data:image/jpeg;base64,/9j/4AAQ...",
{"image": "data:image/jpeg;base64,/9j/4AAQ...", "view": "rear_left"}
],
"style": "realistic"
}'{
"task_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"created_at": "2026-11-10T12:00:00Z"
}Prepare Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| images | array | Yes | 1 to 6 photos of the same car. Each item is a base64 data URL (PNG, JPEG, WebP or GIF, up to 64 MB) or an object {"image": <data URL>, "view": <hint>}. The optional view hint is one of front, front_left, left, rear_left, rear, rear_right, right, front_right; the angle is detected automatically either way. Left and right are the car's own sides. |
| style | string | No | "realistic" (a faithful copy of the real car) or "miniature" (a painted die-cast / resin scale model look). Default: "realistic". |
| printable | boolean | No | Prepares the car for small-scale printing: removes antennas and thin wires, makes mirrors sturdy and wheels solid. Default: true. |
| remove_license_plate | boolean | No | Leaves license plates blank. Default: true. |
| remove_text_and_logos | boolean | No | Removes text, numbers, stickers, badges and logos from the car, which are hard to print as texture. Keeps the paint and wrap colours, stripes and shapes. Default: false. |
| 2d_engine | string | No | ExperimentalEngine for the views: "v1" (default) or "v2". Each falls back automatically; the price is the same. |
Generate Model
POST/v1/flow/car/generate/
Builds the 3D model from the views of a finished prepare task (within 24 hours). Costs 120 credits (fast), 180 credits (default) or 240 credits (ultra), see Credit Costs.
curl -X POST https://api.3daistudio.com/v1/flow/car/generate/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prepare_task_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"edition": "default",
"scale": "h0"
}'Generate Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| prepare_task_id | string | Yes (generate only) | task_id of a finished prepare task (or of a one-shot /v1/flow/car/ task). |
| edition | string | No | "fast" (120 credits), "default" (180 credits) or "ultra" (240 credits, prism only). Sets the texture quality: standard, detailed or extreme. Default: "default". |
| 3d_engine | string | No | "prism" (default) or "hunyuan". Falls back to the other engine if the selected one fails. |
| texture_quality | string | No | Prism only: "fast", "standard", "detailed" or "extreme". Overrides the tier implied by edition; the request is priced by the resulting tier. |
| lighting_removal | boolean | No | Prism only: removes baked-in highlights and shadows before texturing. Default: true. |
| face_count | integer | No | Maximum faces of the model. Prism: 3,000 to 1,500,000; hunyuan: 40,000 to 1,500,000. Default: 500,000. |
| scale | string | No | Scales the model by the car's LENGTH. Named scales: "z" (1:220), "n" (1:160), "tt" (1:120), "h0" (1:87), "o" (1:48), "g" (1:22.5). Any ratio "1:NUMBER" from 1:1 to 1:1000 (e.g. "1:43", "1:18"). "custom" requires scale_length_cm. Default: "none". |
| vehicle_length_cm | number | No | Real length of the car in cm (100 to 2500). When omitted, the length of the recognized car model is used. |
| scale_length_cm | number | No | Required when scale is "custom": the printed length in cm (up to 100). |
| obj_scale_multiplier | number | No | Multiplier for the scaled OBJ export coordinates: 1000 for millimeters, 100 for centimeters, 1 for meters. GLB output is always in meters. Default: 1000. |
| tinted_windows | boolean | No | Adds versions of the model files with semi-transparent windows for full-colour printers with clear material: the texture (PNG) has an alpha layer where the glass is 100% black (transparent) and everything else 100% white, and the glass colour is light grey. Roof glass stays opaque. Costs 20 extra credits, refunded if the windows cannot be applied. Default: false. |
One-Shot
POST/v1/flow/car/
Runs prepare and generate in one request. Accepts all prepare and generate parameters (without prepare_task_id) and costs the sum of both: 200, 260 or 320 credits.
curl -X POST https://api.3daistudio.com/v1/flow/car/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"images": ["data:image/jpeg;base64,...", "data:image/jpeg;base64,..."],
"style": "miniature",
"scale": "1:43"
}'Checking Status
GET/v1/generation-request/<task_id>/status/
Poll the status endpoint with the task_id. A prepare task returns four EDITED_IMAGE results (front, left, back, right) whose metadata names the view. A generate task returns the 3D model (GLB) and an OBJ ZIP; when scale is set, the OBJ ZIP is the scaled one and a scaled GLB is added, both with the printed length in cm. The scaled files are print-ready: wheels and other loose parts are merged into one closed solid, so the model prints as a single piece. With tinted_windows, every model file is returned a second time with metadata variant "tinted_windows", plus a window mask (IMAGE, variant "window_mask"); flow_details.tinted_windows says whether they were applied. flow_details reports the detected car, each photo's detected angle and whether it was used, and warnings (for example a reconstructed side or a scale that could not be applied). Results expire after 24 hours.
{
"status": "FINISHED",
"progress": 100,
"failure_reason": null,
"results": [
{"asset": "https://.../front.jpg", "asset_type": "EDITED_IMAGE", "metadata": {"view": "front"}},
{"asset": "https://.../left.jpg", "asset_type": "EDITED_IMAGE", "metadata": {"view": "left"}},
{"asset": "https://.../back.jpg", "asset_type": "EDITED_IMAGE", "metadata": {"view": "back"}},
{"asset": "https://.../right.jpg", "asset_type": "EDITED_IMAGE", "metadata": {"view": "right"}}
],
"flow_details": {
"vehicle": {"make": "Ford", "model": "Fiesta", "generation_or_year": "2002-2008", "body_type": "hatchback", "length_cm": 392},
"photos": [
{"photo": 1, "detected_view": "front_left", "used": true}
],
"warnings": ["No photo shows the right of the car; that view was reconstructed."]
}
}
// generate task with scale="h0"
{
"status": "FINISHED",
"results": [
{"asset": "https://.../car.glb", "asset_type": "3D_MODEL", "metadata": null},
{"asset": "https://.../car_h0.glb", "asset_type": "SCALED_3D_MODEL",
"metadata": {"scale": "h0", "length_cm": 4.51, "vehicle_length_cm": 392, "vehicle_length_source": "estimated"}},
{"asset": "https://.../car_h0.zip", "asset_type": "ARCHIVE",
"metadata": {"scale": "h0", "length_cm": 4.51, "vehicle_length_cm": 392, "vehicle_length_source": "estimated"}}
]
}Credit Costs
Prepare covers the four views. Generate covers the 3D model, the print-ready scaled files and follows the texture quality on prism (the edition sets the default tier; texture_quality overrides it) or the edition on hunyuan. Failed tasks are refunded in full.
| Step | Option | Credits |
|---|---|---|
| Prepare | any | 80 |
| Generate | fast / standard texture | 120 |
| Generate | default / detailed texture | 180 |
| Generate | ultra / extreme texture (prism) | 240 |
| One-shot | prepare + generate | 200 / 260 / 320 |
| Add-on | tinted_windows (generate or one-shot) | +20 |
Processing Times
Prepare typically takes 2-4 minutes, generate 2-5 minutes, the one-shot flow 5-8 minutes. We recommend polling the status endpoint every 10 seconds.
Errors
Common errors for the car flow.
| Status | Error Code | Description |
|---|---|---|
| 402 | insufficient_credits | Not enough credits. Purchase more credits. |
| 429 | rate_limited | Rate limit exceeded. Wait and retry. |
| 400 | validation_failed | Missing or invalid parameters, an image that could not be decoded, or a prepare_task_id that is unknown, unfinished or older than 24 hours. |
| 503 | INPUT_STAGING_FAILED | The photos could not be stored. No credits were charged; retry after a short delay. |
| 503 | DISPATCH_FAILED | The job could not be queued. Credits were refunded; retry after a short delay. |