API → ML → List text-to-CAD models you've generated
Parameters
Name
Type
Req.
Possible values
created_at_ascending
: Sort in increasing order of "created_at".created_at_descending
: Sort in decreasing order of "created_at".
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalObject Properties
items
arrayoptionalArray of
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.
get
/user/text-to-cad$ curl "https://api.zoo.dev/user/text-to-cad" \
--header "Authorization: Bearer $TOKEN"
200 OK
Response{
"items": [
{
"code": "zuHTlDVoB5Qg1atbNh419iLw8rh2",
"completed_at": "2024-09-07T21:56:41.930Z",
"created_at": "2024-09-07T21:56:41.930Z",
"error": "PAn4VqgttOqHZxr4d74Ax9ZSLElAlo",
"feedback": "rejected",
"id": "87cda3ec-e982-4623-83cf-ec3fa48baa6c",
"model": "cad",
"model_version": "YKhQ5u4664i75V8vzV",
"output_format": "stl",
"outputs": {},
"prompt": "UJd5I8cj0",
"started_at": "2024-09-07T21:56:41.930Z",
"status": "failed",
"updated_at": "2024-09-07T21:56:41.930Z",
"user_id": "494a1b58-2528-462e-a10b-33e52542a911"
}
],
"next_page": "P1lIwnowmBCe"
}