curl --request POST \
--url https://api.gizmo.antimlabs.com/v1/scenes \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"model": "<string>",
"asset_pipeline": "auto",
"reference_image_urls": [
"<string>"
],
"persist": true
}
'import requests
url = "https://api.gizmo.antimlabs.com/v1/scenes"
payload = {
"prompt": "<string>",
"model": "<string>",
"asset_pipeline": "auto",
"reference_image_urls": ["<string>"],
"persist": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: '<string>',
model: '<string>',
asset_pipeline: 'auto',
reference_image_urls: ['<string>'],
persist: true
})
};
fetch('https://api.gizmo.antimlabs.com/v1/scenes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gizmo.antimlabs.com/v1/scenes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => '<string>',
'model' => '<string>',
'asset_pipeline' => 'auto',
'reference_image_urls' => [
'<string>'
],
'persist' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gizmo.antimlabs.com/v1/scenes"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"model\": \"<string>\",\n \"asset_pipeline\": \"auto\",\n \"reference_image_urls\": [\n \"<string>\"\n ],\n \"persist\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gizmo.antimlabs.com/v1/scenes")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"model\": \"<string>\",\n \"asset_pipeline\": \"auto\",\n \"reference_image_urls\": [\n \"<string>\"\n ],\n \"persist\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gizmo.antimlabs.com/v1/scenes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"<string>\",\n \"model\": \"<string>\",\n \"asset_pipeline\": \"auto\",\n \"reference_image_urls\": [\n \"<string>\"\n ],\n \"persist\": true\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"scene_id": "jh72k3m4n5p6q7r8",
"job_id": "job_a1b2c3d4",
"status": "queued",
"estimated_seconds": 1200,
"estimate_note": "Scene generation typically takes 10-25 minutes (structure + assets + placement)."
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123
}
}Generate a scene
Start async scene generation from a text prompt. Returns immediately with a job_id. Optional reference_image_urls (e.g. a room photo) ground the structure build in your image.
Poll progress via GET /v1/jobs/{job_id} or stream real-time events via GET /v1/jobs/{job_id}/events.
The AI agent will:
- Plan reusable assets from your prompt
- Generate each asset (geometry, joints, materials, physics)
- Create a floorplan and place assets with constraint solving
- Run physics validation
Typical generation time: 2-5 minutes depending on scene complexity.
curl --request POST \
--url https://api.gizmo.antimlabs.com/v1/scenes \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"model": "<string>",
"asset_pipeline": "auto",
"reference_image_urls": [
"<string>"
],
"persist": true
}
'import requests
url = "https://api.gizmo.antimlabs.com/v1/scenes"
payload = {
"prompt": "<string>",
"model": "<string>",
"asset_pipeline": "auto",
"reference_image_urls": ["<string>"],
"persist": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: '<string>',
model: '<string>',
asset_pipeline: 'auto',
reference_image_urls: ['<string>'],
persist: true
})
};
fetch('https://api.gizmo.antimlabs.com/v1/scenes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gizmo.antimlabs.com/v1/scenes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => '<string>',
'model' => '<string>',
'asset_pipeline' => 'auto',
'reference_image_urls' => [
'<string>'
],
'persist' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gizmo.antimlabs.com/v1/scenes"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"model\": \"<string>\",\n \"asset_pipeline\": \"auto\",\n \"reference_image_urls\": [\n \"<string>\"\n ],\n \"persist\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gizmo.antimlabs.com/v1/scenes")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"model\": \"<string>\",\n \"asset_pipeline\": \"auto\",\n \"reference_image_urls\": [\n \"<string>\"\n ],\n \"persist\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gizmo.antimlabs.com/v1/scenes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"<string>\",\n \"model\": \"<string>\",\n \"asset_pipeline\": \"auto\",\n \"reference_image_urls\": [\n \"<string>\"\n ],\n \"persist\": true\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"scene_id": "jh72k3m4n5p6q7r8",
"job_id": "job_a1b2c3d4",
"status": "queued",
"estimated_seconds": 1200,
"estimate_note": "Scene generation typically takes 10-25 minutes (structure + assets + placement)."
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123
}
}Headers
Body
Request body for scene generation.
Natural language description of the scene to generate
1"A modern robotics lab with two workbenches and a mobile manipulator"
Override the default LLM model
Asset geometry pipeline: 'auto' (recommended), 'gizmo' (parametric), or 'cad' (B-Rep)
auto, gizmo, cad Up to 3 http(s) image URLs grounding the generation (room photo, product shot). A reference automatically selects the photo-grounded structure build.
3Whether to save the scene to your library
Response
Job created