EditBackground
Edit image - Background
Async function -> response in notification 'edit_background'
Example:
import requests
import json
url_api = 'https://api.piktid.com/api'
id_image = 'target_image_identifier' # provided by /edit/target
prompt = 'a woman in the desert'
options = {}
response = requests.post(url_api+'/edit/background',
headers={'Authorization': 'Bearer '+TOKEN},
data={'id_image':id_image, 'options':json.dumps(options)},
)
response_json = json.loads(response.text)
links = response_json.get('links')
Authorization
token_auth_2 AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.piktid.com/api/edit/background" \ -H "Content-Type: application/json" \ -d '{}'{
"links": [
{
"l": "string",
"n": "string",
"t": "string"
}
]
}{
"code": 0,
"message": "string",
"description": "string"
}{
"code": 0,
"message": "string",
"description": "string"
}{
"code": 0,
"message": "string",
"description": "string"
}