> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goenhance.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Muse Image

> Muse Image, Meta's image model. Fast, low-cost text to image, or generation guided by up to 9 reference images in `image_list`. Always returns a single WebP image. The model picks the output size itself, so there is no `image_size` or resolution tier.

**Pricing** — 0.32 tokens ($0.0064) per image, flat. Reference images are not charged.

**Aspect ratio** — text to image defaults to 1:1. With reference images, `auto` (the default) follows the reference images.

Returns an `img_uuid`; poll GET /api/v1/jobs/detail (or use `custom_callback_url`) to get the generated image.

**Not accepted by this model** (rejected before any tokens are charged): `image_size` / `resolution`, more than 9 reference images.



## OpenAPI

````yaml api-reference/image-api/openapi-muse-image.json POST /api/v1/images/generations
openapi: 3.1.0
info:
  title: GoEnhance API - Muse Image
  description: Muse Image
  version: 1.0.0
servers:
  - url: https://api.goenhance.ai
security: []
paths:
  /api/v1/images/generations:
    post:
      tags:
        - ImageAPI
      summary: Muse Image
      description: >-
        Muse Image, Meta's image model. Fast, low-cost text to image, or
        generation guided by up to 9 reference images in `image_list`. Always
        returns a single WebP image. The model picks the output size itself, so
        there is no `image_size` or resolution tier.


        **Pricing** — 0.32 tokens ($0.0064) per image, flat. Reference images
        are not charged.


        **Aspect ratio** — text to image defaults to 1:1. With reference images,
        `auto` (the default) follows the reference images.


        Returns an `img_uuid`; poll GET /api/v1/jobs/detail (or use
        `custom_callback_url`) to get the generated image.


        **Not accepted by this model** (rejected before any tokens are charged):
        `image_size` / `resolution`, more than 9 reference images.
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: false
          example: '{{Authorization}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  enum:
                    - muse-image
                  description: Model name. Must be `muse-image`.
                prompt:
                  type: string
                  maxLength: 4000
                  description: >-
                    What to generate. Required. With reference images, describe
                    what to keep from them and what to change.
                image_list:
                  type: array
                  maxItems: 9
                  items:
                    type: object
                    properties:
                      url:
                        type: string
                        format: uri
                    required:
                      - url
                  description: >-
                    Optional reference images, `[{"url": "https://..."}]`, up to
                    9. JPG, PNG or WebP, publicly reachable, up to 30MB each.
                    Large images are downscaled automatically.
                ratio:
                  type: string
                  enum:
                    - auto
                    - '1:1'
                    - '16:9'
                    - '9:16'
                    - '4:3'
                    - '3:4'
                    - '3:2'
                    - '2:3'
                  default: auto
                  description: >-
                    Aspect ratio. `auto` means 1:1 for text to image, and
                    follows the reference images when `image_list` is given.
                custom_callback_url:
                  type: string
                  format: uri
                  description: >-
                    Optional. A publicly accessible HTTPS URL. When the task
                    status changes (processing / success / failed), GoEnhance
                    sends a POST request to this URL. The request body is
                    identical to the response of GET /api/v1/jobs/detail. If
                    your server does not respond with HTTP 200, the notification
                    is retried up to 3 times, with a 3-second timeout per
                    attempt.
                  example: https://your-server.com/goenhance/callback
              required:
                - model
                - prompt
            example:
              model: muse-image
              prompt: >-
                Keep the cup from the reference image and place it on a wooden
                cafe table in warm morning light
              image_list:
                - url: https://your-cdn.com/cup.png
              ratio: '4:3'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      img_uuid:
                        type: string
                      cost:
                        type: number
                        description: >-
                          Tokens deducted for this request. This is the amount
                          actually charged, so it already reflects any discount
                          active on your account and can be lower than the
                          listed price. Tokens are deducted when the task is
                          accepted, and refunded automatically if the generation
                          ends in failure.
                        example: 1
                    required:
                      - img_uuid
                      - cost
                required:
                  - code
                  - msg
                  - data
              examples:
                '1':
                  summary: Success
                  value:
                    code: 0
                    msg: Success
                    data:
                      img_uuid: c12b656c-747a-44fd-9c80-add79b0c52d5
                      cost: 1
                '2':
                  summary: Insufficient tokens
                  value:
                    code: 100
                    msg: tokens is not enough
                quota:
                  summary: API key quota exceeded
                  value:
                    code: 101
                    msg: 'API key quota exceeded: 4990 of 5000 tokens used (monthly)'
          headers: {}
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                required:
                  - code
                  - msg
          headers: {}
      deprecated: false
      security: []

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.