Image: Edit & Reference

gpt-image-2-image-to-image (best)

Edit images using OpenAI GPT Image 2 (instruction-based editing with reasoning, supports up to 4K). Input: source image, edit instruction. Output: edited image. Use for: precise instruction-following edits, object replacement, style transfer, inpainting-style modifications, edits that must preserve in-image text correctly.

post/api/v1/gpt-image-2-image-to-image

Request

  • Base URL: https://api.muapi.ai
  • URL: https://api.muapi.ai/api/v1/gpt-image-2-image-to-image
  • 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
images_liststring[] required
aspect_ratio'auto' | '1:1' | '16:9' | '9:16' | '4:3' | '3:4'
resolution'1K' | '2K' | '4K'
quality'low' | 'medium' | 'high'
webhook_urlstring uri nullable

Response

Successful Response

unknown required

Changes

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