Add image paste to your React app
Wires the usePaste hook to your textarea. Paste a screenshot → hosted markdown URL.
Don't wire it up by hand — hand your coding agent a prompt that's already grounded in our live API. Copy one, paste it into Claude Code, Cursor, or Copilot, and it adds GitHub-style image paste-and-host to your app. Pick your stack:
Wires the usePaste hook to your textarea. Paste a screenshot → hosted markdown URL.
Same hook in a Client Component, key via NEXT_PUBLIC_. No API route.
Wires the usePaste composable (or v-paste directive) to your textarea.
Rich-editor path: upload via uploadImage() inside handlePaste/handleDrop.
Rich-editor path: uploadImage() inside the DRAG_DROP_PASTE command.
Rich-editor path: uploadImage() then quill.insertEmbed(i, 'image', url).
One script tag, no framework or build step. Any textarea becomes paste-and-host.
These run on your machine or in CI, not in the browser. They use your secret key and spend generation credits (10 a month on the free plan).
A script that makes one hero per post, hosts it, and saves the URL in your content.
One image per page, wired into og:image at 1200×630. Generated once, stored in a manifest.
A small reusable pool of generated images with a 30-day expiry. Re-running costs nothing.
Want a stack that's not here yet? The core package works anywhere, and the docs have the full reference. Tell us what to add →