Skip to content

AI credits

Loomta’s AI features run on a credit system. Credits are allocated per workspace by its plan and are consumed when you call the AI endpoints.

Endpoint CLI Spends credits
POST /public/v1/slides/caption loomta slides:caption ✅ Generates a caption + per-slide text
POST /public/v1/slides/composite loomta slides:composite ✅ Bakes captions onto images

Everything else — listing platforms, uploading media, creating and scheduling posts — does not spend credits. Those are governed by plan limits instead.

Credits are metered against the workspace. When a workspace has none left, the AI endpoints fail rather than silently doing nothing — branch on the error code (for example insufficient_credits) rather than the prose:

{ "code": "insufficient_credits", "message": "This workspace has no AI credits remaining." }
  • Generate once, reuse. slides:caption output is plain JSON — store it and feed selected captions into slides:composite without regenerating.
  • Composite is per image. A 10-slide carousel composites 10 captions in one call; size your requests accordingly.