Skip to main content
POST
/
api
/
image
/
effects
/
photo-to-emoji-grid
AI Emoji Generator
curl --request POST \
  --url https://www.ailabapi.com/api/image/effects/photo-to-emoji-grid \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form image='@example-file' \
  --form expression=Angry \
  --form 'style=3D Emoji Render' \
  --form 'scene=Baby Shower' \
  --form 'filler=Go Go Go'
{
  "request_id": "",
  "log_id": "",
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "task_type": "async",
  "task_id": ""
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
image
file
required

Original image.

  • Image format: JPEG JPG PNG WEBP
  • Image size: No more than 10 MB.
  • Image resolution: Less than 4096x4096px.
expression
string
required

Expression (English only). Max 100 characters; extra text will be automatically truncated. Use standard vocabulary to pass review.

Maximum string length: 100
Example:

"Angry"

style
string
required

Style (English only). Max 100 characters; extra text will be automatically truncated. Use standard vocabulary to pass review.

Maximum string length: 100
Example:

"3D Emoji Render"

scene
string
required

Scene (English only). Max 100 characters; extra text will be automatically truncated. Use standard vocabulary to pass review.

Maximum string length: 100
Example:

"Baby Shower"

filler
string

Filler Text (English only). Max 20 characters; extra text will be automatically truncated. Use standard vocabulary to pass review.

Maximum string length: 20
Example:

"Go Go Go"

Response

200 - application/json

Success

The response is of type object.