API overview
All endpoints live under https://apirouter.pleum.ai/v1 and are compatible with the OpenAI API.
Base URL#
https://apirouter.pleum.ai/v1If you use the OpenAI SDK, put the address above in base_url (Python) or baseURL (JS).
Authentication#
Every inference request carries an API key in the Authorization header. Issue API keys under Dashboard → API Keys; they start with the plm_ prefix.
Authorization: Bearer plm_xxxxxxxxxxxxxxxxEndpoints#
Creates a chat completion. Reference →
Lists available models and their pricing. Reference →
Retrieves your credit balance. Reference →
Retrieves today's applied USD/KRW FX rate (Korea Eximbank base rate). No authentication required.
Submits an asynchronous 3D generation task to BytePlus ModelArk. Reference →
Error format#
Errors are returned in the detail field along with an HTTP status code. Structured errors (such as insufficient credits) include an error code string.
{
"detail": {
"error": "insufficient_credits",
"message": "Insufficient credits: ₩120 < ₩540"
}
}For the full list of error codes, see the error codes doc.