POST
/
v3
/
remove-text
Remove Text
curl --request POST \
  --url https://api.novita.ai/v3/remove-text \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "extra": {
    "response_image_type": "<string>",
    "enterprise_plan": {
      "enabled": true
    }
  },
  "image_file": "<string>"
}'
{
  "image_file": "<string>",
  "image_type": "<string>"
}
POST https://api.novita.ai/v3/remove-text Automatically remove text from images.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format, for example: Bearer {{API Key}}.

Request Body

extra
object
Optional extra parameters for the request.
image_file
string
required
The base64 original image, with a maximum resolution of 1024 x 1024 pixels and a maximum file size of 30 Mb.

Response

image_file
string
The Base64-encoded content of the returned image.
image_type
string
The returned image type.
Enum: png, webp, jpeg

Example

This API automatically removes text from images. Try it in playground. Request:
curl --location --request POST 'https://api.novita.ai/v3/remove-text' \
--header 'Authorization: Bearer {{API Key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "image_file": "{{Base64 encoded image}}"
}'
HTTP status codes in the 2xx range indicate that the request has been successfully accepted. A code of 400 means there is an error with the request parameters, while status codes in the 5xx range indicate internal server errors. You can obtain the image URL in the image_file field of the response in base64 format. Response:
{
    "image_file": "{{Base64 encoded image}}",
    "image_type": "jpeg"
}