3DTools
Image to 3D
A textured 3D model (GLB) from one picture.
- Price
- 60 crper run
- Model id
model.image-to-3d
Playground
model.image-to-3d
- Engine
- tripo, hunyuan, rodin
- Takes
- Image
No example of this model yet. These are its real settings.
# 0. Upload your file first and put the id it prints in params.
curl -s -X POST https://staglight.ai/api/v1/uploads \
-H "Authorization: Bearer $STAGLIGHT_API_KEY" -F file=@your-file | jq -r .id
# 1. Create the job. It is charged once.
JOB_ID=$(curl -s -X POST https://staglight.ai/api/v1/jobs \
-H "Authorization: Bearer $STAGLIGHT_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"op": "model.image-to-3d",
"params": {
"image": "med_your_upload_id"
},
"max_credits": 60
}' | jq -r .id)
# 2. Poll until it finishes. Each call waits up to 30 seconds.
while :; do
JOB=$(curl -s "https://staglight.ai/api/v1/jobs/$JOB_ID?wait=30" -H "Authorization: Bearer $STAGLIGHT_API_KEY")
case "$(echo "$JOB" | jq -r .status)" in queued|running) ;; *) break ;; esac
done
# 3. Download the result from outputs[0].download_url.
echo "$JOB" | jq '.outputs[0].download_url // .data' import os, uuid, requests
BASE = "https://staglight.ai/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['STAGLIGHT_API_KEY']}"}
# 0. Upload your file first and put the id it prints in params.
with open("your-file", "rb") as f:
print(requests.post(f"{BASE}/uploads", headers=HEADERS, files={"file": f}, timeout=300).json()["id"])
# 1. Create the job. It is charged once.
r = requests.post(f"{BASE}/jobs", timeout=60,
headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
json={
"op": "model.image-to-3d",
"params": {
"image": "med_your_upload_id"
},
"max_credits": 60
})
r.raise_for_status()
job = r.json()
# 2. Poll until it finishes. Each call waits up to 30 seconds.
while job["status"] in ("queued", "running"):
job = requests.get(f"{BASE}/jobs/{job['id']}", headers=HEADERS,
params={"wait": 30}, timeout=60).json()
# 3. Download the result from outputs[0].download_url.
print(job["outputs"][0]["download_url"] if job["outputs"] else job["data"] or job["error"]) // Node 18 or newer. Save as run.mjs: top-level await needs a module.
const BASE = "https://staglight.ai/api/v1";
const headers = { Authorization: `Bearer ${process.env.STAGLIGHT_API_KEY}` };
// 0. Upload your file first and put the id it prints in params.
// const form = new FormData(); form.append('file', yourFile);
// const { id } = await (await fetch(`${BASE}/uploads`, { method: 'POST', headers, body: form })).json();
// 1. Create the job. It is charged once.
let res = await fetch(`${BASE}/jobs`, {
method: "POST",
headers: { ...headers, "Content-Type": "application/json", "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify({
"op": "model.image-to-3d",
"params": {
"image": "med_your_upload_id"
},
"max_credits": 60
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
let job = await res.json();
// 2. Poll until it finishes. Each call waits up to 30 seconds.
while (job.status === "queued" || job.status === "running") {
job = await (await fetch(`${BASE}/jobs/${job.id}?wait=30`, { headers })).json();
}
// 3. Download the result from outputs[0].download_url.
console.log(job.outputs[0]?.download_url ?? job.data ?? job.error); Use the Staglight API to run the workflow "Image to 3D" from server code.
Docs: https://staglight.ai/llms.txt
This workflow: https://staglight.ai/en/api/models/model.image-to-3d
Key: read it from the STAGLIGHT_API_KEY environment variable. Never put it in browser code.
1. Price it for free first: POST /api/v1/estimate
2. Start it: POST /api/v1/jobs, with an Idempotency-Key header and max_credits.
Body: {"op": "model.image-to-3d", "params": {"image": "med_your_upload_id"}, "max_credits": 60}
Files are media ids from POST /api/v1/uploads.
3. After a timeout, check the job list before you retry, and retry with the same Idempotency-Key.
4. Poll the run until it finishes, then download its outputs.zip. {
"id": "job_19a2b3c4d5e6f7a8b9c0d1",
"op": "model.image-to-3d",
"status": "queued",
"credits": 60,
"title": "",
"params": {
"image": "med_your_upload_id"
},
"progress": null,
"outputs": [],
"data": null,
"error": null,
"run_id": null,
"source": "api",
"created_at": "2026-11-06T12:00:00Z",
"finished_at": null,
"eta_seconds": 90,
"can_cancel": true,
"step": "send"
} What it costs
| Engine | standard | hd |
|---|---|---|
| tripo | 60 cr | 80 cr |
| hunyuan | 75 cr | 75 cr |
| rodin | 80 cr | 240 cr |
The playground shows the exact price for your settings. A job is charged once when it is accepted. The price is checked again with your file before it runs.
Parameters
| Name | Type | Default | Allowed |
|---|---|---|---|
imagerequiredImage | media id | Image | |
engineEngine | enum | tripo | tripo, hunyuan, rodin |
viewsMore views | media id[] | Image, up to 3 | |
textureTexture | enum | standard | standard, hd |
meshMesh | enum | standard | standard, low_poly |
texturesAlso save the texture pictures | boolean | false |
Send these inside params. Files are media ids from POST /api/v1/uploads. View documentation
More models
- Toolsvideo.upscale
- Scale
- 1, 2, 4
- Takes
- Video
Topaz Labs / Video upscale
Upscales your video 2x or 4x with Topaz.
80 crper clip · varies with length or size
- Toolsedit.merge
- Shape
- keep, 9:16, 4:5, 1:1, ...
- Takes
- Video, Audio
Staglight / Merge clips
Joins 2 to 12 clips into one video in 9:16, 4:5, 1:1 or 16:9.
10 crper run
- Toolsedit.captions
- Takes
- Text, Video
Staglight / Captions
Burned-in captions with styles, fonts and colors inside the safe zone.
15 crper run