generative
License generated images
Changed onRegisters generated image assets and licenses the registered images.
post/v2/generative/images/licenses
Request
- Base URLhttps://api.shutterstock.com
- AuthOAuth 2Authorization codehttps://accounts.shutterstock.com/oauth/authorizeToken URLhttps://api.shutterstock.com/v2/oauth/access_tokenScopeslicenses.create, purchases.view
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
subscription_idstring
Subscription ID to use to license the image
size'small' | 'medium' | 'huge' | 'custom'
Image size
Request body
Example request
{
"images": [
{
"asset_id": "asset-generation-e6706351-3624-4c4b-bc67-dbe8cd7ec66b-0",
"ai_use_acknowledgement": true,
"metadata": {
"customer_id": "12345"
},
"size": "huge",
"subscription_id": "s12345678"
}
]
}Response
OK
Example response
{
"data": [
{
"asset_id": "asset-generation-e6706351-3624-4c4b-bc67-dbe8cd7ec66b-0",
"image_id": "4302402011",
"download": {
"url": "https://download.shutterstock.com/gatekeeper/[random-characters]/shutterstock_4302402011.jpg"
},
"allotment_charge": 1,
"license_id": "e10278d7b73a59bdb1fd3710af40f01815"
}
],
"message": "Generated assets were licensed. Image metadata can now be retrieved with GET /images/4302402011."
}Changes
- info
endpoint added
- info