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

New non-LLM requests use 1 credit = $0.001. Calculate the full amount, including billable quantity and add-ons, apply the applicable account discount, then round the request total upward to the next whole credit. Agreed fixed unit prices retain their precision and replace the standard price and discount; final rounding still applies. See credit conversion and rounding. Head Swap LoRA is billed per generated image. For the current public price, see API pricing.

Latency and polling

Errors and troubleshooting

See Error Codes for the full error reference.

MCP integration

The complete model schema declares result decoding in mcp.result and supported file bindings in mcp.attachments. These are client integration metadata, not generation input parameters. Attachment paths: image_urls, head_urls. Preserve the user’s file order. Model parameter validation remains on the API.