About the REST API
Base URL, authentication, request and response format, and how to test your first key.
The XPlor3 REST API is the same API the studio uses. Its endpoints, validation, prices and refund rules are no different: an API key simply takes the place of a signed-in session.
Base URL
https://api.xplor3.space/v1Every endpoint in these docs is relative to that address.
Authentication
Send your API key in the Authorization header of every request:
Authorization: Bearer xpk_your_keyA request with no key, or with a wrong, revoked or expired one, is answered 401 UNAUTHORIZED. Starting a generation needs an account with a verified email; otherwise the answer is 403 EMAIL_UNVERIFIED.
Server side only
Call the API from your backend, scripts or server. A key sent from code in your users' browsers can be read by anyone who opens your page.
Test your first key
curl https://api.xplor3.space/v1/wallet \
-H "Authorization: Bearer $XPLOR3_API_KEY"A successful answer holds your balance and the last 20 credit entries:
{
"balance": 120.4,
"ledger": [
{
"id": "cm...",
"delta": -9.6,
"reason": "JOB_DEBIT",
"jobId": "cm...",
"orderId": null,
"createdAt": "2026-10-23T08:12:44.120Z"
}
]
}Format
- JSON requests and responses, with
Content-Type: application/jsonfor bodies. The exception is multipart file uploads. - Credits are decimal numbers, for example
9.6. - Times are ISO 8601 in UTC, for example
2026-10-23T08:12:44.120Z. - Error messages follow
Accept-Language:enfor English, Indonesian otherwise. - Long lists are paginated with
limit(at most 50) andcursor. The answer carriesitemsandnextCursor; sendnextCursorback ascursorfor the next page until it isnull.
Next steps
Generation flow
From choosing a model to downloading the result files, with complete examples.
Webhooks
Be told when a job ends, without asking again and again.
Endpoint reference
Every endpoint available to an API key, with its fields.
Model reference
Every model's input fields, accepted values and rules.
Limits and errors
Error codes, per-minute request limits, and how to handle them.

