{"openapi":"3.1.0","info":{"title":"IMG Processing API","description":"This powerful and flexible API provides a wide range of\nimage manipulation and analysis capabilities, allowing developers to integrate advanced image processing\nfeatures into their applications with ease.\n","version":"1.0.0"},"servers":[{"url":"https://api.img-processing.com","description":"IMG Processing API Server"}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API Key for authentication"}},"schemas":{"ImageObject":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"name":{"type":"string","description":"The name of the image. This name is provided when uploading the image and is the way the image is identified in your account. It is not unique, in fact, each transformation you make to an image will create a new image with the same name."},"url":{"type":["string","null"],"description":"The public URL of the image. By default, this URL is not available and will be `null`. You can make the image public by using the publish endpoint. Once the image is public, the URL will be updated with the public UR."},"width":{"type":"number","description":"The width of the image in pixels."},"height":{"type":"number","description":"The height of the image in pixels."},"format":{"type":"string","enum":["png","jpeg","webp"],"description":"The format of the image. The format can be one of the following: `jpeg`, `png`, `webp`"},"size":{"type":"number","description":"The estimated size of the image in bytes. The size is an estimate and may not be exact since images can be compressed or optimized depending on the format and quality settings used during processing."},"created_at":{"type":"string","format":"date-time","description":"The date and time when the image was created. The date and time are in ISO 8601 format."}},"required":["id","name","width","height","format","size","created_at"],"title":"Image Object","description":"The Image object represents an image processed using the IMG Processing API. The object contains information about the image, such as its URL, size, and format. The Image object is returned in the response body of all image processing requests.","examples":[{"id":"image_etm0g3x5iap4cld1qcfsjvo2","name":"Processed Image","url":"https://storage.img-processing.com/images/image_etm0g3x5iap4cld1qcfsjvo2","width":460,"height":460,"format":"jpeg","size":282000,"created_at":"2021-09-01T12:00:00.000Z"}]},"UnauthorizedError":{"type":"object","properties":{"type":{"type":"string","description":"The type of error"},"error":{"type":"string","description":"The title of the error"},"status":{"type":"number","const":401,"description":"The status of the error"},"message":{"type":"string","description":"The error message"}},"required":["type","error","status","message"],"title":"Unauthorized Error","description":"Error object for unauthorized access. Probably due to missing or invalid API key","examples":[{"type":"https://docs.img-processing.com/errors/unauthorized","error":"Unauthorized","status":401,"message":"API key is required."}]},"ForbiddenError":{"type":"object","properties":{"type":{"type":"string","description":"The type of error"},"error":{"type":"string","description":"The title of the error"},"status":{"type":"number","const":403,"description":"The status of the error"},"message":{"type":"string","description":"The error message"}},"required":["type","error","status","message"],"title":"Forbidden Error","description":"Error object for forbidden access. Probably due to insufficient permissions.","examples":[{"type":"https://docs.img-processing.com/errors/forbidden","error":"Forbidden","status":403,"message":"You are not allowed to access this image."}]},"NotFoundError":{"type":"object","properties":{"type":{"type":"string","description":"The type of error"},"error":{"type":"string","description":"The title of the error"},"status":{"type":"number","const":404,"description":"The status of the error"},"message":{"type":"string","description":"The error message"}},"required":["type","error","status","message"],"title":"Not Found Error","description":"Error object for not found resources.","examples":[{"type":"https://docs.img-processing.com/errors/not-found","error":"Not Found","status":404,"message":"Image with id {imageId} not found."}]},"ValidationError":{"type":"object","properties":{"type":{"type":"string","description":"The type of error"},"error":{"type":"string","description":"The title of the error"},"status":{"type":"number","const":422,"description":"The status of the error"},"errors":{"type":"array","items":{"type":"string"},"description":"The validation errors"}},"required":["type","error","status","errors"],"title":"Validation Error","description":"Error object for validation errors","examples":[{"type":"https://docs.img-processing.com/errors/validation-error","error":"Validation Error","status":422,"errors":["{field or param} {error message}"]}]},"RateLimitError":{"type":"object","properties":{"type":{"type":"string","description":"The type of error"},"error":{"type":"string","description":"The title of the error"},"status":{"type":"number","const":429,"description":"The status of the error"},"message":{"type":"string","description":"The error message"}},"required":["type","error","status","message"],"title":"Rate Limit Error","description":"Error object for rate limit exceeded.","examples":[{"type":"https://docs.img-processing.com/errors/too-many-requests","error":"Too Many Requests","status":429,"message":"Rate limit exceeded. Try again later."}]},"ServerError":{"type":"object","properties":{"type":{"type":"string","description":"The type of error"},"error":{"type":"string","description":"The title of the error"},"status":{"type":"number","description":"The status of the error"},"message":{"type":"string","description":"The error message"}},"required":["type","error","status","message"],"title":"Server Error","description":"Error object for internal server errors.","examples":[{"type":"https://docs.img-processing.com/errors/internal-error","error":"Internal Error","status":500,"message":"An unexpected error occurred. Please try again later. If the problem persists, contact support."}]},"PaginatedImageResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ImageObject"},"description":"An array of Image objects representing the images in the current page."},"links":{"type":"object","properties":{"previous":{"type":["string","null"],"description":"The URL to the previous page of results, if available. If there is no previous page, this will be `null`."},"next":{"type":["string","null"],"description":"The URL to the next page of results, if available. If there is no next page, this will be `null`."}}}},"required":["data","links"],"title":"Paginated Image Response","description":"The PaginatedImageResponse object represents a paginated response containing a list of images. It includes an array of Image objects and links to navigate through the pages of results.","examples":[{"data":[{"id":"image_s56zyk2y28277cjoz6pwchvo","name":"a","url":null,"width":828,"height":1841,"format":"jpeg","size":2122031,"created_at":"2024-08-07T12:40:55.712Z"},{"id":"image_sf33syiyk8mqziwss8kegiy3","name":"b","url":null,"width":828,"height":1841,"format":"jpeg","size":2122031,"created_at":"2024-08-07T12:39:18.889Z"},{"id":"image_h7lvd99bfd7mz0wph00mq0du","name":"c","url":null,"width":828,"height":1841,"format":"jpeg","size":2122031,"created_at":"2024-08-07T12:39:01.598Z"}],"links":{"previous":"https://api.img-processing.com/v1/images?take=3&from=image_x9kyka4tbrm90b4hk5dwfgh3","next":"https://api.img-processing.com/v1/images?take=3&from=image_oy09072689xswn0o1cjf8k35"}}]},"IdentifyResponse":{"type":"object","properties":{"main_label":{"type":"string","description":"The main label of the image. This is the label with the highest probability."},"main_score":{"type":"number","description":"The probability score of the main label. This is a number between 0 and 1."},"secondary_labels":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","description":"The label of the secondary label. This is the label with a lower probability than the main label."},"score":{"type":"number","description":"The probability score of the secondary label. This is a number between 0 and 1."}},"required":["label","score"]},"description":"An array of secondary labels with their respective scores. These are the labels with lower probabilities than the main label."}},"required":["main_label","main_score","secondary_labels"],"title":"Identify Response","description":"Response object for image identification. Contains the main label and secondary labels with their scores.","examples":[{"main_label":"Tabby","main_score":0.4316079616546631,"secondary_labels":[{"label":"Tiger Cat","score":0.37503865361213684},{"label":"Egyptian Cat","score":0.124073326587677},{"label":"Plastic Bag","score":0.007065261714160442},{"label":"Lynx","score":0.003809159155935049}]}]},"VisualizeResponse":{"type":"object","properties":{"response":{"type":"string","description":"The response from the AI model. This is the description of the image based on the prompt provided."}},"required":["response"],"title":"Visualize Response","description":"Response object for the visualize endpoint.","examples":[{"response":"A beautiful sunset over the mountains with a clear sky and vibrant colors."}]},"ExtractTextResponse":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"string","description":"Content of the line extracted from the image."},"description":"An array of lines extracted from the image. Each line contains text that was detected in the image."}},"required":["lines"],"title":"Extract Text Response","description":"Response object for text extraction from images. Contains an array of lines with the extracted text.","examples":[{"lines":["This is the first line of text.","This is the second line of text."]}]},"ExtractFormattedTextResponse":{"type":"object","properties":{"format":{"type":"string","enum":["plain","markdown"],"description":"The format of the extracted text. It can be either plain text or markdown."},"content":{"type":"string","description":"The content of the image processed in the desired format."}},"required":["format","content"],"title":"Extract Formatted Text Response","description":"Response object for extracting formatted text from an image. Contains the format and content of the extracted text.","examples":[{"format":"markdown","content":"# Example Title\n\nThis is an example of **formatted text** extracted from an image. It can include *italic*, **bold**, and other markdown features."}]}}},"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/dashboard/images":{},"/v1/dashboard/images/{image_id}":{},"/v1/dashboard/checkout":{},"/v1/images/{image_id}":{"get":{"responses":{"200":{"description":"The API will return the Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"Error object for not found resources.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"getImage","tags":["Access Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Get Image by ID","description":"Sometimes you may need to retrieve a specific image information to get information about the image, such as the image URL, the image size, or the image format. This endpoint allows you to retrieve an image by its unique identifier."},"delete":{"responses":{"204":{"description":"The API will return a 204 No Content response if the image was successfully deleted."},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"Error object for not found resources.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"delete","tags":["Access Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Delete Image","description":"Sometimes you may need to remove an image from the system. This endpoint allows you to delete an image by its unique identifier, deleting all the data associated with the image, and making it unavailable for future requests.\n\nPublished images will no longer be accessible after deletion."}},"/v1/images":{"get":{"responses":{"200":{"description":"The API will return the Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedImageResponse"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"listImages","tags":["Access Endpoints"],"parameters":[{"in":"query","name":"take","schema":{"type":"number","minimum":1,"maximum":100,"description":"The number of images to return. Must be between 1 and 100. Defaults to 10."}},{"in":"query","name":"from","schema":{"type":"string","description":"The image ID to start from when listing images. If provided, the list will include images created after this ID. Must be a valid image ID."}}],"summary":"List Images","description":"This endpoint allows you to retrieve a list of all the images created by the user. The images are returned in descending order of creation date, with the most recent images first in the list.\n\nImages are paginated, following the pagination rules."},"post":{"responses":{"201":{"description":"The API will return the created Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"createImageFromUrl","tags":["Creation Endpoints"],"parameters":[],"summary":"Create Image from URL","description":"The first step to start processing images with the IMG Processing API is to create an Image Object. You can create an Image object by uploading an image file or by providing a URL to an existing image.\n\nThis endpoint allows you to create an Image object by providing a URL to an existing image. The API will download the image from the provided URL, so make sure the URL is accessible and the image is publicly available.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":30,"description":"The name of the image to identify it on the dashboard"},"url":{"type":"string","format":"uri","description":"The URL of the image to download. It must point to a supported image format (jpeg, png, webp)."}},"required":["name","url"],"examples":[{"name":"example-image","url":"https://example.com/image.jpg"}]}}}}}},"/v1/images/{image_id}/publish":{"post":{"responses":{"201":{"description":"The API will return the Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"Error object for not found resources.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"publish","tags":["Access Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Publish Image","description":"By default, all images created using the API are private and can only be accessed by the user who created them via the API key. This endpoint allows you to make a private image public, so that it can be accessed by anyone.\n\nPublishing an image adds it to a CDN, allowing it to be accessed faster and more efficiently.\n\nAfter publishing an image, the url field of the image object will be updated with the public URL. You can still access the image using the private download URL, but the public URL can be shared with others."}},"/v1/images/{image_id}/unpublish":{"post":{"responses":{"201":{"description":"The API will return the Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"Error object for not found resources.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"unpublish","tags":["Access Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Unpublish Image","description":"With this endpoint, you can unpublish an image that was previously published using the Publish Image endpoint. This will remove the image from the CDN and make it private again.\n\nAfter unpublishing an image, the url field of the image object will be updated with to null. You can still download the image using the Download Image endpoint."}},"/v1/images/{image_id}/download":{"get":{"responses":{"200":{"description":"The API will return the image as a binary response.","content":{"image/*":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"Error object for not found resources.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"download","tags":["Access Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Download Image","description":"This endpoint allows you to download an image by its unique identifier. The image is returned as a binary response.\n\nThis request is authenticated, so it is not recommended to share this URL with others. Use this endpoint to download images in your application or service, and serve them to your users, or use the publish endpoint to generate a public link to share the image with others."}},"/v1/images/upload":{"post":{"responses":{"201":{"description":"The API will return the created Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"uploadImage","tags":["Creation Endpoints"],"parameters":[],"summary":"Upload Image","description":"The first step to start processing images with the IMG Processing API is to create an Image Object. You can create an Image object by uploading an image file or by providing a URL to an existing image.\n\nThis endpoint allows you to create an Image object by uploading an image file.\n\nTo upload an image, you need to send a multipart/form-data request to the API with the image file as a File object stringified in the image field, and name field with the name of the image for identification purposes.","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":30,"description":"The name of the image to identify it on the dashboard."},"image":{"type":"string","format":"binary","description":"The image file to upload. It must be a valid image format (jpeg, png, webp) and not larger than 20MB."}},"required":["name","image"],"examples":[{"name":"example-image","image":{}}]}}}}}},"/v1/images/imagine":{"post":{"responses":{"201":{"description":"The API will return the created Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"generateImage","tags":["Creation Endpoints"],"parameters":[],"summary":"Imagine Image","description":"The imagine endpoint allows you to create a new image using AI. At the moment, there is support for the models: ByteDance SDXL-Lightning and Flux, which generates good quality images from text descriptions.\n\nThe images generated by the endpoint has a resolution of 1024x1024 pixels and are saved in JPEG format.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":30,"description":"The name of the image to identify it on the dashboard."},"prompt":{"type":"string","minLength":1,"maxLength":1000,"description":"The prompt for the image. It should describe what you want to see in the generated image."},"negative_prompt":{"type":"string","minLength":1,"maxLength":1000,"description":"The negative prompt for the image. It should describe what you don't want to see in the generated image."},"seed":{"type":"integer","minimum":0,"description":"The seed for the image. It is used to generate the image. If not provided, a random seed will be used."},"model":{"type":"string","enum":["sdxl","flux"],"description":"The model to use for the image. If not provided, the default model will be used."}},"required":["name","prompt"],"examples":[{"name":"example-image","prompt":"A beautiful sunset over the ocean.","negative_prompt":"No people in the image.","seed":42}]}}}}}},"/v1/images/{image_id}/classify":{"post":{"responses":{"201":{"description":"The API will return the Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentifyResponse"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"classify","tags":["Analysis Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Image Classification","description":"The classify endpoint allows you to classify an image using a pre-trained model. At the moment, the only supported model is the ResNet50 model, a deep learning model that excels at image classification tasks.\n\nThe endpoint will return a list of labels and their probabilities for the image."}},"/v1/images/{image_id}/visualize":{"post":{"responses":{"201":{"description":"The API will return the Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisualizeResponse"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"visualize","tags":["Analysis Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Visualize Image","description":"This endpoint returns a response based on the content of an image and a base prompt.\n\nThe prompt can be a question, statement, or any text that you want to ask about the image. The API will analyze the content of the image and generate a response based on the prompt using a pre-trained model.\n\nRight now there are three models available for this endpoint:\n\n- Uform-Gen: UForm-Gen is a small generative vision-language model primarily designed for Image Captioning and Visual Question Answering.\n- Llava: LLaVA is a large multimodal model that can generate text based on images and text prompts.\n- Gemini: Gemini is a multimodal model with advanced capabilities for understanding and generating text based on images.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":1000,"description":"The prompt to answer based on the content of the image. This is a natural language question or instruction that the model will respond to."},"model":{"type":"string","enum":["uform-gen","llava","gemini"],"description":"The model to use for the visualization. Supported models are uform-gen, llava, and gemini. If not provided, the default model will be used."}},"required":["prompt"],"examples":[{"prompt":"What is in this image?","model":"uform-gen"}]}}}}}},"/v1/images/{image_id}/extract-text":{},"/v1/images/{image_id}/extract-formatted-text":{"post":{"responses":{"201":{"description":"The API will return the Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractFormattedTextResponse"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"extractFormattedText","tags":["Analysis Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Extract Formatted Text","description":"This endpoint extracts the text from an image and returns its content in the format specified in the request.\n\nThe format can be either `plain` or `markdown`. The API will return all the text from the image, trying to maintain the document structure as much as possible.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string","enum":["markdown","plain"],"description":"The format of the extracted text. It can be markdown or plain text. If not provided, plain text will be used as default."}},"examples":[{"format":"markdown"}]}}}}}},"/v1/images/{image_id}/blur":{"post":{"responses":{"201":{"description":"The API will return the created Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"Error object for not found resources.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"blur","tags":["Edition Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Blur Image","description":"This endpoint allows you to apply a blur effect to an image. Blurring an image can be useful for various purposes, such as anonymizing sensitive information, creating a soft-focus effect, loader skeletons, etc.\n\nBlurring an image depends on a factor sigma that determines the intensity of the blur effect. The higher the value of sigma, the more intense the blur effect will be. This value represents the standard deviation of the Gaussian kernel used to apply the blur effect.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"sigma":{"type":"number","minimum":1,"maximum":1000,"description":"The standard deviation of the Gaussian kernel used to apply the blur effect."},"name":{"type":"string","minLength":1,"maxLength":30,"description":"The name of the image to identify it on the dashboard."}},"examples":[{"name":"blurred-image"}]}}}}}},"/v1/images/{image_id}/modulate":{"post":{"responses":{"201":{"description":"The API will return the created Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"Error object for not found resources.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"modulate","tags":["Edition Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Modulate Image","description":"This endpoint allows you to adjust the brightness, saturation, and hue of an image.\n\nBrightness is one of the three properties of color, along with hue and saturation. It refers to the amount of light in an image, with a high brightness making the image lighter and a low brightness making the image darker.\n\nContrast is the difference in brightness between the lightest and darkest parts of an image. A high contrast image will have a wide range of brightness values, while a low contrast image will have a narrow range of brightness values.\n\nFinally, exposure refers to the amount of light that reaches the camera sensor when taking a photo. A high exposure value will make the image brighter, while a low exposure value will make the image darker.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"brightness":{"type":"number","minimum":-100,"maximum":100,"description":"The brightness level to apply to the image. The difference between the brightness and lightness parameters is that brightness multiplies the color values, while lightness adds a constant value to the color values. Value should be between -100 and 100, where 0 is no change."},"saturation":{"type":"number","minimum":-100,"maximum":100,"description":"The saturation multiplier to apply to the image."},"exposure":{"type":"number","minimum":-100,"maximum":100,"description":"The exposure multiplier to apply to the image."},"contrast":{"type":"number","minimum":-100,"maximum":100},"name":{"type":"string","minLength":1,"maxLength":30,"description":"The name of the modulation. This is used to identify the modulation in the dashboard."}},"examples":[{"brightness":2,"name":"bright-image"}]}}}}}},"/v1/images/{image_id}/remove-background":{"post":{"responses":{"201":{"description":"The API will return the created Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"Error object for not found resources.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"removeBackground","tags":["Edition Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Remove Image Background","description":"This endpoint allows you to remove the background from an image. Removing the background from an image can be useful for various purposes, such as creating a transparent background or isolating the subject of the image.\n\nThe background removal process works by segmenting the image into foreground and background regions. The API uses advanced machine learning algorithms to detect and remove the background from the image, leaving only the foreground subject.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":30,"description":"The name of the image to identify it on the dashboard."}},"examples":[{"name":"background-removed-image"}]}}}}}},"/v1/images/{image_id}/convert":{"post":{"responses":{"201":{"description":"The API will return the Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"convert","tags":["Transformation Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Convert Image","description":"With this endpoint, you can create a new image by converting an existing image to a different format.\n\nThe supported image formats are jpeg, png, and webp.\n\n- JPEG (Joint Photographic Experts Group): A commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. JPEG compression significantly reduces the file size, but it can also reduce the image quality.\n- PNG (Portable Network Graphics): A raster-graphics file format that supports lossless data compression. PNG is often used for images that require transparency or when the image quality must be preserved without any loss.\n- WebP: A modern image format that provides superior lossless and lossy compression for images on the web. WebP images are smaller in size compared to JPEG and PNG, while maintaining similar or better image quality","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string","enum":["jpeg","png","webp","jpg"],"description":"The format to convert the image to. Supported formats are jpeg, png, webp, jpg."},"name":{"type":"string","minLength":1,"maxLength":30,"description":"The name of the image to identify it on the dashboard."},"quality":{"type":"integer","minimum":1,"maximum":100,"description":"The quality of the image to convert. It is a number between 1 and 100. If not provided, a default quality will be used."}},"required":["format"],"examples":[{"format":"jpeg","quality":90,"name":"converted-image"}]}}}}}},"/v1/images/{image_id}/crop":{"post":{"responses":{"201":{"description":"The API will return the Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"crop","tags":["Transformation Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Crop Image","description":"With this endpoint, you can crop an image by specifying the dimensions of the crop area.\n\nThe crop area is defined by 2 points: the top-left corner at (x1, y1) and the bottom-right corner at (x2, y2)","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"x1":{"type":"integer","minimum":0,"description":"The x-coordinate of the top-left corner of the crop area."},"y1":{"type":"integer","minimum":0,"description":"The y-coordinate of the top-left corner of the crop area."},"x2":{"type":"integer","minimum":0,"description":"The x-coordinate of the bottom-right corner of the crop area."},"y2":{"type":"integer","minimum":0,"description":"The y-coordinate of the bottom-right corner of the crop area."},"name":{"type":"string","minLength":1,"maxLength":30,"description":"The name of the image to identify it on the dashboard."}},"required":["x1","y1","x2","y2"],"examples":[{"x1":100,"y1":100,"x2":300,"y2":300,"name":"cropped-image"}]}}}}}},"/v1/images/{image_id}/mirror":{"post":{"responses":{"201":{"description":"The API will return the Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"mirror","tags":["Transformation Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Mirror Image","description":"With this endpoint, you can mirror an existing image horizontally or vertically to create a new image.\n\nMirror an image horizontally means that the image is mirrored along the vertical axis, while flipping an image vertically means that the image is mirrored along the horizontal axis. You can also mirror an image horizontally and vertically at the same time using the mode both","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["horizontal","vertical","both"],"description":"The mode of mirroring. It can be horizontal, vertical, or both."},"name":{"type":"string","minLength":1,"maxLength":30,"description":"The name of the image to identify it on the dashboard."}},"required":["mode"],"examples":[{"mode":"horizontal","name":"mirrored-image"}]}}}}}},"/v1/images/{image_id}/resize":{"post":{"responses":{"201":{"description":"The API will return the Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"resize","tags":["Transformation Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Resize Image","description":"This endpoint creates a new image by resizing an existing image.\n\nAt the moment, there are three fit modes available:\n\nFit Modes\nAvailable fit modes\n\n- fill: The image is resized to fill the specified dimensions, stretching/squishing the image to fit the provided dimensions. This is the default fit mode.\n- contain: The image is resized to fit within the specified dimensions, maintaining the aspect ratio, and adding a letterbox if necessary.\n- cover: The image is resized to cover the specified dimensions, maintaining the aspect ratio, cropping/clipping the image if necessary.\nAdditionally, you can specify the background color for the letterbox when using the contain fit mode, and the gravity for cropping or positioning the image when using the cover and contain fit modes.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"width":{"type":"integer","minimum":1,"maximum":10000,"description":"The width of the image to resize. It must be an integer greater than 0 and less than 10000. If not provided, the resized image will keep the aspect ratio of the original image."},"height":{"type":"integer","minimum":1,"maximum":10000,"description":"The height of the image to resize. It must be an integer greater than 0 and less than 10000. If not provided, the resized image will keep the aspect ratio of the original image."},"name":{"type":"string","minLength":1,"maxLength":30,"description":"The name of the resized image. It is used to identify the image on the dashboard."},"letterbox_color":{"type":"string","description":"The color of the letterbox when using the contain fit mode. It can be a color name, a hex color code, or transparent."},"position":{"type":"string","enum":["center","top","right","bottom","left","top-left","top-right","bottom-left","bottom-right"],"description":"The gravity position of the image when using the cover or contain fit modes."},"fit":{"type":"string","enum":["cover","contain","fill"],"description":"The fit mode to use when resizing the image."}},"examples":[{"width":300,"height":200,"name":"resized-image","letterbox_color":"transparent","position":"center","fit":"contain"}]}}}}}},"/v1/images/{image_id}/rotate":{"post":{"responses":{"201":{"description":"The API will return the Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"rotate","tags":["Transformation Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Rotate Image","description":"This endpoint creates a new image by rotating the original image.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"angle":{"type":"number","description":"The angle in degrees or radians rotate the image."},"unit":{"type":"string","enum":["degrees","radians"],"description":"The unit of the angle. Defaults to degrees if not provided."},"name":{"type":"string","minLength":1,"maxLength":30,"description":"The name of the image to identify it on the dashboard."}},"required":["angle"],"examples":[{"angle":90,"unit":"degrees"}]}}}}}},"/v1/images/{image_id}/watermark":{"post":{"responses":{"201":{"description":"The API will return the Image object in the response body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageObject"}}}},"401":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"422":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"5XX":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}}}},"operationId":"watermark","tags":["Multi-Image Endpoints"],"parameters":[{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests."},"required":true}],"summary":"Add Watermarks","description":"This endpoint allows you to add watermarks to an image. Watermarks are a great way to protect your images from unauthorized use and to promote your brand.\n\nAt the moment, you can only add image watermarks to your images. You must upload your watermark, apply the transformations, and once you have the desired watermark, apply it to your images using this endpoint.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"watermarks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the image to use as a watermark. Must be a valid image ID."},"top":{"type":"integer","description":"The position of the watermark from the top of the image to apply the watermark. If not provided, the watermark will be applied at the top of the image."},"left":{"type":"integer","description":"The position of the watermark from the left of the image to apply the watermark. If not provided, the watermark will be applied at the left of the image."},"width":{"type":"integer","minimum":1,"maximum":10000,"description":"The width of the watermark in pixels. If not provided, the watermark will be applied at its original width."},"height":{"type":"integer","minimum":1,"maximum":10000,"description":"The height of the watermark in pixels. If not provided, the watermark will be applied at its original height."},"repetition_mode":{"type":"string","enum":["repeat","no_repeat","repeat_x","repeat_y"],"description":"The repetition mode of the watermark. If not provided, the watermark will be applied once"}},"required":["id"]},"minItems":1,"maxItems":5,"description":"An array of watermark objects to apply to the image"},"name":{"type":"string","minLength":1,"maxLength":30,"description":"The name of the image to identify it on the dashboard."}},"required":["watermarks"],"examples":[{"watermarks":[{"id":"image_etm0g3x5iap4cld1qcfsjvo2","top":100,"left":100}]}]}}}}}}}}