Crop.photo
  1. Crop.photo API
Crop.photo
  • Crop.photo API
    • Introduction
    • Authentication
    • FAQs
    • Examples
    • Interactive API Testing
    • Auto Resize & Align
      POST
    • Body Aware Crop
      POST
    • Unrecognizable Crop
      POST
    • Remove Background
      POST
    • Create Banner Job
      POST
    • AI Lifestyle Crop
      POST
    • Banners Job Status
      POST
  1. Crop.photo API

Create Banner Job

Developing
POST
/banners/with-mask/create
Create banners from input mask and image.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params multipart/form-data

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://us1-api.crop.photo/v1/banners/with-mask/create' \
--form 'input_image=@""' \
--form 'mask_image=@""' \
--form 'input_image_url=""' \
--form 'mask_image_url=""' \
--form 'minimum_margins="5%"' \
--form 'ai_model="auto"' \
--form 'analysis_hints="cars"' \
--form 'analysis_hints="parts"' \
--form 'analysis_hints="person"' \
--form 'analysis_hints="auto parts"' \
--form 'job_labels="car-model-lot-1"' \
--form 'job_labels="honda-lot-x"' \
--form 'webhook=""' \
--form 'webhook_secret=""' \
--form 'response_type=""'

Responses

🟢200Success
application/json
Body

Example
{
    "job_id": "string"
}
🟠401Unauthorized
🟠400Invalid Input | Crop.photo
Modified at 2024-04-26 16:06:39
Previous
Remove Background
Next
AI Lifestyle Crop
Built with