Skip to content

AI Portrait Patterns

GET https://api.newportai.com/api/ai_portrait_patterns

AI Portrait Patterns provides a variety of style templates can alter the appearence of images, including options such as sketch, oil painting, and others.

  • Use AI Portrait Patterns to get Pattern list with GET method.

Request Header Parameters

  • Content-TypestringRequired
    Enum
    application/json
  • AuthorizationstringRequired
    Bearer authentication format, for example: Bearer

Request Body Parameters

Response

  • codeinteger
    0 success, or error code.
  • messagestring
    "success", or error msg.
  • dataobject
    Format: { list: Array; count: int; }

Example

Request:

zsh
curl 'https://api.newportai.com/api/ai_portrait_patterns' \
-H "Authorization: Bearer {{key}}" \

Response:

json
{
  "code": 0,
  "message": "success", 
  "data": {
    "list": [
      {
        "id": "668f866928c802066a687e30",
        "name": "costume design",
        "imgUrl": "https://newportai-api-market.s3.amazonaws.com/demo_image/demo_image.jpg",
        "desc": "custome design effects",
        "patternNeedImgNum": 1
      }
    ],
    "requestId": "7ee6886ea71f4d6d9e9a701e2cc25f78"
  }
}