3D Model and Image Conversion by imagetostl.com
v1.0.0Convert 3D models and images from your AI chat.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_formats List formats
Lists the 3D model and image formats this connector converts, and which pairs are available. It converts 3D models, and images to images. It does not convert an image to a 3D model. formats gives each id a category of 3d or image. STEP (.step and .stp) is an input and is not an output. SKP, IGES, 3DM, DXF, other CAD, documents, video, and ABC as an input stay excluded. An uploaded file can be up to 50 MB. A file given as a URL can be up to 100 MB; the conversion API enforces that.
| Parameter | Type | Description |
|---|---|---|
from | string | null | Optional input format. When set, pairs lists only that format's targets. |
delete_conversion Delete conversion files
Deletes the conversion's files.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | job_id from start_conversion. |
start_conversion Convert a file
Starts a 3D model conversion or an image-to-image conversion. It does not convert an image to a 3D model. The file comes from a public http or https URL, or from an uploaded file. For a file the user has (attached or local), call open_upload_panel first in hosts that show panels; never upload from your own sandbox. The conversion API downloads the URL, up to 100 MB. Uploads are limited to 50 MB. A finished result includes output, and filename when the API names the file.
| Parameter | Type | Description |
|---|---|---|
to * | string | Output format, for example obj or png. STEP is not an output. An image output is only available from an image input. |
from | string | null | Input format. Inferred from the filename when omitted. Use step for a STEP or STP file. Image inputs convert only to image outputs. |
source_url | string | null | Public http or https URL of the file. At most 2,000 characters, with no username or password. The conversion API downloads it. |
upload_id | string | null | upload_id from create_upload_link, after the file has been uploaded. |
create_upload_link Create upload link
Creates a single-use upload link for one file. In hosts that show panels, call open_upload_panel instead; never try to upload from your own sandbox first. The link expires after 10 minutes and accepts a file up to 50 MB. page_url opens the upload page. The file name is sent with the conversion so the download is named from it.
| Parameter | Type | Description |
|---|---|---|
filename * | string | Original file name, for example model.stl or photo.png. The extension must match the format. The base name is used for the converted file. |
from * | string | Input format, for example stl or png. Use step for a STEP or STP file. STEP is not an output. Image inputs convert only to image outputs. |
size_bytes * | integer | File size in bytes. A file over 50 MB is rejected here. The upload itself can be any size up to 50 MB. |
language | string | null | Language the user is chatting in, for example de, pt-BR, or zh-TW. Used for the upload page. |
open_upload_panel Open upload panel
Call this FIRST whenever the user wants to convert a file and has not given a public URL, including when they've attached a file in chat. Ask the user for the target format first if they have not said it; the source format is read from the file. Shows an upload panel in the chat. Do not try to upload from your own sandbox. The panel uploads the file, starts the conversion to the target format, and reports back with upload_id and job_id. In a host that does not show panels, use create_upload_link instead.
| Parameter | Type | Description |
|---|---|---|
to * | string | Output format, for example obj or png. STEP is not an output. An image output is only available from an image input. The panel starts the conversion after the upload. |
from | string | null | Optional input format, for example stl or png. The panel otherwise infers it from the file name. |
language | string | null | Language the user is chatting in, for example de, pt-BR, or zh-TW. |
get_conversion Get conversion result
Returns the status of a conversion. When it is finished, download_url is the target file when the API offers that link, otherwise the default link. filename is the API's name for that file when the result includes one. output has the target format and, when the API sends a size, bytes. other_downloads lists the remaining zip, 7z, and default links. An image result omits triangles.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | job_id from start_conversion. |