POST
/
models
/
custom
Register Custom Model
import requests

url = "https://api.opper.ai/v2/models/custom"

payload = {
    "name": "<string>",
    "identifier": "<string>"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "identifier": "<string>",
  "extra": {}
}

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

The name of the custom language model

Required string length: 1 - 255
identifier
string
required

The identifier of the custom language model

Required string length: 1 - 255
extra
object

Extra metadata about the custom language model

api_key
string | null

The API key of the custom language model

Response

Successful Response

id
string<uuid>
required

The ID of the custom language model

name
string
required

The name of the custom language model

identifier
string
required

The identifier of the custom language model

extra
object

Extra metadata about the custom language model