Overview
Z-Image LoRA is an asynchronous text-to-image model for generating a single image from a prompt. It supports explicitsize input, common aspect_ratio presets, optional seed control, and prompt extension.
Endpoint and authentication
Base URL:
All requests require your APIXO API key:
Copy-paste async quickstart
taskId; you need it to poll for the final result.
Poll for result
resultJson after state becomes success:
Request body
Generate with aspect ratio
Generate with explicit size
Parameters
string
default:"async"
required
Result delivery mode. Use
async and poll with statusTask.object
required
Z-Image LoRA input parameters.
Response format
Submit task response
POST /generateTask/z-image-LoRA returns a task ID when the task is accepted:
integer
API status code.
200 means the task was accepted.string
Human-readable status message.
string
Unique task identifier used with the status endpoint.
Status response fields
string
Unique task identifier.
string
Current task state:
pending, processing, success, or failed.string
JSON string containing generated image URLs in
resultUrls. Present when state is success.string
Machine-readable failure code. Present when
state is failed.string
Human-readable failure message. Present when
state is failed.integer
Task creation timestamp in Unix milliseconds.
integer
Task completion timestamp in Unix milliseconds. Present after completion.
integer
Processing duration in milliseconds when available.
Billing
Z-Image LoRA is billed per generated image.
Prompt extension does not add an extra public charge.
For current route and market comparison pricing, see Pricing.
Latency and polling
Z-Image LoRA tasks are asynchronous. Actual latency varies by prompt complexity and current queue load.
Rate limits and concurrency can vary by account, API key, and route. If you receive
429, slow down requests and retry with backoff. For account-level details, see System APIs.
Size rules
- If neither
sizenoraspect_ratiois provided, the default output size is1024*1536. sizesupports*,x, andXseparators.sizetakes precedence overaspect_ratio.- Explicit
sizerequires width and height to each stay within256-1536. aspect_ratiois used only whensizeis not provided.- Supported
aspect_ratiovalues map to platform-managed output sizes within the allowed range.
Errors and troubleshooting
HTTP errors
Request validation
See Error Codes for the full error reference.