POST
/
endpoints
/
create_regular_endpoint
curl --request POST \
  --url https://api.getflex.ai/v1/endpoints/create_regular_endpoint \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "model_name": "<string>",
  "compute": "T4",
  "checkpoint_id": "<string>",
  "idle_timeout_seconds": 60
}'
{
  "endpoint_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
model_name
string
required
compute
enum<string>
required
Available options:
T4,
A100-40GB,
A100-80GB,
A10G,
A100-80GB,
L4
checkpoint_id
string
required
idle_timeout_seconds
integer
default:60
required

Response

200
application/json
Successful response
endpoint_id
string