multipart/form-data rather than JSON because it receives a binary image file.
Endpoint: POST https://api.qhaigc.net/v1/images/edits
Request Parameters
The source image file to edit (binary). Common formats: PNG, JPEG, WEBP.
The image editing model to use. Example:
nano-banana-1.A text description of the edit to apply. Be specific — describe what should change and what should remain the same. Example:
"Change the background to white".Desired output dimensions. If omitted, the model may use the source image’s dimensions or a default size.
Response Fields
Unix timestamp of when the edited image was generated.
Array of edited image objects.
Code Examples
Example Response
Tips for Effective Edits
Write precise edit instructions
Write precise edit instructions
Vague prompts produce unpredictable edits. Specify what should change and what should stay the same. For example:
"Replace the red car with a blue car, keep all other elements identical" is better than "Make it blue".Use high-quality source images
Use high-quality source images
The editing model works best with clear, well-lit images. Blurry or low-resolution source images may produce poor results.
Supported file formats
Supported file formats
Upload images in PNG, JPEG, or WEBP format. Very large files may time out — resize your image to under 4MB if you encounter errors.