Image edits

Image edit

Creates an edited image by specifying one image and a prompt. Replace the placeholder with an image-capable model ID from the current catalog:

python
from openai import OpenAI client = OpenAI(    base_url="https://api.livrouter.com/v1") response = client.images.edit(    model="YOUR_IMAGE_MODEL_ID",    image=open("cat.png", "rb"),    prompt="Change the background of the image to space",    response_format="url")print(response.data[0].url)