Skip to main content
POST
Upload image or video for use in run input
Upload reference images or videos before submitting a run. Returns a public URL to pass in model input fields (e.g. image_url, image_urls). Requires scope runs:write and the same API key as inference.

Request

multipart/form-data with field file:

curl

Response (201)

string
required
HTTPS URL to use in run input (e.g. "image_url": "https://...").
string
required
Internal storage key (for debugging).
string
required
MIME type, e.g. image/png.
number
required
Uploaded file size in bytes.

Example

Errors

See Error codes for the full catalog.

Authorizations

Authorization
string
header
required

API key: Key sk-xxx or Bearer sk-xxx

Body

multipart/form-data
file
file
required

image/* or video/*

Response

201 - application/json

The response is of type object.