Skip to content
Inferlane

API reference, 7 of 17

Files and inputs

Pass images, audio and video as URLs or data URIs.

Media inputs

Models that take media declare inputs of type image_url, audio_url or video_url. Each accepts one of:

  • A public http or https URL 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 min and max. Integers must be whole numbers.
booleanflag
true or false.
enumchoice
One of the strings in values.