MemeStack Premium and prices API
Every price in USD and sats, the premium products, and their Lightning or card checkout.
Every price in USD and sats, the premium products, and their Lightning or card checkout.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/memestack-ai:memestack-ai-premium-and-prices-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: MemeStack Premium and prices API
version: 1.0.0
description: 'Visual search engine for memes, infographics, charts, and screenshots. Find images by meaning, the text inside them, or visual similarity. AI-captioned, OCR-indexed, Lightning-ranked. Two tiers: the Open API (/v1) needs no key — the read endpoints the website itself uses, rate-limited per IP address; the Search API (/v2, Tenor v2-compatible) takes an API key, free for 100 calls a day, then paid plans (card or Lightning): https://memestack.ai/developers.'
contact:
name: MemeStack
url: https://memestack.ai
termsOfService: https://memestack.ai/terms
servers:
- url: https://api.memestack.ai
tags:
- name: Premium and prices
description: Every price in USD and sats, the premium products, and their Lightning or card checkout.
paths:
/v1/prices:
get:
tags:
- Premium and prices
summary: Every price, in USD and in sats
description: 'Every SKU''s USD price and the sats a Lightning offer for it would mint now. `pricing`: `usd` = sats computed from the USD price at the current BTC/USD rate; `sats` = the legacy sats prices. `sats` is null when no usable rate is available (then the response is not cached). Edge-cached 60 seconds; the query string is ignored.'
responses:
'200':
description: The price table.
content:
application/json:
schema:
type: object
properties:
pricing:
type: string
enum:
- usd
- sats
usd_per_btc:
type:
- number
- 'null'
prices:
type: object
additionalProperties:
type: object
properties:
usd_micro:
type: integer
sats:
type:
- integer
- 'null'
example:
pricing: usd
usd_per_btc: 84435
prices:
user_generate_standard:
usd_micro: 80000
sats: 95
metered_read:
usd_micro: 5000
sats: 6
operationId: getV1Prices
x-operation-id-source: derived
/v1/premium/products:
get:
tags:
- Premium and prices
summary: List premium products
description: 'Server-authoritative pricing for the premium SKUs (Supporter / Ad-free / two generation-credit packs). Every product carries its USD price and the sats an offer would mint for it now; `pricing` says which of the two the server prices from (`usd`: sats computed from the USD price at the current BTC/USD rate; `sats`: the legacy sats prices). 503 PRICES_UNAVAILABLE when a sats price cannot be computed (no usable rate). `enabled:false` = purchases temporarily unavailable — the /premium page renders its coming-soon state from this flag; already-purchased benefits keep working regardless of this flag. Edge-cached for 60 seconds.'
responses:
'200':
description: Premium product catalog.
content:
application/json:
schema:
type: object
properties:
enabled:
type: boolean
pricing:
type: string
enum:
- usd
- sats
products:
type: array
items:
type: object
properties:
key:
type: string
enum:
- supporter_30d
- ad_free_30d
- credits_10
- credits_100
name:
type: string
description:
type: string
price_sats:
type: integer
description: The sats a Lightning offer for this product would mint now.
price_usd_micro:
type: integer
description: The USD price in micro-USD (1 USD = 1,000,000).
card:
type: boolean
description: Sold by card too (the Polar card rail).
kind:
type: string
enum:
- supporter
- ad_free
- credits
days:
type: integer
description: Present on time-based products (supporter, ad_free).
credits:
type: integer
description: Present on the credits product.
example:
enabled: true
pricing: usd
products:
- key: supporter_30d
name: Supporter
description: No ads, higher daily limits and a Supporter mark on your profile, for 30 days
price_sats: 5922
price_usd_micro: 5000000
card: true
kind: supporter
days: 30
- key: ad_free_30d
name: Ad-free
description: No ads for 30 days
price_sats: 2369
price_usd_micro: 2000000
card: false
kind: ad_free
days: 30
- key: credits_10
name: 10 AI image credits
description: 10 standard AI images (25% off)
price_sats: 711
price_usd_micro: 600000
card: false
kind: credits
credits: 10
- key: credits_100
name: 100 AI image credits
description: 100 standard AI images (37% off)
price_sats: 5922
price_usd_micro: 5000000
card: false
kind: credits
credits: 100
operationId: getV1PremiumProducts
x-operation-id-source: derived
/v1/premium/purchase:
post:
tags:
- Premium and prices
summary: Request a Lightning offer for a premium product
description: 'Also sells the developer API call packs (api_builder_30d, api_growth_30d, api_scale_30d, api_calls_10k — listed by GET /v1/developer/plans, never by /v1/premium/products; the top-up answers 409 PLAN_REQUIRED without an active plan, and every pack answers 404 PRODUCT_UNAVAILABLE while the developer API is dark). Answers a 402 Lightning offer for one of the three premium SKUs: a bolt11 invoice minted at the platform''s receive address for the product''s price plus a macaroon bound to that product and price. Nothing is written and no balance exists — pay the invoice from any Lightning wallet, then POST /v1/premium/redeem with the macaroon to apply the product. A retried offer is simply a second invoice the client may pay instead (the first stays unpaid and expires). No Idempotency-Key: the invoice''s payment hash is the idempotency spine. Requires a fresh, non-banned/frozen account. Rate limited 10/min/user. Returns 404 while PREMIUM_ENABLED is off — the switch stops new offers only; already-purchased benefits and in-flight redeems keep working.'
security:
- BearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- product
properties:
product:
type: string
enum:
- supporter_30d
- ad_free_30d
- credits_10
- credits_100
- api_builder_30d
- api_growth_30d
- api_scale_30d
- api_calls_10k
example:
product: supporter_30d
responses:
'400':
description: Product is not one of the known SKU keys (INVALID_PRODUCT).
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
enum:
- INVALID_PRODUCT
'401':
description: Authentication required.
'402':
description: 'The Lightning offer (Cache-Control: private, no-store). Pay `invoice` before `invoice_expires_at`, then redeem with `macaroon`; the macaroon outlives the invoice, and an account-bound claim resumes even after `macaroon_expires_at`.'
content:
application/json:
schema:
type: object
properties:
code:
type: string
enum:
- PAYMENT_REQUIRED
invoice:
type: string
description: bolt11 invoice for exactly `amount_sats`.
macaroon:
type: string
description: Opaque HMAC token bound to this product and price — the credential for /v1/premium/redeem.
amount_sats:
type: integer
invoice_expires_at:
type: string
format: date-time
macaroon_expires_at:
type: string
format: date-time
product:
type: string
enum:
- supporter_30d
- ad_free_30d
- credits_10
- credits_100
- api_builder_30d
- api_growth_30d
- api_scale_30d
- api_calls_10k
example:
code: PAYMENT_REQUIRED
invoice: lnbc20u1p...
macaroon: v1:...
amount_sats: 5922
amount_usd_micro: 5000000
invoice_expires_at: '2026-09-16T12:20:00Z'
macaroon_expires_at: '2026-09-16T12:30:00Z'
product: supporter_30d
'404':
description: Premium purchases are temporarily disabled (PREMIUM_ENABLED is off).
'429':
description: Rate limit exceeded (10/min/user).
'503':
description: Payment rails temporarily unavailable (PAYMENT_UNAVAILABLE) — PAYMENTS_ENABLED / the L402 leg is off, or the invoice could not be minted.
operationId: postV1PremiumPurchase
x-operation-id-source: derived
/v1/premium/redeem:
post:
tags:
- Premium and prices
summary: Settle a premium offer and apply the product
description: 'Checks the offer''s invoice for settlement (LUD-21 verify at the provider) and applies the product effect EXACTLY ONCE — a replayed redeem answers `applied: "already"` with the account''s current premium state, never a second effect. Non-refundable; time products extend from max(now, current expiry) so a second purchase stacks, and the credits product adds credits. Poll this at ~2.5 s after paying until it stops answering 202. The claim is bound to the paying account: another account''s macaroon is refused, and an expired macaroon still resumes an already-paid claim. NOT gated by PREMIUM_ENABLED (a paid claim must always resolve); PAYMENTS_ENABLED off answers 503 so the poll stays alive. Rate limited 60/min/user. Every answer is private, no-store.'
security:
- BearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- product
- macaroon
properties:
product:
type: string
enum:
- supporter_30d
- ad_free_30d
- credits_10
- credits_100
- api_builder_30d
- api_growth_30d
- api_scale_30d
- api_calls_10k
macaroon:
type: string
description: The macaroon from the /v1/premium/purchase offer.
example:
product: supporter_30d
macaroon: v1:...
responses:
'200':
description: 'Invoice settled. `applied: true` = this call applied the effect; `applied: "already"` = a replay, the snapshot is the account''s current state.'
content:
application/json:
schema:
type: object
properties:
applied:
oneOf:
- type: boolean
enum:
- true
- type: string
enum:
- already
product:
type: string
enum:
- supporter_30d
- ad_free_30d
- credits_10
- credits_100
- api_builder_30d
- api_growth_30d
- api_scale_30d
- api_calls_10k
ad_free_until:
type: string
format: date-time
nullable: true
supporter_until:
type: string
format: date-time
nullable: true
generation_credits:
type: integer
example:
applied: true
product: supporter_30d
ad_free_until: null
supporter_until: '2026-10-16T12:00:00Z'
generation_credits: 0
'202':
description: 'Invoice not paid yet (AWAITING_PAYMENT) — keep polling. `expired: true` means the macaroon has expired but the claim is still open for this account.'
'400':
description: Unknown product (INVALID_PRODUCT), or the macaroon was minted for a different price (PRICE_MISMATCH).
'401':
description: Authentication required.
'402':
description: Macaroon missing, malformed, invalid, expired-and-unpaid, bound to another product, or from a previous payment provider (PAYMENT_INVALID) — request a new offer.
'404':
description: The payment belongs to another account's claim (NOT_FOUND), or the account no longer exists.
'429':
description: Rate limit exceeded (60/min/user).
'503':
description: PAYMENT_UNAVAILABLE — payments paused, or the settlement check at the provider failed; the paid invoice is recorded, retry with the same macaroon.
operationId: postV1PremiumRedeem
x-operation-id-source: derived
/v1/premium/purchases:
get:
tags:
- Premium and prices
summary: The account's recent premium payments
description: The last 20 premium payments for the calling account, newest first — the /premium status panel's "Recent purchases". `status` follows the payment row (`pending` → `settled` → `fulfilled`). Never gated by the kill switch; per-account, so never cached.
security:
- BearerAuth: []
responses:
'200':
description: Purchase history.
content:
application/json:
schema:
type: object
properties:
purchases:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
tool:
type: string
description: The macaroon tool the invoice was bound to (`premium_<product>`).
product:
type: string
description: '`tool` minus its `premium_` prefix.'
rail:
type: string
enum:
- l402
- card
description: Lightning (`l402`) or card (`card`, sold by Polar).
amount_sats:
type:
- integer
- 'null'
description: Null on a card purchase (a card sale has no sats).
amount_usd_micro:
type:
- integer
- 'null'
description: The sale in micro-USD, when it was priced in USD.
status:
type: string
enum:
- pending
- settled
- fulfilled
- failed
- refunded
created_at:
type: string
format: date-time
example:
purchases:
- id: d4e5f6a7-b8c9-0123-def0-234567890123
tool: premium_supporter_30d
product: supporter_30d
amount_sats: 2000
status: fulfilled
created_at: '2026-09-16T12:05:00Z'
'401':
description: Authentication required.
operationId: getV1PremiumPurchases
x-operation-id-source: derived
/v1/premium/checkout:
post:
tags:
- Premium and prices
summary: Start a card checkout (Polar)
description: Card sales are sold by Polar as merchant of record (spec 2026-10-04 §4.3). Answers the Polar checkout URL to send the buyer to; the order is applied to the account when Polar's webhook confirms payment. Dark (404, before auth) unless card payments are switched on and the product is sold by card — see `card` on /v1/premium/products. Requires a fresh account. Rate limited 10/min/user.
security:
- BearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- product
properties:
product:
type: string
enum:
- supporter_30d
- credits_100
- api_builder_30d
- api_growth_30d
- api_scale_30d
- api_calls_10k
responses:
'200':
description: The checkout session.
content:
application/json:
schema:
type: object
properties:
url:
type: string
format: uri
'401':
description: Authentication required.
'404':
description: Card checkout is not available for this product.
'409':
description: ALREADY_SUBSCRIBED — the account already has an active card subscription (manage it from the portal).
'502':
description: CHECKOUT_UNAVAILABLE — Polar did not answer.
operationId: postV1PremiumCheckout
x-operation-id-source: derived
/v1/premium/card:
get:
tags:
- Premium and prices
summary: The account's card subscription
description: Whether card checkout is available, the account's active Polar subscription (or null), and the email-login customer portal link. Never behind the offer switch. `private, no-store`. Rate limited 30/min/user.
security:
- BearerAuth: []
responses:
'200':
description: Card status.
content:
application/json:
schema:
type: object
properties:
available:
type: boolean
subscription:
type:
- object
- 'null'
properties:
status:
type: string
current_period_end:
type:
- string
- 'null'
format: date-time
cancel_at_period_end:
type: boolean
portal_url:
type:
- string
- 'null'
format: uri
'401':
description: Authentication required.
'503':
description: CARD_STATUS_UNAVAILABLE — Polar did not answer.
operationId: getV1PremiumCard
x-operation-id-source: derived
/v1/premium/portal:
post:
tags:
- Premium and prices
summary: Open the Polar customer portal
description: A one-hour Polar customer-portal link for the account (cancel, payment method, receipts). Never behind the offer switch. 404 NO_CARD_CUSTOMER with `portal_url` (the email-login portal) when Polar knows no customer for this account. Rate limited 10/min/user.
security:
- BearerAuth: []
responses:
'200':
description: The portal link.
content:
application/json:
schema:
type: object
properties:
url:
type: string
format: uri
'401':
description: Authentication required.
'404':
description: NO_CARD_CUSTOMER — carries `portal_url`.
'502':
description: PORTAL_UNAVAILABLE — Polar did not answer.
operationId: postV1PremiumPortal
x-operation-id-source: derived
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: JWT issued by /auth/callback (LNURL) or /auth/email/verify. Also accepted as the httpOnly cookie __Secure-bii-token for same-origin browser requests.
ApiKeyQuery:
type: apiKey
in: query
name: key
ApiKeyHeader:
type: apiKey
in: header
name: X-API-Key
externalDocs:
description: Full API documentation and developer guide
url: https://memestack.ai/developers
x-service-info:
categories:
- media
- search
docs:
homepage: https://memestack.ai/developers
apiReference: https://memestack.ai/llms-full.txt
llms: https://memestack.ai/llms.txt