ApiLux

List models

Returns the models you can call right now. Models without a configured price, or that are disabled, are not listed.

ImplementedAvailability depends on the selected model being enabled and priced in ApiLux.

Request

GET/models

Requires the Authorization: Bearer apl_... header

This endpoint takes no parameters.

Response

FieldTypeDescription
data[].idrequiredstringPublic model ID to send in the model field of other requests.
data[].kindrequired"TEXT" | "IMAGE" | "VIDEO"Model kind.
data[].capabilitiesrequiredstring[]Endpoints this model can be used with.
data[].price_credit_per_unitrequiredintegerSale price in credits (1 credit = 1 VND) per unit.
data[].billing_unitrequired"million_tokens" | "image" | "second"The unit the price applies to.

Billing

Free — no credit is charged.

Examples

cURL
curl https://apilux.net/api/v1/models \
  -H "Authorization: Bearer apl_YOUR_API_KEY"
Node.js
const res = await fetch("https://apilux.net/api/v1/models", {
  headers: { Authorization: `Bearer ${process.env.APILUX_API_KEY}` },
});
const { data } = await res.json();
console.log(data.map((m) => m.id));
Python
import os, requests

res = requests.get(
    "https://apilux.net/api/v1/models",
    headers={"Authorization": f"Bearer {os.environ['APILUX_API_KEY']}"},
)
print([m["id"] for m in res.json()["data"]])

Errors

HTTPCodeMeaning
401auth_missing_or_malformedMissing Authorization header, or it is not in the Bearer apl_... form.
401auth_invalidThe API key does not exist.
401auth_revokedThe API key has been revoked.
401auth_expiredThe API key has expired.