Skip to main content

Overview

Z-Image LoRA is an asynchronous text-to-image model for generating a single image from a prompt. It supports explicit size input, common aspect_ratio presets, optional seed control, and prompt extension.

Endpoint and authentication

Base URL:
All requests require your APIXO API key:
Submit requests also require:

Copy-paste async quickstart

Successful response:
Save the taskId; you need it to poll for the final result.

Poll for result

Processing response:
Success response:
Parse 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 size nor aspect_ratio is provided, the default output size is 1024*1536.
  • size supports *, x, and X separators.
  • size takes precedence over aspect_ratio.
  • Explicit size requires width and height to each stay within 256-1536.
  • aspect_ratio is used only when size is not provided.
  • Supported aspect_ratio values 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.