Endpoints

To access emojiai.com using API:

GET <https://api.emojiai.com/generate>

URL Parameters:

Field Required? Description
input Yes The input content. Must be < 280 characters.
key No The API key

Example:

curl '<https://api.emojiai.com/generate?input=nicely%20done&key=YOUR_KEY_HERE>'

Example response:

{
  "choices": [
    "🎨",
    "🌟",
    "🎩",
    "🎉",
    "🎁",
    "🎯"
  ],
  "remainingToken": 97
}

References

Error object:

{
  "error": "error_code_here"
}

Error codes:

limited Your API Key has run out of credits.
internal error Unexpected errors.

HTTP Statuses

200 All good.
429 Your API Key has run out of credits.
400 Your input is invalid.
500 Unexpected errors.