WaveSpeedAI APIBytedance Portrait

Bytedance Portrait

Portrait is a state-of-the-art AI portrait enhancement model that specializes in creating stunning, professional-quality portraits. It intelligently enhances facial features, adjusts skin tones, and optimizes lighting while maintaining natural aesthetics.

Features

Portrait is a state-of-the-art AI portrait enhancement model that specializes in creating stunning, professional-quality portraits. It intelligently enhances facial features, adjusts skin tones, and optimizes lighting while maintaining natural aesthetics.

Key Features

  • Intelligent Enhancement: Advanced AI algorithms for natural-looking portrait enhancement
  • Professional Quality: Studio-grade results with perfect lighting and skin tones
  • Natural Aesthetics: Maintains authenticity while improving visual appeal
  • Fast Processing: Quick turnaround for efficient workflows

Use Cases

  • Portrait Enhancement: Improve lighting, skin texture, and overall aesthetics
  • Professional Headshots: Create polished business portraits
  • Social Media Content: Perfect photos for social platforms
  • Event Photography: Enhance wedding and event portraits

Authentication

For authentication details, please refer to the Authentication Guide.

API Endpoints

Submit Task & Query Result


# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/portrait" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
    "prompt": "An extremely mundane iphone selfie with no clear subject or sense of composition, the image is a somewhat poorly held motion blur, and the Luffy cosplayer who is cosplaying with a straw hat",
    "image": "https://d1q70pf5vjeyhc.wavespeed.ai/media/images/1751365236608960947_3e830WTP.png",
    "seed": -1,
    "enable_base64_output": false
}'

# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
promptstringYes-The editing instruction describing the desired changes to the image.
imagestringYes-The image to edit, can be a URL or base64 encoded image.
seedintegerNo-1-1 ~ 2147483647The same seed and the same prompt given to the same version of the model will output the same image every time.
enable_base64_outputbooleanNofalse-If enabled, the output will be encoded into a BASE64 string instead of a URL.

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Query Parameters

Result Request Parameters

ParameterTypeRequiredDefaultDescription
idstringYes-Task ID

Result Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
dataobjectThe prediction data object containing all details
data.idstringUnique identifier for the prediction
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds
© 2025 WaveSpeedAI. All rights reserved.