Image: Text-to-Image

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

Generate images from text using OpenAI GPT Image 2 (released Apr 2026, OpenAI's first image model with built-in reasoning / 'thinking mode' that plans layout and self-checks before rendering). Supports up to 4K output and native multilingual text rendering (English, Japanese, Korean, Chinese, Hindi, Bengali). Input: text prompt. Output: image up to 4K. Use for: complex visual compositions, accurate in-image text (signs, menus, multilingual labels), strong instruction-following on layout-heavy prompts, marketing assets where typography matters.

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

Request

  • Base URL: https://api.muapi.ai
  • URL: https://api.muapi.ai/api/v1/gpt-image-2-text-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
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.