Jimeng Image Editing
Jimeng Image
Jimeng Image Editing
Use POST /v1/images/edits to generate a new image by editing based on a reference image.
POST
Jimeng Image Editing
Jimeng Image Editing
An OpenAI-compatible image editing interface, submitted usingmultipart/form-data, supports generating new images based on a reference image.
- The route entry is
POST /v1/images/edits. - Currently submitted using
multipart/form-data. - A reference image file must be provided for editing.
- Supports Jimeng model image editing capabilities.
Supported Models
jimeng-4.0: Jimeng 4.0 modeljimeng-4.5: Jimeng 4.5 model
Method and Path
Request Example
Response Example
Authentication
Body
Model name. For example,
jimeng-4.0, jimeng-4.5.Prompt. Text describing the editing content, supports Chinese and English.
The image to edit. Upload a single image file for editing. It must be a supported image file, supporting png, webp, and jpg formats, with each image no larger than 25MB.
Number of images. The number of images to generate, defaults to 1.
Aspect ratio of the generated image. For example,
16:9, 1:1, 9:16, etc.Quality of the generated image.
auto (default) will automatically select the best quality for the given model. gpt-image-l supports high, medium, and low; dall-e-3 supports hd and standard; dall-e-2 supports only standard.Format of the returned generated image. Must be one of
url or b64_json.Resolution. Optional values:
1k, 2k, 4k.Response
Generation timestamp (Unix timestamp).
Array of generation results.
URL of the generated image.
Rewritten prompt (returned by some upstream services).