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
string
Model name. For example,
jimeng-4.0, jimeng-4.5.string
required
Prompt. Text describing the editing content, supports Chinese and English.
file
required
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.
integer
Number of images. The number of images to generate, defaults to 1.
string
Aspect ratio of the generated image. For example,
16:9, 1:1, 9:16, etc.string
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.string
Format of the returned generated image. Must be one of
url or b64_json.string
Resolution. Optional values:
1k, 2k, 4k.Response
integer
Generation timestamp (Unix timestamp).
array
Array of generation results.
string
URL of the generated image.
string
Rewritten prompt (returned by some upstream services).