POST
/
image-to-image
curl --request POST \
  --url https://dream-gateway.livepeer.cloud/image-to-image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'prompt=<string>' \
  --form 'image=<string>' \
  --form 'model_id=<string>' \
  --form strength=123 \
  --form guidance_scale=123 \
  --form image_guidance_scale=123 \
  --form 'negative_prompt=<string>' \
  --form safety_check=true \
  --form seed=123 \
  --form num_images_per_prompt=123
{
  "images": [
    {
      "url": "<string>",
      "seed": 123,
      "nsfw": true
    }
  ]
}

The public Livepeer.cloud Gateway used in this guide is intended for experimentation and is not guaranteed for production use. It is a free, non-token-gated, but rate-limited service designed for testing purposes. For production-ready applications, consider setting up your own Gateway node or partnering with one via the ai-video channel on Discord.

Please note that the optimal parameters for a given model may vary depending on the specific model and use case. The parameters provided in this guide are not model-specific and should be used as a starting point. Additionally, some models may have parameters such as guiding_scale and num_inference_steps disabled by default. For more information on model-specific parameters, please refer to the respective model documentation.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
prompt
string
required
image
string
required
model_id
string
default: required
strength
number
default: 0.8
guidance_scale
number
default: 7.5
image_guidance_scale
number
default: 1.5
negative_prompt
string
default:
safety_check
boolean
default: true
seed
integer
num_images_per_prompt
integer
default: 1

Response

200 - application/json
images
object[]
required