Prompt words for editing images. Suggestions:
Length <= 700 characters
Use natural language for editing instructions
It’s better to use a single instruction for each edit
For local edits, make the instruction as precise as possible, especially when there are multiple entities in the image—clearly describe what to do to whom for more accurate editing results
If the editing effect is not obvious, try adjusting the editing strength scale; the higher the value, the closer it follows the instruction
Try to use clear, high-resolution base images; images generated by the Doubao model will have better editing results.
Reference examples:
Add/Delete entity: Add/Delete xxx (Delete the girl in the picture / Add a rainbow)
Modify entity: Change xxx to xxx (Change the chicken leg in the hand to a hamburger)
Change style: Change to xxx style (Change to comic style)
Change color: Change xxx to xx color (Change the clothes to pink)
Change action: Modify expression or action (Make him cry/laugh/angry)
Change environment/background: Change the background to xxx, at xxx (Change the background to the seaside / Under the starry sky)
{
// "binary_data_base64": [],
"image_urls": [
"https://file.302.ai/gpt/imgs/20250703/b67c97c8291640b79a1e1bbd74b41ff5.jpeg"
],
"prompt": "背景换成演唱会现场",
"seed": -1,
"scale": 0.5
}
curl --location --request POST 'https://api.302.ai/doubao/drawing/seededit_v30' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
// "binary_data_base64": [],
"image_urls": [
"https://file.302.ai/gpt/imgs/20250703/b67c97c8291640b79a1e1bbd74b41ff5.jpeg"
],
"prompt": "背景换成演唱会现场",
"seed": -1,
"scale": 0.5
}'
{
"code": 10000,
"data": {
"task_id": "13255822150128211173"
},
"message": "Success",
"request_id": "20250704110639B45733F15D31C41ACBCD",
"status": 10000,
"time_elapsed": "1.087912558s"
}