Image

Generate Pat Head GIF

0calls
2 credits / call

Besides using QQ avatars, you can also create unique pat head GIFs by uploading your own images or providing image URLs.

Overview

This endpoint, via POST method, supports two ways to generate GIF:

  1. Image URL: Provide image_url field in the form.
  2. Upload Image: Upload file file in the form.

Usage Notes

  • Response Format: The endpoint directly returns image/gif format binary data on success.
  • Parameter Priority: If both image_url and uploaded file are provided, the system will prioritize using image_url.
  • Background Color: Also supports bg_color form field to control GIF background.

Request body

Form data containing image source and background color. Must provide either 'image_url' or 'file'.

image_url
stringoptional

URL address of the image. If provided, the image from this URL will be prioritized.

file
fileoptional

Uploaded image file. Supports common formats such as JPG, PNG, GIF, etc.

bg_color
stringoptional

Background color of the GIF. Optional values are 'white', 'black', 'transparent'.

Response

200 / OK

Generation successful! Response body is GIF format image binary data.

image/gif

400 / Bad Request

Request parameter error. Must provide either 'image_url' or upload 'file'.

JSON

500 / Internal Server Error

Internal server error. Possible reasons include: failed to get image from URL, failed to process uploaded file, or error occurred during GIF generation process.

JSON