How to use dynamic prompts

Use this API endpoint Send image batch to computation by algorithms

Send app_args key in the request body:

{
    "app_args": {
        "{algorithm_application_tech_name}": {
            "prompts": [
                {
                    "redness": {
                        "face": {
                            "magnitude": 40
                        }
                    },
                    "age_shift": 10,
                    "name": "10 years"
                }, 
                {
                    "redness": {
                        "face": {
                            "magnitude": 40
                        }
                    },
                    "age_shift": 25,
                    "name": "25 years"
                }
            ]
        }
    }
}

Last updated

Was this helpful?