API → ML → Generate a CAD model from text
Parameters
Name
Type
Req.
Possible values
fbx
: Autodesk Filmbox (FBX) format. <https://en.wikipedia.org/wiki/FBX>glb
: Binary glTF 2.0. This is a single binary with .glb extension. This is better if you want a compressed format as opposed to the human readable glTF that lacks compression.gltf
: glTF 2.0. Embedded glTF 2.0 (pretty printed). Single JSON file with .gltf extension binary data encoded as base64 data URIs. The JSON contents are pretty printed. It is human readable, single file, and you can view the diff easily in a git commit.obj
: The OBJ file format. <https://en.wikipedia.org/wiki/Wavefront_.obj_file> It may or may not have an an attached material (mtl // mtllib) within the file, but we interact with it as if it does not.ply
: The PLY file format. <https://en.wikipedia.org/wiki/PLY_(file_format)>step
: The STEP file format. <https://en.wikipedia.org/wiki/ISO_10303-21>stl
: The STL file format. <https://en.wikipedia.org/wiki/STL_(file_format)>
Returns
- 201 Created
successful creation
Name
Type
Req.
body
objectoptionalObject Properties
Possible values
thumbs_up
: Thumbs up.thumbs_down
: Thumbs down.accepted
: Accepted.rejected
: Rejected.
Possible values
cad
: CAD.kcl
: KCL.kcl_iteration
: KCL iteration.
Possible values
fbx
: Autodesk Filmbox (FBX) format. <https://en.wikipedia.org/wiki/FBX>glb
: Binary glTF 2.0. This is a single binary with .glb extension. This is better if you want a compressed format as opposed to the human readable glTF that lacks compression.gltf
: glTF 2.0. Embedded glTF 2.0 (pretty printed). Single JSON file with .gltf extension binary data encoded as base64 data URIs. The JSON contents are pretty printed. It is human readable, single file, and you can view the diff easily in a git commit.obj
: The OBJ file format. <https://en.wikipedia.org/wiki/Wavefront_.obj_file> It may or may not have an an attached material (mtl // mtllib) within the file, but we interact with it as if it does not.ply
: The PLY file format. <https://en.wikipedia.org/wiki/PLY_(file_format)>step
: The STEP file format. <https://en.wikipedia.org/wiki/ISO_10303-21>stl
: The STL file format. <https://en.wikipedia.org/wiki/STL_(file_format)>
Possible values
queued
: The async API call is queued.uploaded
: The async API call was uploaded to be converted.in_progress
: The async API call is in progress.completed
: The async API call has completed.failed
: The async API call has failed.
post
/ai/text-to-cad/{output_format}$ curl -X POST "https://api.zoo.dev/ai/text-to-cad/{output_format}" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '{
"prompt": "YZnAQj4N7"
}'
201 Created
Response{
"code": "bvMYhDwFAkzFE9md7ymFsQTMMd8h7f",
"completed_at": "2024-12-19T17:48:35.600Z",
"created_at": "2024-12-19T17:48:35.600Z",
"error": "8YN8YN1MfxDs9SuUaLeyjJV2",
"feedback": "thumbs_down",
"id": "df521d7d-d133-4e6c-a4b1-e9e9eccf3337",
"model": "kcl",
"model_version": "",
"output_format": "step",
"outputs": {},
"prompt": "qntShDLT97hhx2Ab5U1YDv6",
"started_at": "2024-12-19T17:48:35.600Z",
"status": "completed",
"updated_at": "2024-12-19T17:48:35.600Z",
"user_id": "707c2720-786e-474a-8b5d-dd113d4c88e2"
}