Media inputs
Models that take media declare inputs of type image_url, audio_url or video_url. Each accepts one of:
- A public
httporhttpsURL the model can download. - A path on this site, such as
/media/outputs/product-1x1.webp, which lets you chain one result into the next model. - A base64 data URI of the right media type, for example
data:image/png;base64,....
There is no upload endpoint. For large files, host them anywhere public and pass the URL.
Pass a URL
curl
curl -X POST "https://inferlane.net/api/v1/queue/topaz/image-upscale" \
-H "Authorization: Key $API_KEY" \
-H "Content-Type: application/json" \
-d '{"image_url":"/media/outputs/product-1x1.webp","upscale_factor":2,"model":"standard"}'Send a local file as a data URI
IMAGE=$(base64 < photo.png | tr -d '\n')
curl -X POST "https://inferlane.net/api/v1/queue/topaz/image-upscale" \
-H "Authorization: Key $API_KEY" \
-H "Content-Type: application/json" \
-d "{\"image_url\": \"data:image/png;base64,$IMAGE\", \"upscale_factor\": 2}"Data URIs make request bodies large. Prefer URLs for anything bigger than a few megabytes.
Other input types
- stringtext
- Prompts and free text.
- number, integernumeric
- Checked against
minandmax. Integers must be whole numbers. - booleanflag
trueorfalse.- enumchoice
- One of the strings in
values.