header text

AI Tools 99

Login

face-to-many API

Running face-to-many workflow. Only pay for the GPU runtime, billed by the second.


Demo

3DEmojiVideo gamePixels
face-to-manyface-to-manyface-to-manyface-to-many
ClayToyLineAniColoringBook
face-to-manyface-to-manyface-to-manyface-to-many

Run time and cost

This model runs on 1002 GPU hardware. Predictions are typically completed within 25 seconds.



Generate API

How to obtain an API key

Notice: When using the API, you must include the apikey in the request header.

  1. Log in and navigate to the ApiKey management page.

login

  1. Add an API key, then copy it into your code.

login

API Domain

api.aitools99.net

HTTP Request

POST /api/v1/generate

Headers

Parameter NameRequiredTypeDescription
Content-TypeYesStringMust be set to application/json
apikeyYesStringUsed for authentication

Request Body (Body)

The request body is in JSON format and includes the following parameters:

    {
        "mid": 3125,
        "input": {
            "image": "https://img5.aitools99.net/fmm1.png",
            "style": "3D",
            "prompt": "a person",
            "negative_prompt": "",
            "prompt_strength": 7,
            "denoising_strength": 0.65,
            "instant_id_strength": 0.5,
            "control_depth_strength": 1,
            "lora_scale":1
        }
    }

Request Parameters

Parameter NameRequiredTypeDescription
midYesStringmodel id
inputYesObjectinput data

styles

3D, Emoji, Video game, Pixels, Clay, Toy, LineAni, ColoringBook

Parameter Recommendations

When the style is set to 3D, Emoji, Video game, Pixels, Clay or Toy, it is recommended to set denoising_strength to 0.65 and lora_scale to 1.

When the style is set to LineAni or ColoringBook, it is recommended to set denoising_strength to 1, control_depth_strength to 0.1 and lora_scale to 2.

Request Example

POST /api/v1/generate HTTP/1.1
Host: api.aitools99.net
Content-Type: application/json
apikey:73cf14b2-97bc-48e4-8e68-c7e616a23f07
 
{
    "mid":3124, //the mid of face-to-sticker 
    "input":{
        "mid": 3125,
        "input": {
            "image": "https://img5.aitools99.net/fmm1.png",
            "style": "3D",
            "prompt": "a person",
            "negative_prompt": "",
            "prompt_strength": 7,
            "denoising_strength": 0.65,
            "instant_id_strength": 0.5,
            "control_depth_strength": 1,
            "lora_scale":1
        }
    }
}

Response Parameters

Parameter NameTypeDescription
messageStringmessage
dataStringdata containing tid
codenumbercode
status_codeStringstatus

Response Example

    {
        "message": "post success.",
        "data": {
            "tid": "207be346-9ed9-49af-9fb3-a1726f14de93"
        },
        "code": 20000,
        "status_code": "success"
    }



Result API

API Domain

api.aitools99.net

HTTP Request

GET /api/v1/result?tid=${tid}

Headers

Parameter NameRequiredTypeDescription
apikeyYesStringUsed for authentication

Request Body (Body)

null

Request Parameters

Parameter NameRequiredTypeDescription
tidYesStringtid

Request Example

https://api.aitools99.net/api/v1/result?tid=207be346-9ed9-49af-9fb3-a1726f14de93

Response Parameters

Parameter NameTypeDescription
messageStringmessage
dataObjectReturned result data
codenumbercode
status_codeStringstatus

Response Example

    {
        "message": "get success.",
        "data": {
            "tid": "49b99411-df8c-4c0e-ad83-12d11fc901a1",
            "input": {
                "image": "https://img5.aitools99.net/fmm1.png",
                "style": "Toy",
                "prompt": "a person",
                "negative_prompt": "",
                "prompt_strength": 7,
                "denoising_strength": 0.65,
                "instant_id_strength": 0.5,
                "control_depth_strength": 1,
                "lora_scale": 1
            },
            "output": [
                "https://img.aitools99.net/eadd85b103f84a2fac32d554cc7a8f7d.png"
            ],
            "created_at": "2024-04-14T07:25:56.684Z",
            "started_at": "2024-04-14T07:25:56.784Z",
            "completed_at": "2024-04-14T07:26:15.419Z",
            "predict_time": 15,
            "total_time": 19
        },
        "code": 20000,
        "status_code": "success"
    }


others

Loras

Loras are all made by artificialguybr. If you like them you can make a donation to their Patreon or Ko-fi:

https://www.patreon.com/user?u=81570187
https://ko-fi.com/artificialguybr

Or follow them on Twitter: https://twitter.com/artificialguybr

notice

Non-commercial use only.

It uses the following weights which are non-commercial:

  • InsightFace antelopev2 (which is used by InstantID)

Follow the author of the workflow on Twitter https://twitter.com/fofrAI