Account

Get API Key Info

Returns information about the API key used in the request: validity, type (secret/publishable), expiry, permissions, and remaining budget. Useful for validating keys without making generation requests.

get/account/key

Request

  • Base URL: https://gen.pollinations.ai
  • URL: https://gen.pollinations.ai/account/key
  • Auth: HTTP bearer

Response

API key status and information

idstring required

Opaque ID for editing this key in the owner’s account

validboolean required

Whether the API key is valid and active

type'publishable' | 'secret' required

Type of API key

namestring nullable required

Display name of the API key

expiresAtstring nullable required

Expiry timestamp in ISO 8601 format, null if never expires

expiresInnumber nullable required

Seconds until expiry, null if never expires

pollenBudgetnumber nullable required

Remaining pollen budget for this key, null = unlimited (uses user balance)

questPollenOnlyboolean required

Whether this key spends only Quest Pollen, never paid Pollen

rateLimitEnabledboolean required

Whether rate limiting is enabled for this key

userIdstring nullable required

Stable id of the user that owns this key — server-attested.

Changes

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