Skip to main content
PUT
/
models
/
{modelName}
Update model endpoint
curl --request PUT \
  --url https://api.blaxel.ai/v0/models/{modelName} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "metadata": {
    "name": "my-resource",
    "displayName": "My Resource",
    "labels": {}
  },
  "spec": {
    "enabled": true,
    "flavors": [
      {
        "name": "t4",
        "type": "cpu"
      }
    ],
    "integrationConnections": [
      "<string>"
    ],
    "policies": [
      "<string>"
    ],
    "runtime": {
      "endpointName": "<string>",
      "model": "gpt-4.1",
      "organization": "org-abc123",
      "type": "openai"
    },
    "sandbox": false
  }
}
'
{
  "metadata": {
    "name": "my-resource",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "createdBy": "<string>",
    "updatedBy": "<string>",
    "displayName": "My Resource",
    "labels": {},
    "plan": "<string>",
    "url": "<string>",
    "workspace": "<string>"
  },
  "spec": {
    "enabled": true,
    "flavors": [
      {
        "name": "t4",
        "type": "cpu"
      }
    ],
    "integrationConnections": [
      "<string>"
    ],
    "policies": [
      "<string>"
    ],
    "runtime": {
      "endpointName": "<string>",
      "model": "gpt-4.1",
      "organization": "org-abc123",
      "type": "openai"
    },
    "sandbox": false
  },
  "events": [
    {
      "canaryRevision": "<string>",
      "message": "Deployment successful",
      "revision": "rev-abc123",
      "status": "DEPLOYED",
      "time": "2025-01-15T10:30:00Z",
      "type": "deployment"
    }
  ],
  "status": "DELETING"
}

Authorizations

Authorization
string
header
required

OAuth2 authentication with JWT tokens

Path Parameters

modelName
string
required

Unique name identifier of the model endpoint

Body

application/json

Gateway endpoint to external LLM provider APIs (OpenAI, Anthropic, etc.) with unified access control, credentials management, and usage tracking.

metadata
object
required

Common metadata fields shared by all Blaxel resources including name, labels, timestamps, and ownership information

spec
object
required

Configuration for a model gateway endpoint including provider type, credentials, and access policies

Response

successful operation

Gateway endpoint to external LLM provider APIs (OpenAI, Anthropic, etc.) with unified access control, credentials management, and usage tracking.

metadata
object
required

Common metadata fields shared by all Blaxel resources including name, labels, timestamps, and ownership information

spec
object
required

Configuration for a model gateway endpoint including provider type, credentials, and access policies

events
object[]

Events happening on a resource deployed on Blaxel

status
enum<string>

Deployment status of a resource deployed on Blaxel

Available options:
DELETING,
TERMINATED,
FAILED,
DEACTIVATED,
DEACTIVATING,
UPLOADING,
BUILDING,
DEPLOYING,
DEPLOYED