Picture variant
Photo variant API is used to generate a similar version based on existing images and is suitable for visual orientation exploration, trade chart options and style approximations.
API Path
| Methodology | Path | Returns by |
|---|---|---|
POST | /v1/images/variations | synchronous returns the image variant result. |
Example request
bash
curl https://moonnexai.com/v1/images/variations \
-H "Authorization: Bearer <MOONNEXAI_API_KEY>" \
-F "image=@./product.png" \
-F "model=gpt-image-2" \
-F "n=2"Common field
| field | Annotations |
|---|---|
image | Enter the picture file. |
model | Picture model name, based on MoonNexAI console and API Reference. |
n | Generates the quantity. |
size | Output size, as API Reference. |
Results-based processing
| scene | Treatment |
|---|---|
| Multiple versions of candidates | Saves each result chart and original chart relationship. |
| User Double Selection | Marks the selected version as the business master map. |
| Continue editing | Imports the selected result into Picture Editor. |
Access Recommendations
- Use high-quality original maps as input to avoid compression footprints.
- Saves input, generate parameters and output maps to facilitate user backtrace.
- Use Picture Editor if you need to make a clear change of direction.