Account

Check remaining credits

Returns the account plan and remaining credit balance. Read-only — never deducts credits. Also available as GET /api/credits?apiKey=YOUR_API_KEY.

post/api/credits

Request

  • Base URL: https://app.pedra.ai
  • URL: https://app.pedra.ai/api/credits
  • Auth: none required

Request body

apiKeystring required

Account API key, sent in the request body. Get one at https://app.pedra.ai under Settings → API.

Response

Current plan and credit balance.

planstring

Account plan.

creditsRemaininginteger

Credits available for generations.

Example response

{
  "plan": "pro"
}

Changes

No recorded changes to this operation across all 1 revision of this API.