Skip to main content

Overview

Head Swap LoRA is an asynchronous image-to-image model for replacing a head in a target image using one head reference image.

Endpoint and authentication

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

Copy-paste async quickstart

Successful response:

Poll for result

Success response:
Parse resultJson after state becomes success:

Request body

Parameters

string
default:"async"
required
Result delivery mode. Use async and poll with statusTask.
object
required
Head Swap LoRA input parameters.

Response format

POST /generateTask/head-swap-LoRA returns a task ID when the task is accepted. Poll the status endpoint until state is success or failed.
string
Unique task identifier used with the status endpoint.
string
Current task state: pending, processing, success, or failed.
string
JSON string containing output 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.

Billing

Head Swap LoRA is billed per generated image. For the current public price, see Pricing.

Latency and polling

Errors and troubleshooting

See Error Codes for the full error reference.