Submit a run
curl --request POST \
--url https://api.apisale.ai/v1/run/{model_slug} \
--header 'Authorization: <api-key>'import requests
url = "https://api.apisale.ai/v1/run/{model_slug}"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://api.apisale.ai/v1/run/{model_slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.apisale.ai/v1/run/{model_slug}"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}API Reference
Submit a run
POST
/
v1
/
run
/
{model_slug}
Submit a run
curl --request POST \
--url https://api.apisale.ai/v1/run/{model_slug} \
--header 'Authorization: <api-key>'import requests
url = "https://api.apisale.ai/v1/run/{model_slug}"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://api.apisale.ai/v1/run/{model_slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.apisale.ai/v1/run/{model_slug}"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}⌘I