Grasco
Profile Picture API & SDK
POST
/image-edit/hair

Change hair style and color

Query Parameters

gender?string
Value in"male" | "female"

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://api.grasco.dev/image-edit/hair" \  -H "Content-Type: application/json" \  -d '{    "imageDataUrl": "string"  }'
{
  "image": "string",
  "metadata": {
    "appliedStyles": [
      "string"
    ],
    "appliedColor": {
      "id": "string",
      "label": "string",
      "hex": "string"
    }
  },
  "generationId": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}