Method: client.CreateImageEdit(...)
Example
using PhaseoSdk;
var client = new Phaseo(apiKey);
var response = await client.CreateImageEdit(new Dictionary<string, object>
{
["model"] = "openai/gpt-image-1",
["prompt"] = "Make it sunset",
["image"] = "data:image/png;base64,...",
["mask"] = "data:image/png;base64,..."
});
Key parameters
model (required): Image-edit capable model id.
image (required): Stream or file to source image.
prompt: Optional new instruction for the edit.
mask: Optional mask (transparent regions edited).
n (1–10): Number of edited variants.
size: e.g., 1024x1024, 1024x1792, 1792x1024.
response_format: url or b64_json.
user: Optional end-user tag.
Returns
ImageGenerationResponse Last modified on July 9, 2026