create_upload_session
Get a binary upload URL for local image files to avoid base64 corruption. PUT raw bytes to the returned URL and receive a file_id for vision tools.
Instructions
Returns upload instructions for the binary side channel (use this to analyze LOCAL image files without base64 corruption). Before uploading, verify the local file exists and is non-empty with Bash (e.g. ls -la <path> or test -f <path> && stat -c %s <path>). Then PUT the raw bytes to the returned upload_url with curl --data-binary (NOT base64); the response gives a file_id to pass to any vision tool. Stateless -- call once to learn the endpoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime_type | No | MIME type of the image you will upload. Used in the curl Content-Type header. | image/png |