Skip to main content
POST
Add a custom endpoint

Authorizations

Authorization
string
header
required

JWT authentication token

Body

application/json

A malformed field (name, key or URL length, a manual model ID that does not match the model ID pattern, more than 50 manual IDs) is a 400 with the code invalid_request.

api_key
string
required

Bearer API key (encrypted at rest, never returned)

Maximum string length: 4096
base_url
string
required

Public https base URL on port 443, as the provider documents it (Neo appends nothing but /models)

Maximum string length: 2048
display_name
string
required

Name for the endpoint (1 to 80 characters)

Maximum string length: 80
manual_models
string[]

Model IDs to offer in addition to the listed ones (at most 50 after removing duplicates)

Response

Custom endpoint created

A custom OpenAI-compatible endpoint. The API key is never returned.

base_url
string
required

Normalised https base URL, as the provider documents it (usually ending in /v1)

created_at
string<date-time>
required
display_name
string
required

The user's name for the endpoint, unique per account ignoring case

id
string<uuid>
required
is_validated
boolean
required

Whether the key was accepted by the endpoint

last_discovery_error
string | null
required

Stable code of the last model-list failure (for example endpoint_not_found); null after a successful listing

manual_models
string[]
required

Model IDs typed by the user

updated_at
string<date-time>
required