Buckets:

download
raw
648 Bytes
from openai import OpenAI
import base64
client = OpenAI(base_url="https://f4k3r22--aquiles-image-server-serve.modal.run", api_key="dummy-api-key")
print("Editing an image...")
result = client.images.edit(
model="black-forest-labs/FLUX.1-Kontext-dev", image=open("vercel.jpeg", "rb"),
prompt="Hey, remove the triangle next to the word 'Vercel' and change the word 'Vercel' to 'Aquiles-ai'",
response_format="b64_json")
image_base64 = result.data[0].b64_json
image_bytes = base64.b64decode(image_base64)
print("Saving the image to output.png...")
# Save the image to a file
with open("output.png", "wb") as f:
f.write(image_bytes)

Xet Storage Details

Size:
648 Bytes
·
Xet hash:
756a517318ee82a5b55a1168e455c10b36ebe3b390bb3b138ec2699a80cce359

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.