Skip to main content
POST
/
v1
/
generate
/
lucy-pro-t2i
Generate Lucy Pro T2I
const options = {
  method: 'POST',
  headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/x-www-form-urlencoded'},
  body: new URLSearchParams({prompt: '<string>'})
};

fetch('https://api.decart.ai/v1/generate/lucy-pro-t2i', 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

application/x-www-form-urlencoded
prompt
string
required

Text prompt for the image generation

seed
integer

Seed for the image generation

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

Resolution of the image generation

Allowed value: "720p"
orientation
string
default:landscape

Orientation of the image generation

enhance_prompt
boolean
default:true

Whether to enhance the prompt

Response

Successful Response

The response is of type file.