3D Model and Image Conversion by imagetostl.com

v1.0.0
com.imagetostl/3d-converter Checked 4 days ago Published 13 days ago

Convert 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.

ParameterTypeDescription
fromstring | nullOptional input format. When set, pairs lists only that format's targets.

delete_conversion Delete conversion files

Deletes the conversion's files.

ParameterTypeDescription
job_id *stringjob_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.

ParameterTypeDescription
to *stringOutput format, for example obj or png. STEP is not an output. An image output is only available from an image input.
fromstring | nullInput format. Inferred from the filename when omitted. Use step for a STEP or STP file. Image inputs convert only to image outputs.
source_urlstring | nullPublic http or https URL of the file. At most 2,000 characters, with no username or password. The conversion API downloads it.
upload_idstring | nullupload_id from create_upload_link, after the file has been uploaded.

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.

ParameterTypeDescription
to *stringOutput 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.
fromstring | nullOptional input format, for example stl or png. The panel otherwise infers it from the file name.
languagestring | nullLanguage 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.

ParameterTypeDescription
job_id *stringjob_id from start_conversion.