IMG4Me - Text to Image Service

FREE
By seikan
Updated 4 months ago
Tools
8.7/10
Popularity Score
267ms
Latency
100%
Success Rate

IMG4Me - Text to Image Service API Documentation

IMG4Me is a free service to convert your text into image. You can use this service to prevent crawlers and robots from copying your email address, articles, or website contents. Meanwhile, you can handle encoding errors as well if your text is in non-English characters.

View API Details
GETMain
GETMain

The API will return the URL of the image generated.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
textSTRING
REQUIREDText to be converted into image.
Optional Parameters
fcolorSTRING
OPTIONALFont color in HEX.
bcolorSTRING
OPTIONALBackground color in HEX. Leave empty for transparent background.
fontSTRING
OPTIONALFont for the image generated. Supported word: arial, comic, dyslexic, georgia, impact, lucida, simsun, tahoma, times, trebuchet, verdana
sizeNUMBER
OPTIONALFont size.
typeSTRING
OPTIONALImage format: gif, jpg, png
Code Snippet
unirest.get("https://img4me.p.rapidapi.com/?fcolor=000000&bcolor=FFFFFF&font=trebuchet&size=12&type=png&text=Test+Me")
.header("X-RapidAPI-Host", "img4me.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://img4me.p.rapidapi.com/
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://img4me.p.rapidapi.com/?fcolor=000000&bcolor=FFFFFF&font=trebuchet&size=12&type=png&text=Test+Me")
.header("X-RapidAPI-Host", "img4me.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication