import fal_clientdef on_queue_update(update): if isinstance(update, fal_client.InProgress): for log in update.logs: print(log["message"])result = fal_client.subscribe( "fal-ai/gpt-image-1.5", arguments={ "prompt": "create a realistic image taken with iphone at these coordinates 41°43′32″N 49°56′49″W 15 April 1912" }, with_logs=True, on_queue_update=on_queue_update,)print(result)
{ "prompt": "create a realistic image taken with iphone at these coordinates 41°43′32″N 49°56′49″W 15 April 1912", "image_size": "1024x1024", "background": "auto", "quality": "high", "num_images": 1, "output_format": "png", "sync_mode": false}
import fal_clientdef on_queue_update(update): if isinstance(update, fal_client.InProgress): for log in update.logs: print(log["message"])result = fal_client.subscribe( "fal-ai/gpt-image-1.5/edit", arguments={ "prompt": "Same workers, same beam, same lunch boxes - but they're all on their phones now. One is taking a selfie. One is on a call looking annoyed. Same danger, new priorities. A hard hat has AirPods.", "image_urls": [ "https://v3b.fal.media/files/b/0a8691af/9Se_1_VX1wzTjjTOpWbs9_bb39c2eb-1a41-4749-b1d0-cf134abc8bbf.png" ] }, with_logs=True, on_queue_update=on_queue_update,)print(result)
{ "prompt": "Same workers, same beam, same lunch boxes - but they're all on their phones now. One is taking a selfie. One is on a call looking annoyed. Same danger, new priorities. A hard hat has AirPods.", "image_urls": [ "https://v3b.fal.media/files/b/0a8691af/9Se_1_VX1wzTjjTOpWbs9_bb39c2eb-1a41-4749-b1d0-cf134abc8bbf.png" ], "image_size": "auto", "background": "auto", "quality": "high", "input_fidelity": "high", "num_images": 1, "output_format": "png", "sync_mode": false}