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

# Midjourney Shorten



## OpenAPI

````yaml /openapi/midjourney.json post /midjourney/shorten
openapi: 3.0.0
info:
  title: Midjourney generation
  version: 1.0.0
  description: API reference for Midjourney generation on Ace Data Cloud.
servers:
  - url: https://api.acedata.cloud
    description: Ace Data Cloud API
security:
  - bearerAuth: []
paths:
  /midjourney/shorten:
    post:
      summary: Midjourney Shorten
      parameters:
        - in: header
          name: accept
          schema:
            enum:
              - application/json
            type: string
          required: false
          description: Midjourney Shorten Param Accept
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - prompt
              properties:
                prompt:
                  type: string
                  description: Midjourney Shorten Prompt
            example:
              prompt: A cute cat playing piano
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                example:
                  prompts:
                    - >-
                      a serene mountain lake at sunrise, mist rising from the
                      water, golden hour lighting --ar 16:9
                    - >-
                      mountain lake sunrise with mist, golden light --ar 16:9
                      --v 6
                    - >-
                      tranquil alpine lake, dawn mist, warm golden tones,
                      cinematic --ar 16:9
                    - >-
                      sunrise over a misty mountain lake, rich golden hour
                      photography --ar 16:9 --style raw
                    - >-
                      misty lake at dawn, mountains in background, golden
                      sunrise --ar 16:9
                properties:
                  prompts:
                    type: array
                    items:
                      type: string
                    description: Midjourney Shorten Response 200 Prompts
          description: Midjourney Shorten Response 200
        '400':
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    example:
                      error:
                        code: token_mismatched
                        message: The specified token is not matched with API.
                      trace_id: 2efa9340-b21b-4e26-9e14-4aac95f343ab
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            example: token_mismatched
                            description: Midjourney Shorten Response 400 Error Code
                          message:
                            type: string
                            example: The specified token is not matched with API.
                            description: Midjourney Shorten Response 400 Error Message
                      trace_id:
                        type: string
                        description: Midjourney Shorten Response 400 Trace Id
                  - type: object
                    example:
                      error:
                        code: api_not_implemented
                        message: The API is not implemented.
                      trace_id: 2efa9340-b21b-4e26-9e14-4aac95f343ab
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            example: api_not_implemented
                            description: Midjourney Shorten Response 400 Error Code 2
                          message:
                            type: string
                            example: The API is not implemented.
                            description: Midjourney Shorten Response 400 Error Message 2
                      trace_id:
                        type: string
                        description: Midjourney Shorten Response 400 Trace Id 2
          description: Midjourney Shorten Response 400
        '401':
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    example:
                      error:
                        code: invalid_token
                        message: The specified token is invalid or wrong.
                      trace_id: 2efa9340-b21b-4e26-9e14-4aac95f343ab
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            example: invalid_token
                            description: Midjourney Shorten Response 401 Error Code
                          message:
                            type: string
                            example: The specified token is invalid or wrong.
                            description: Midjourney Shorten Response 401 Error Message
                      trace_id:
                        type: string
                        description: Midjourney Shorten Response 401 Trace Id
          description: Midjourney Shorten Response 401
        '429':
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    example:
                      error:
                        code: too_many_requests
                        message: You have exceeded the rate limit.
                      trace_id: 2efa9340-b21b-4e26-9e14-4aac95f343ab
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            example: too_many_requests
                            description: Midjourney Shorten Response 429 Error Code
                          message:
                            type: string
                            example: You have exceeded the rate limit.
                            description: Midjourney Shorten Response 429 Error Message
                      trace_id:
                        type: string
                        description: Midjourney Shorten Response 429 Trace Id
          description: Midjourney Shorten Response 429
        '500':
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    example:
                      error:
                        code: api_error
                        message: Internal server error.
                      trace_id: 2efa9340-b21b-4e26-9e14-4aac95f343ab
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            example: api_error
                            description: Midjourney Shorten Response 500 Error Code
                          message:
                            type: string
                            example: Internal server error.
                            description: Midjourney Shorten Response 500 Error Message
                      trace_id:
                        type: string
                        description: Midjourney Shorten Response 500 Trace Id
          description: Midjourney Shorten Response 500
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API token from https://platform.acedata.cloud

````