Skip to content

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
object

Modèle utilisé pour générer l'image.

Instruction pour modifier l'image.

Image à modifier. Prend en charge 1 image.

Format"binary"

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

Optionnel. Format de sortie : b64_json ou url

Optionnel. Résolution : 1k | 2k

Optionnel. Qualité : low | medium | high

Optionnel. Nombre d'images de sortie. Par défaut 1, maximum 10.

Responses

Succès

application/json
object
object[]
object

Playground

Authorization
Body

Samples