Skip to content

upload_file

Upload an image, video, audio or 3D mesh file from a URL for use as workflow input.

Returns a file_id to pass as input to workflows or forge runs. Upload files before
executing a generation; uploaded files can be reused across multiple runs.

IMPORTANT: Call tool `get_instructions` first for general platform guidance.

Parameters

ParameterTypeDefaultDescription
workspace_idrequiredstring (uuid)—The user's workspace id.
urlrequiredstring—Public URL of the image, video, audio or 3D mesh file to upload.
content_typestring—MIME type of the file, one of: application/fbx, audio/mpeg, audio/wav, image/jpeg, image/png, image/webp, model/gltf+json, model/gltf-binary, model/obj, model/ply, model/stl, video/mp4. Optional: detected from the URL's extension when omitted. A 3D mesh in OBJ, STL, PLY or glTF is converted into a GLB after upload, keeping the original; GLB and FBX are kept as uploaded. A .gltf must embed its buffers and textures; send a GLB otherwise.
project_idstring (uuid)—Optional project to add the result to; use list_projects to find project ids.