Create Image Variations
- Endpoint:
POST https://api.olddog.shop/v1/images/variations - Content-Type:
multipart/form-data
Create variations with different styles/details based on an input image (compatible with OpenAI Images Variations).
Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| image | file | Yes | Input image file (often PNG; subject to server support). |
| model | string | No | Image model ID (if supported). |
| n | integer | No | Number of outputs. Default 1. |
| size | string | No | Size, e.g. 1024x1024. |
| response_format | string | No | url or b64_json. Default url. |
| user | string | No | End-user identifier. |
cURL example
bash
curl --request POST "https://api.olddog.shop/v1/images/variations" \
--header "Authorization: Bearer $OLD_DOG_API_KEY" \
--form "image=@./input.png" \
--form "n=2" \
--form "size=1024x1024"