Four-View Image to 3D Model API documentation
Generate a 3D model from one 2×2 composite image containing four views of the same subject. Pass a public HTTP(S) URL, use upload_files for a local file, or use a Base64 Data URI only for very small images. Browser automation is not needed.
Endpoints
| Contract item | Value |
|---|---|
| Capability | ai-four-view-to-3d-model |
| Submit | POST https://vidmage.ai/api/v1/ai-four-view-to-3d-model/submit |
| Query | POST https://vidmage.ai/api/v1/ai-four-view-to-3d-model/query |
| Task identifier | taskId |
| Result field | modelUrl |
Authenticate with Authorization: Bearer YOUR_API_KEY. Save the task identifier and query the same capability. Use a stable Idempotency-Key for submission retries.
Product guide: AI 3D Generation API
Parameters and input rules
| Field | Type | Required | Default | Meaning and limits |
|---|---|---|---|---|
imageUrl | string | Yes | Not specified | Public HTTP(S) URL, fileUrl returned by upload_files, or Base64 Data URI (PNG, JPEG, or WebP; max 128 KB) for one 2×2 composite image containing four consistent views of the same subject or object. Also accepts a Base64 data URI. |
Example request
{
"imageUrl": "https://vidmage.ai/assets/images/ai-tools/ai-3d-model-detail-2.webp"
}# Set VIDMAGE_IDEMPOTENCY_KEY to a unique value for this task; preserve it for transport retries.
curl -X POST "https://vidmage.ai/api/v1/ai-four-view-to-3d-model/submit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
-H "Content-Type: application/json" \
-d '{"imageUrl":"https://vidmage.ai/assets/images/ai-tools/ai-3d-model-detail-2.webp"}'
# -> { "success": true, "taskId": "...", "creditsConsumed": ... }Task results and recovery
URL of the generated 3D model. Read modelUrl from the completed query response. Preserve taskId while the task is running.
curl -X POST "https://vidmage.ai/api/v1/ai-four-view-to-3d-model/query" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "taskId": "TASK_ID_FROM_SUBMIT" }'
# -> { "success": true, "data": { "status": "...", "modelUrl": "https://..." } }Submission and task queries report the available task and usage information. A timeout is not a confirmed failure. Recover the existing task instead of resubmitting.
For face selection and error recovery, follow Task lifecycle. MCP uses the normalized taskId argument in get_task_result, including capabilities whose REST identifier is requestId.
Credits
| Component / option | Rate | Minimum |
|---|---|---|
| Per request | 200 credits / request | — |
A fixed credit charge applies to this API request.
Use the Playground or the MCP credit estimator for your exact inputs. Credits and billing.
