Skip to main content

Request

Make a POST request to below endpoint and pass the required parameters in the request body.
curl
--request POST 'https://modelslab.com/api/v1/enterprise/qwen/text2img' \

Body

json
{
  "key":"enterprise_api_key",
  "prompt": " photorealistic style, Victoria Orlova, a 24-year-old woman with long wavy dark chestnut hair, plump scarlet lips, deep brown eyes, almond-shaped eyes, fair skin, a slender curvaceous figure, an elegant posture, wearing cherry-colored lace lingerie, a delicate gold chain on her collarbone, a silk slip, strappy high heels, a subtle smoky eye, lounging on a velvet chaise lounge, watching a movie, lazily tracing a finger along her lips, glancing from under her lashes with a smirking expression, soft ambient lighting, photorealistic style",
  "width": 1024,
  "height": 1024,
  "samples": 1,
  "track_id":null,
  "webhook":null
}

Body Attributes

key
string
required
Your API Key used for request authorization.
prompt
string
required
Text prompt describing the image you want to generate.
negative_prompt
string
Items you don’t want in the image.
samples
number
default:"1"
Number of images to return. Maximum: 2.
width
number
default:"512"
Width of the generated image. Maximum: 1024.
height
number
default:"512"
Height of the generated image. Maximum: 1024.
webhook
string
A URL to receive a POST API call once the video generation is complete.
track_id
string
A unique ID used in the webhook response to identify the request.