Run a Model
Aicado AI offers more than 10 models. Each of these models has its own actions and data calls. Therefore, you can use the actions of the model you want at any time.
Last updated
Was this helpful?
Aicado AI offers more than 10 models. Each of these models has its own actions and data calls. Therefore, you can use the actions of the model you want at any time.
Last updated
Was this helpful?
Each model can be used with actions. And all the actions have 3 common properties. These are:
base_url
→ The base URL to send all API requests is https://run.aicado.ai/api/1.1/wf.
HTTPS is required for all API requests. This field already has a default value and you don’t have to change it.
prompt
→ Enter your prompt here.
response_web
→ Set a webhook to get notification while your run process status is updated. Enter your endpoint here. On the next step called “Get result” we dig down here.
To use a model, add the relevant action to an event as an action like the screenshot below:
When you add a new action, you will see different properties in addition to the above common properties. These are the settings of the model. And all of them has their own documentation. You can see them by clicking “show documentation” text. And, you are able to customize them as best fits for you.
IMPORTANT: Make sure that the URLs you define to the properties have the "https" protocol. Otherwise you will get an error. For example, when you use the expression "PictureUploader's Value", you must add the static text "https:" as a prefix to this expression
RECOMMENDATION: We recommend using the ":formatted as JSON-safe" operator for the values you will enter in the "prompt" and "negative_prompt" keys. Thus, you will avoid characters that will break the JSON structure.
Aicado AI provides results by the run_id
. So, when you run a model, you need to store the run_id
of the model to track its result. To do that, you should consider creating a new data field to store it, like the screenshot below:
To store it, after you run the action, you can add a new step that creates a new data entry to store the run_id
You can see the all responses of endpoints by clicking here.