POST
/
api
/
{projectId}
/
jobs
/
build-ondevice-model
Build on-device model
curl --request POST \
  --url https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/build-ondevice-model \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "engine": "tflite",
  "modelType": "int8"
}'
{
  "success": true,
  "error": "<string>",
  "id": 12873488112
}

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
integer
required

Project ID

Query Parameters

type
string
required

The name of the built target. You can find this by listing all deployment targets through listDeploymentTargetsForProject (via GET /v1/api/{projectId}/deployment/targets) and see the format type.

impulseId
integer

Impulse ID. If this is unset then the default impulse is used.

Body

application/json
engine
enum<string>
required
Available options:
tflite,
tflite-eon,
tflite-eon-ram-optimized,
tensorrt,
tensaiflow,
drp-ai,
tidl,
akida,
syntiant,
memryx,
neox,
ethos-linux,
st-aton,
ceva-npn
modelType
enum<string>
Available options:
int8,
float32,
akida,
requiresRetrain

Response

200 - application/json

OK

success
boolean
required

Whether the operation succeeded

id
integer
required

Job identifier. Status updates will include this identifier.

Example:

12873488112

error
string

Optional error description (set if 'success' was false)