본문으로 건너뛰기

API index

Call catalog models with credits. Not every text API is OpenAI SDK compatible.

Inference Base URL is https://apirouter.pleum.ai/v1. Anthropic and Gemini SDKs use the root origin. https://apirouter.pleum.ai

Operations#

methodpathauthsummary
POST/v1/chat/completionsAPI key (plm_)Chat completions (OpenAI-compatible)
POST/v1/messagesAPI key (plm_)Messages (Anthropic-compatible)
POST/v1beta/models/{model}:generateContentAPI key (plm_)Gemini generateContent
POST/v1/responsesAPI key (plm_)Responses (OpenAI)
POST/v1/responses/compactAPI key (plm_)Conversation compact (unsupported · 501)
POST/v1/images/generationsAPI key (plm_)Image generation
POST/v1/images/editsAPI key (plm_)Image editing
WS/v1/realtimeAPI key (plm_)Realtime voice
POST/v1/audio/speechAPI key (plm_)TTS
POST/v1/audio/generationsAPI key (plm_)Music generation (currently unavailable)
POST/v1/video/generationsAPI key (plm_)Video generation
POST/v1/3d/generationsAPI key (plm_)3D generation
POST/v1/embeddingsAPI key (plm_)Embeddings
POST/v1/rerankAPI key (plm_)Rerank (currently unavailable)
POST/v1/systemoneAPI key (plm_)System One (decisions)
GET/v1/modelsPublicModel list (public)
GET/v1/creditsJWT or API keyCredit balance
GET/v1/generationJWT or API keySingle request lookup (X-Request-Id)
GET/v1/fx-ratePublicDisplay FX rate
GET/v1/keysDashboard JWTList API keys
POST/v1/provisioning/keysProvisioning key (plmk_)Mint keys via provisioning
GET/v1/routing-policiesDashboard JWTRouting policies
GET/v1/usage/reportAPI key (plm_)Usage report (usage:read key)
POST/v1/auth/device/codePublicDevice login code
GET/v1/stats/modelsPublicPublic model stats
GET/v1/stats/appsPublicApp attribution stats

Where to find cost#

Cost is settled after the reply. Find it in one of the four places below; each API doc links to this table.

WhereApplies toNote
cost (response body)Non-streaming chat, embeddings, images, and transcription, plus System OneMay be omitted when settlement is late.
X-Cost-Krw / X-Cost-Usd (response headers)messages, responses, gemini, and text-to-speech (TTS). Not on streamsValues are decimals in 0.1 steps.
cost / ttft_ms (last stream chunk)Streaming chatIncluded only once settlement has finished.
GET /v1/generation?id=Every request. id is the X-Request-Id response header valueThe most reliable lookup. Returns your own requests only.

See the error codes doc for response shapes.