Redraw specific regions of image using mask (white=redraw, black=keep). Use when users request image_redrawing operations or related tasks.
Redraw specific regions of image using mask (white=redraw, black=keep).
API: tm_redrawing
python scripts/generate_auth_token.py YOUR_APP_KEY YOUR_APP_SECRET
from scripts.tomoviee_image_redrawing_client import TomovieeClient
client = TomovieeClient("app_key", "app_secret")
task_id = client._make_request({
prompt='Clear blue sky with fluffy clouds'
image='https://example.com/photo.jpg'
})
result = client.poll_until_complete(task_id)
import json
output = json.loads(result['result'])
prompt (required): Description of what to redrawimage (required): Original image URLmask (required): Mask image URLresolution: 512*512, 768*768, 1024*1024image_num: Number of variations (1-4)task_id from API callpoll_until_complete(task_id)Status codes:
tomoviee_image_redrawing_client.py - API clientgenerate_auth_token.py - Auth token generatorSee bundled reference documents for detailed API documentation and examples.
ZIP package — ready to use