Edit Text in Image API
Replace text inside images with AI while keeping the original font, colour and background. OCR, edits, results and webhooks over a simple REST API.
The ReWords.AI API lets your product change the text inside an image — a price on a banner, a word in a meme, a date on a certificate — without redrawing it. It is the same engine that powers rewords.ai.
How it works
- Find the text.
POST /ocrreturns every line of text and its position. Skip this step if you already know where the text is, or if you only know the words — the edit endpoint can locate them for you. - Submit the edit.
POST /editswith the old and new text. The job is queued and you get anidback at once. - Get the results. Poll
GET /edits/{id}or receive a webhook. Every successful job returns result A and result B; result C (4K) is added when the image is suitable.
Base URL https://api.rewords.ai/v1
Auth Authorization: Bearer rw_live_...
Format JSON in (or multipart/form-data with the image file), JSON outQuickstart
Edit your first image with three requests.
Pricing and billing
Edit packs, OCR, and when you are charged.
Results and refunds
What A, B and C are, and what happens when a job fails.
Examples
Complete Node.js and Python clients, and every response you will meet.
FAQ
OCR, fonts, A versus B, retries, billing and front-end use.
API reference
Every endpoint, parameter and response.
Stuck? Email [email protected] or reach us on WhatsApp or TikTok from the contact page. The FAQ says what to include.