Image: Edit & Reference

gpt4o-edit (best)

Edit images using natural language instructions with GPT-4o. Input: image, text instruction. Output: edited image. Use for: natural language image editing, complex instruction following.

post/api/v1/gpt4o-edit

Request

  • Base URL: https://api.muapi.ai
  • URL: https://api.muapi.ai/api/v1/gpt4o-edit
  • Auth: one of:
    • API key in header x-api-key
    • OAuth 2 (client credentials, token URL https://api.muapi.ai/oauth/token)

Query parameters

webhookstring
team_idinteger nullable

Headers

x-api-keystring
x-embed-codestring nullable
x-agent-embed-codestring nullable
x-whitelabel-studiostring nullable
authorizationstring nullable

Request body

promptstring required
image_urlstring uri required
mask_image_urlstring uri required
webhook_urlstring uri nullable
aspect_ratio'1:1' | '2:3' | '3:2'
num_images1 | 2 | 4

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 2 revisions of this API.