{
    "openapi": "3.0.0",
    "info": {
        "title": "头像处理服务 - API文档",
        "version": "1.0.0",
        "description": "头像处理接口，例如一键生成国庆头像、圣诞头像、加V头像等功能，样式可以自定义和支持按要求定制。支持自动裁切图片中的人脸部分作为头像，也可以直接在图片URL中添加参数来进行各式各样的处理，并同步极速的返回图片URL，该接口暂时只接受定制服务，具体价格和结算方式等可联系客服。<a href=\"https:\/\/www.tianapi.com\/article\/111\" target=\"_blank\">头像处理接口的示例和说明<\/a>、<a href=\"https:\/\/www.tianapi.com\/demo\/base64\" target=\"_blank\">图片转Base64工具<\/a>\n"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/imgtx\/index": {
            "post": {
                "summary": "头像处理生成",
                "tags": [
                    "头像处理服务"
                ],
                "description": "",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "img": {
                                        "type": "string",
                                        "example": "base64",
                                        "description": "头像文件的base64，需带上编码头"
                                    },
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "createid": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "头像生成ID，1国旗头像，2圣诞头像..."
                                    }
                                },
                                "required": [
                                    "img",
                                    "key",
                                    "createid"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "picurl": {
                                            "type": "string",
                                            "example": "http:\/\/imgcl.tianapi.com\/sc_nzn\/3gq\/tianapipic\/20191222\/5dff40f950e53.jpeg",
                                            "description": "生成后的图片地址"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "picurl": "http:\/\/imgcl.tianapi.com\/sc_nzn\/3gq\/tianapipic\/20191222\/5dff40f950e53.jpeg"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}