Modifier une image
POST
/v1/images/edits
- Modifier des images avec les modèles Grok
- Documentation officielle : Image Edits
Authorizations
bearer
Type
HTTP (bearer)
Request Body
multipart/form-data
model
string
Required
Modèle utilisé pour générer l'image.
prompt
string
Required
Instruction pour modifier l'image.
image
string
Required
Image à modifier. Prend en charge 1 image.
Format
"binary"aspect_ratio
string
Optionnel. Ratio d'aspect : 1:1 | 3:4 | 4:3 | 9:16 | 16:9 | 2:3 | 3:2 | 9:19.5 | 19.5:9 | 9:20 | 20:9 | 1:2 | 2:1 | auto
response_format
string
Optionnel. Format de sortie : b64_json ou url
resolution
string
Optionnel. Résolution : 1k | 2k
quality
string
Optionnel. Qualité : low | medium | high
n
integer
Optionnel. Nombre d'images de sortie. Par défaut 1, maximum 10.
Responses
Succès
application/json
object
created
integer
data
object[]
usage
object