Skip to main content
POST
/
v3
/
async
/
z-image-turbo-lora
Z Image Turbo LoRA Image Generation
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/z-image-turbo-lora \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "mask": "<string>",
  "seed": 123,
  "size": "<string>",
  "loras": [
    {
      "path": "<string>",
      "scale": 123
    }
  ],
  "prompt": "<string>",
  "strength": 123,
  "image_url": "<string>",
  "output_format": "<string>",
  "enable_base64_output": true
}
'
{
  "task_id": "<string>"
}
This is an asynchronous API and only returns an async task_id. You need to use the task_id to call the task result query API to get the generated result.
This is an asynchronous API and will only return the async task’s task_id. You should use this task_id to request the Query Task Result API to retrieve the generated result.

Request Headers

Content-Type
string
required
Enum value: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

mask
string
Mask image URL for inpainting. White areas are repainted, while black areas remain unchanged. Must be used with image_url.
seed
integer
Random seed for generation. -1 means using a random seed.Value range: [-1, 2147483647]
size
string
default:"1024*1024"
Pixel dimensions of the generated image (width*height).
loras
array
default:"[]"
List of LoRAs to apply (up to 3).Array length: 0 - 3
prompt
string
required
Positive prompt for generation.
strength
number
Transformation strength for image-to-image (img2img). 0.0-0.3 enhancement mode, 0.3-0.6 balanced transformation, 0.6-0.8 style transfer, 0.8-1.0 creative repainting. Must be used with image_url.Value range: [0, 1]
image_url
string
Reference image URL for image-to-image (img2img).
output_format
string
default:"webp"
Output image format. Supports jpeg, png, webp.Allowed values: jpeg, png, webp
enable_base64_output
boolean
default:false
If enabled, the output will be encoded as a BASE64 string instead of a URL.

Response Information

task_id
string
required
Use the task_id to request the Query Task Result API to retrieve the generated output.