MemeStack Uploads API

Upload an image, mark your own upload controversial, or claim an image as your own work. Signed in.

GitHub OpenAPI

Operations 4

POST /v1/images/{id}/mark-controversial Mark your own image as controversial #
POST /v1/images/{id}/claim Claim an image as your own work #
DELETE /v1/images/{id}/claim Withdraw your pending claim on an image #
POST /v1/images/init-upload Initialize a multipart upload — returns image_id and R2 upload token #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/memestack-ai:memestack-ai-uploads-api"
All apis
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.

Get an API 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 Specification

memestack-ai-uploads-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MemeStack Uploads 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: Uploads
  description: Upload an image, mark your own upload controversial, or claim an image as your own work. Signed in.
paths:
  /v1/images/{id}/mark-controversial:
    post:
      tags:
      - Uploads
      summary: Mark your own image as controversial
      description: 'Uploader self-label. Sets the image''s controversy label to ''controversial'' so it is hidden from safe-mode browsing and blurred for signed-out viewers. Takes no body: the only thing this endpoint can do is raise the rating — it never marks an image safe and never clears a label (admins do that from the moderation tab). Idempotent: calling it again on an already-marked image answers the same 200. The caller must be the uploader (or an admin); anyone else gets 404, never 403. Extension-scoped tokens are refused (403 EXTENSION_SCOPE_FORBIDDEN).'
      security:
      - BearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The label is now 'controversial'. This is the one response in which an uploader sees their own label; the field is admin-only on every listing and on /meta.
          content:
            application/json:
              schema:
                type: object
                required:
                - id
                - controversy_label
                properties:
                  id:
                    type: string
                    format: uuid
                  controversy_label:
                    type: string
                    enum:
                    - controversial
              example:
                id: 11111111-1111-4111-8111-111111111111
                controversy_label: controversial
        '401':
          description: Authentication required.
        '403':
          description: Extension-scoped token (EXTENSION_SCOPE_FORBIDDEN).
        '404':
          description: Image not found or not yours.
      operationId: postV1ImagesByIdMarkControversial
      x-operation-id-source: derived
  /v1/images/{id}/claim:
    post:
      tags:
      - Uploads
      summary: Claim an image as your own work
      description: 'File a creator work claim on an image somebody else uploaded ("This is my work"). Claims are adjudicated by hand; a granted claim moves the image to the claimant''s account with creator credit. The image must be approved, visible to the caller, not the caller''s own upload, and from a claimable source: every AI-generated origin (generated:, grok-mcp:, grok-anon:) and Our World in Data charts are unclaimable. Rate limited 5/min and 20/day per user. Gated by the WORK_CLAIMS_ENABLED feature flag: while it is off this route answers 404, exactly as if it did not exist.'
      security:
      - BearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - proof_url
              - statement
              properties:
                proof_url:
                  type: string
                  format: uri
                  maxLength: 300
                  description: An https:// URL where you publish the original work (your site, or the post you first shared it from). Measured after URL normalization.
                statement:
                  type: string
                  minLength: 20
                  maxLength: 1000
                  description: Free-form statement of authorship for the reviewer.
            example:
              proof_url: https://example.com/portfolio/halving-chart
              statement: I drew this chart in 2024 and first posted it on my own site; the upload here is a re-post.
      responses:
        '201':
          description: Claim filed and awaiting review.
          content:
            application/json:
              schema:
                type: object
                properties:
                  claim:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      status:
                        type: string
                        enum:
                        - pending
        '400':
          description: 'Validation error. Body validation messages name the offending field (`proof_url: …` / `statement: …`) and carry no code; the two semantic refusals carry one: CANNOT_CLAIM_OWN (you uploaded this image) and SOURCE_NOT_CLAIMABLE (AI-generated or public-dataset origin).'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                    enum:
                    - CANNOT_CLAIM_OWN
                    - SOURCE_NOT_CLAIMABLE
        '401':
          description: Authentication required.
        '404':
          description: Image not found, not approved, not visible to you — or the WORK_CLAIMS_ENABLED flag is off.
        '409':
          description: You already have a pending claim on this image.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                    enum:
                    - CLAIM_PENDING
        '429':
          description: Rate limit exceeded (5/min or 20/day), or you already hold the maximum of 25 open claims — code TOO_MANY_OPEN_CLAIMS in the latter case.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                    enum:
                    - TOO_MANY_OPEN_CLAIMS
      operationId: postV1ImagesByIdClaim
      x-operation-id-source: derived
    delete:
      tags:
      - Uploads
      summary: Withdraw your pending claim on an image
      description: Withdraws the caller's own pending work claim. Deliberately NOT gated by WORK_CLAIMS_ENABLED — an already-filed claim must stay withdrawable even while new intake is dark.
      security:
      - BearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: Claim withdrawn.
        '401':
          description: Authentication required.
        '404':
          description: No pending claim of yours on this image.
      operationId: deleteV1ImagesByIdClaim
      x-operation-id-source: derived
  /v1/images/init-upload:
    post:
      tags:
      - Uploads
      summary: Initialize a multipart upload — returns image_id and R2 upload token
      description: Creates a pending image record and a pre-authorized R2 multipart upload session. Callers upload directly to R2 using the returned upload token, then call /v1/images/complete-upload to queue processing. Requires authentication. Rate-limited per tier (daily quota and concurrent-pending cap) plus request pacing at 120/min per user (300/min for admin/creator); paced 429s return code RATE_LIMITED with a Retry-After header.
      security:
      - BearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - mime_type
              - size
              properties:
                mime_type:
                  type: string
                  enum:
                  - image/jpeg
                  - image/png
                  - image/webp
                  description: MIME type of the image to be uploaded.
                size:
                  type: integer
                  description: File size in bytes (max 50 MB).
                file_hash:
                  type: string
                  pattern: ^[0-9a-f]{64}$
                  description: SHA-256 hex digest of the file — used for pre-upload duplicate detection. Optional but strongly recommended.
                mark_controversial:
                  type: boolean
                  default: false
                  description: 'Uploader self-label: true marks the image controversial from the moment it is created, so it is hidden from safe-mode browsing and blurred for signed-out viewers. Only the boolean true counts. An uploader can only raise a rating — there is no way to mark an image safe from here; that is an admin decision. Can also be set later with POST /v1/images/{id}/mark-controversial.'
      responses:
        '200':
          description: Upload session created.
          content:
            application/json:
              schema:
                type: object
                properties:
                  image_id:
                    type: string
                    format: uuid
                    description: Pending image record ID. Pass to /v1/images/complete-upload after the R2 upload finishes.
                  r2_key:
                    type: string
                    description: R2 object key for the upload. Send the bytes with PUT /v1/images/upload, headers X-Image-ID and X-R2-Key.
                  expires_in:
                    type: integer
                    description: Seconds until the upload session expires (900 = 15 minutes).
        '400':
          description: Missing or invalid fields, unsupported MIME type, or file too large.
        '401':
          description: Authentication required.
        '403':
          description: Account banned or frozen — uploads disallowed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  frozen_until:
                    type: string
                    format: date-time
                    description: Only present when the account is frozen (not banned). ISO timestamp at which the freeze expires; the user transitions to 'restricted' afterward.
                required:
                - error
              examples:
                banned:
                  summary: Banned account
                  value:
                    error: Your account has been banned. You cannot upload images.
                frozen:
                  summary: Frozen account
                  value:
                    error: Your account is temporarily frozen. You cannot upload images.
                    frozen_until: '2026-06-04T12:00:00Z'
        '409':
          description: Duplicate file — a record with this SHA-256 hash already exists.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                    enum:
                    - DUPLICATE_FILE
                  similar_image_id:
                    type: string
                    format: uuid
        '429':
          description: Upload limit reached — daily quota, concurrent-pending cap, or request-rate pacing. Inspect `code` to distinguish. RATE_LIMITED 429s (120 requests/min per user; 300/min for admin/creator) carry a Retry-After header — wait that many seconds and retry the same request. Quota 429s (DAILY_LIMIT_REACHED / PENDING_LIMIT_REACHED) are terminal until the quota resets or pending uploads drain.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                    enum:
                    - DAILY_LIMIT_REACHED
                    - PENDING_LIMIT_REACHED
                    - RATE_LIMITED
                    description: Discriminator for the kind of 429 — daily quota vs concurrent-pending cap vs per-minute request pacing (retryable; honor Retry-After).
                  daily_limit:
                    type: integer
                    description: Tier daily upload quota (only present when code === 'DAILY_LIMIT_REACHED').
                  uploads_today:
                    type: integer
                    description: Uploads initiated today (only present when code === 'DAILY_LIMIT_REACHED').
                  pending_limit:
                    type: integer
                    description: Maximum concurrent pending uploads for this tier (only present when code === 'PENDING_LIMIT_REACHED').
                  pending_count:
                    type: integer
                    description: Current pending uploads (only present when code === 'PENDING_LIMIT_REACHED').
                  tier:
                    type: string
                    enum:
                    - Pleb
                    - Memer
                    - Stacker
                    - Memelord
                    - Admin
                    description: Caller's current upload tier.
                  next_tier:
                    type: object
                    nullable: true
                    description: Next tier info (null for Memelord/Admin). Only present when code === 'DAILY_LIMIT_REACHED'.
                    properties:
                      name:
                        type: string
                      requirement:
                        type: string
              examples:
                daily_limit:
                  summary: Daily quota exhausted
                  value:
                    error: Daily upload limit reached
                    code: DAILY_LIMIT_REACHED
                    daily_limit: 50
                    uploads_today: 50
                    tier: Pleb
                    next_tier:
                      name: Memer
                      requirement: 30 approved images
                pending_limit:
                  summary: Too many pending uploads
                  value:
                    error: Too many pending uploads (max 50). Please wait for current uploads to complete.
                    code: PENDING_LIMIT_REACHED
                    pending_limit: 50
                    pending_count: 50
                    tier: Pleb
      operationId: postV1ImagesInitUpload
      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