Presets
Extract preset from image
Upload a reference image and use AI to extract style settings as a preset. The image must already be uploaded as an asset (via POST /upload).
Authorization
token_auth AuthorizationBearer <token>
Token-based authentication using access tokens.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://v2.api.piktid.com/preset/extract-from-image" \ -H "Content-Type: application/json" \ -d '{ "file_id": "string" }'{
"instruction_data": {},
"suggested_name": null,
"suggested_description": null,
"file_id": null
}{
"error": "Invalid request",
"detail": [
{
"field": null,
"message": "string",
"position": "query"
}
]
}Empty
Empty
Empty