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

# Midjourney Image to Image

> Generate images from input images using Midjourney AI model (async)

Generate new artistic works from images using [Midjourney](https://midjourney.com) V7 model.

**Key Features:**

* **Feature Preservation** - Retain core features of original images while adding creative elements
* **Style Transformation** - Transform photos into unique Midjourney artistic styles
* **Flexible Control** - Control original image influence through weight parameters
* **High-Quality Output** - V7 enhanced textures and detail representation


## OpenAPI

````yaml /en/openapi.yaml POST /generate/k/mj-img2img
openapi: 3.0.0
info:
  contact:
    email: support@sinancode.com
    name: API Support
    url: https://sinancode.com/support
  description: AI Model Task Scheduling Platform API
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  termsOfService: https://sinancode.com/terms-of-service
  title: TikTomato API
  version: '1.0'
servers:
  - url: https://api.sinancode.com/v1
    description: Production server
security: []
paths:
  /generate/k/mj-img2img:
    post:
      tags:
        - public
      summary: Midjourney Image-to-Image
      description: Generate images from input images using Midjourney AI model (async)
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ka.CreateMidjourneyImg2ImgTaskRequest'
        description: Task parameters
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.CreateTaskResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
      security:
        - AccessToken: []
components:
  schemas:
    ka.CreateMidjourneyImg2ImgTaskRequest:
      properties:
        aspectRatio:
          description: aspect ratio（optional）- outputaspect ratio
          enum:
            - '1:2'
            - '9:16'
            - '2:3'
            - '3:4'
            - '5:6'
            - '6:5'
            - '4:3'
            - '3:2'
            - '1:1'
            - '16:9'
            - '2:1'
          example: '16:9'
          type: string
        enableTranslation:
          default: false
          description: >-
            Enable translation (optional, default false) - Enable automatic
            translation
          example: false
          type: boolean
        fileUrls:
          description: File URL list (optional) - Input image URL array
          example:
            - https://example.com/image.jpg
          items:
            type: string
          type: array
        prompt:
          description: >-
            Prompt (required, max 2000 characters) - Text description for
            generation
          example: Make it more colorful and vibrant
          maxLength: 2000
          minLength: 1
          type: string
        speed:
          description: Speed (optional) - API generation speed
          enum:
            - relaxed
            - fast
            - turbo
          example: relaxed
          type: string
        stylization:
          description: Stylization (optional, range 0-1000) - Art style strength
          example: 1
          maximum: 1000
          minimum: 0
          type: integer
        variety:
          description: Diversity (optional, range 0-100, step 5) - Content diversity
          example: 10
          maximum: 100
          minimum: 0
          type: integer
        version:
          description: version（optional）- Midjourney modelversion
          enum:
            - '7'
            - '6.1'
            - '6'
            - '5.2'
            - '5.1'
            - niji6
          example: '7'
          type: string
        waterMark:
          description: Watermark (optional) - Watermark identifier
          example: my_watermark
          type: string
        weirdness:
          description: Weirdness (optional, range 0-3000) - Creative uniqueness
          example: 1
          maximum: 3000
          minimum: 0
          type: integer
      required:
        - prompt
      type: object
    dto.CreateTaskResponse:
      properties:
        task_id:
          description: Task ID
          example: 01234567-89ab-cdef-0123-456789abcdef
          type: string
      required:
        - task_id
      type: object
    apierror.ErrorResponse:
      properties:
        error_code:
          description: Machine-readable error code (e.g., TASK.INVALID_PARAMS)
          type: string
        message:
          description: User-friendly error message
          type: string
      type: object
  securitySchemes:
    AccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Please use your API Token for authentication

````