Image: Text-to-Image

nano-banana-2-1 (best)

Generate images using Nano Banana 2.1 (Google), up to 4K. Input: text prompt, aspect ratio, resolution. Output: image. Use for: fast high-quality text-to-image, legible in-image text, 4K images.

post/api/v1/nano-banana-2-1

Request

  • Base URL: https://api.muapi.ai
  • URL: https://api.muapi.ai/api/v1/nano-banana-2-1
  • 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'1:1' | '1:4' | '1:8' | '2:3' | '3:2' | '3:4' | '4:1' | '4:3' | '4:5' | '5:4' | '8:1' | '9:16' | '16:9' | '21:9' | 'Auto'
resolution'1k' | '2k' | '4k'
output_format'jpg' | 'png'
webhook_urlstring uri nullable

Response

Successful Response

unknown required

Changes

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