# AI Baby Generator

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/aiart/aibaby:
    post:
      summary: AI Baby Generator
      deprecated: false
      description: >-
        This API allows users to upload photos of the father and mother, then
        automatically generates a predicted image of their child by blending
        both parents’ facial features. Users can select the preferred gender and
        adjust how strongly the resulting image resembles each parent.
      tags:
        - Reference
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: true
          example: Bearer <your api key>
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                userFatherImageUrl:
                  type: string
                  description: >-
                    The URL of the father's image provided by the user or a BASE
                    64 encoded image.
                userMotherImageUrl:
                  type: string
                  description: >-
                    The URL of the mother's image provided by the user or a BASE
                    64 encoded image.
                weight:
                  type: number
                  description: >-
                    A value between 0 and 1 that determines how strongly the
                    generated result leans toward the father’s features (1.0) or
                    the mother’s features (0.0).
                genderPrompt:
                  type: string
                  description: >-
                    Gender hint provided by the user to guide the appearance of
                    the generated child. Allowed Values: "boy", "girl".
              required:
                - userFatherImageUrl
                - userMotherImageUrl
                - genderPrompt
                - weight
              x-apifox-orders:
                - userFatherImageUrl
                - userMotherImageUrl
                - genderPrompt
                - weight
            example:
              genderPrompt: boy
              weight: 0.5
              userFatherImageUrl: >-
                https://u-static.fotor.com/uid_0f5eccd484e6403084043fd20e320027/image_to_image/app-fotor-web/8e1ce0ef-4002-4090-827f-a7fbeacdfa7e.jpeg
              userMotherImageUrl: >-
                https://u-static.fotor.com/uid_0f5eccd484e6403084043fd20e320027/image_to_image/app-fotor-web/aa40e389-dc5a-4d7e-8db3-cc2b463ca36e.jpeg
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: '000: Success，999: Unknown error'
                    x-apifox-mock: '000'
                    examples:
                      - '000'
                  msg:
                    type: string
                    x-apifox-mock: success
                    examples:
                      - success
                  data:
                    type: object
                    properties:
                      taskId:
                        type: string
                        description: Task ID, used to query task information.
                        x-apifox-mock: e0dc194703174b6eafeacb4ee8e02850
                        examples:
                          - e0dc194703174b6eafeacb4ee8e02850
                    required:
                      - taskId
                    x-apifox-orders:
                      - taskId
                required:
                  - code
                  - msg
                  - data
                x-apifox-orders:
                  - code
                  - msg
                  - data
          headers: {}
          x-apifox-name: success
      security: []
      x-apifox-folder: Reference
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5562290/apis/api-376673352-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api-b.fotor.com
    description: 正式环境
security: []

```
