Skip to main content
POST
/
v1
/
generate
/
lucy-pro-i2i
Generate Lucy Pro I2I
const form = new FormData();
form.append('prompt', '<string>');
form.append('data', '<string>');

const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};

options.body = form;

fetch('https://api.decart.ai/v1/generate/lucy-pro-i2i', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
"<string>"

Authorizations

x-api-key
string
header
required

Headers

x-api-key
string
required

API key for authentication

User-Agent
string | null

Body

multipart/form-data
prompt
string
required

Text prompt for the image generation

data
file
required

Image file to process

seed
integer

Seed for the image generation

Required range: 0 <= x <= 4294967295
resolution
enum<string>
default:720p

Resolution of the image generation

Available options:
720p,
480p
enhance_prompt
boolean
default:true

Whether to enhance the prompt

Response

Successful Response

The response is of type file.