Start a run
curl --request POST \
--url https://nemonist.com/api/v1/runs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"input": {
"setup": {
"kind": "lid-driven-box",
"lid_velocity": [
123
],
"size": [
1,
1,
0.1
],
"dimensions": 2
},
"fluid": {
"kinematic_viscosity": 123,
"density": 1
},
"turbulence": "auto",
"fidelity": "standard",
"outputs": {}
},
"reason": "<string>"
}
'import requests
url = "https://nemonist.com/api/v1/runs"
payload = {
"model": "<string>",
"input": {
"setup": {
"kind": "lid-driven-box",
"lid_velocity": [123],
"size": [1, 1, 0.1],
"dimensions": 2
},
"fluid": {
"kinematic_viscosity": 123,
"density": 1
},
"turbulence": "auto",
"fidelity": "standard",
"outputs": {}
},
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
input: {
setup: {kind: 'lid-driven-box', lid_velocity: [123], size: [1, 1, 0.1], dimensions: 2},
fluid: {kinematic_viscosity: 123, density: 1},
turbulence: 'auto',
fidelity: 'standard',
outputs: {}
},
reason: '<string>'
})
};
fetch('https://nemonist.com/api/v1/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}Model runs
Start a run
Starts a model on an input and returns at once with a polling_url. Inputs are checked against the model’s task schema before anything is charged; a refusal names the field.
POST
/
runs
Start a run
curl --request POST \
--url https://nemonist.com/api/v1/runs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"input": {
"setup": {
"kind": "lid-driven-box",
"lid_velocity": [
123
],
"size": [
1,
1,
0.1
],
"dimensions": 2
},
"fluid": {
"kinematic_viscosity": 123,
"density": 1
},
"turbulence": "auto",
"fidelity": "standard",
"outputs": {}
},
"reason": "<string>"
}
'import requests
url = "https://nemonist.com/api/v1/runs"
payload = {
"model": "<string>",
"input": {
"setup": {
"kind": "lid-driven-box",
"lid_velocity": [123],
"size": [1, 1, 0.1],
"dimensions": 2
},
"fluid": {
"kinematic_viscosity": 123,
"density": 1
},
"turbulence": "auto",
"fidelity": "standard",
"outputs": {}
},
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
input: {
setup: {kind: 'lid-driven-box', lid_velocity: [123], size: [1, 1, 0.1], dimensions: 2},
fluid: {kinematic_viscosity: 123, density: 1},
turbulence: 'auto',
fidelity: 'standard',
outputs: {}
},
reason: '<string>'
})
};
fetch('https://nemonist.com/api/v1/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}Authorizations
Body
application/json
Response
The run, pending.