---
title: "Profile TFLite model"
method: POST
path: "/api/{projectId}/jobs/profile-tflite"
tags: ["Jobs"]
---

# Profile TFLite model

`POST /api/{projectId}/jobs/profile-tflite`

## Request

- Base URL: `https://studio.edgeimpulse.com/v1`
- URL: `https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/profile-tflite`
- Auth: one of:
  - API key in header `x-api-key`
  - API key in cookie `jwt`
  - API key in header `x-jwt-token`
  - OAuth 2
    - Authorization code: `/v1/oauth/authorize`
    - Client credentials
    - Implicit: `/v1/oauth/authorize`
    - Password
    - Token URL: `/v1/oauth/token`
- TypeScript: <https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/docs/api/:projectId/jobs/profile-tflite/post.ts> (a function with typed inputs; its response is checked against the schema)

Takes in a TFLite model and returns the latency, RAM and ROM used for this model. Updates are streamed over the websocket API (or can be retrieved through the /stdout endpoint). Use getProfileTfliteJobResult to get the results when the job is completed.

## Path parameters

- `projectId` integer, required

## Request body

- ProfileTfLiteRequest
  - `tfliteFileBase64` string, required: A base64 encoded TFLite file
  - `device` string, required: MCU used for calculating latency, query `latencyDevices` in `listProject` for a list of supported devices (and use the "mcu" property here).

## Response `200`

OK

- StartJobResponse
  - `success` boolean, required: Whether the operation succeeded
  - `error` string: Optional error description (set if 'success' was false)
  - `id` integer, required: Job identifier. Status updates will include this identifier.

## Changes

- **2025-09-08** `f2493b3fc5a1`: 1 warning
  - removed the request property `referenceModel`
- **2022-09-29** `fe4c4b7775b0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/changes/api/:projectId/jobs/profile-tflite/post.md)

---

[API](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api.md) - [All operations](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/llms.txt) - [OpenAPI document](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/revisions/e2a976d38427?raw)
