List models
Returns the models you can call right now. Models without a configured price, or that are disabled, are not listed.
Implemented
Request
GET
/modelsRequires the Authorization: Bearer apl_... header
This endpoint takes no parameters.
Response
| Field | Type | Description |
|---|---|---|
data[].idrequired | string | Public model ID to send in the model field of other requests. |
data[].kindrequired | "TEXT" | "IMAGE" | "VIDEO" | Model kind. |
data[].capabilitiesrequired | string[] | Endpoints this model can be used with. |
data[].price_credit_per_unitrequired | integer | Sale 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 https://apilux.net/api/v1/models \
-H "Authorization: Bearer apl_YOUR_API_KEY"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));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
| HTTP | Code | Meaning |
|---|---|---|
| 401 | auth_missing_or_malformed | Missing Authorization header, or it is not in the Bearer apl_... form. |
| 401 | auth_invalid | The API key does not exist. |
| 401 | auth_revoked | The API key has been revoked. |
| 401 | auth_expired | The API key has expired. |