How to Use Description Generator via API

1. Upgrade your plan to designer or standard.

2. Create new user (designer or standard), name it Integration and fill in the remaining required fields.
Then go to the Roles tab and assign “Integration Hub User role“.

3. Save and Edit the newly created user, and markIntegration account” checkbox (see picture below).

 

4. Reveal and copy auth token.

Example API call to get image description:

curl -X POST https://eu1.silkplm.com/rpc/proc/ai/generate-description-by-a-i/get-image-ai-description-sync -H "Content-Type: application/json" -H "api-token: OIJs4mFEKz2p5BvI***********************" -d @input.json

If you are connecting from US replace server address by us1.silkplm.com.

POST input data in JSON format (input.json)

{ 
"lang": "en", 
"brandIntro": "sport, casual brand, with good sense of humor", 
"base64FileData":"/9j/4SLNRXhpZgAATU0AKgAAAAgADAEAAAMAAAABDqAAAAEBAAMAAAABFfAAAAECAAMAAAADAAAA
ngEGAAMAAAABAAIAAAESAAMAAAABAAEAAAEVAAMAAAABAAMAAAEaAAUAAAABAAAApAEbAAUAAAAB

....

W1jeGNLy3vZI0UxG4g5KYOKMFZwN+oJFAP/Z"
}

lang – output language
base64FileData – is base64 encoded JPEG image you like to describe
brandIntro – you can leave it empty, or provide additional instructions to create description that fits your brand DNA