POST
/
tune.Studio
/
IntegrateExternalModel

Authorizations

X-Tune-Key
string
header
required

Tune API Keys are the preferred way to authenticate with the API. You can create an API Key from your Tune Studio Profile → 'Access Keys' (in sidebar)

Body

application/json
apiKey
string

The API key for the provider.

auth
object
contextLength
integer

The context length of the model.

endpoint
string

The endpoint of the model.

headers
object[]

The extra headers for the model api calls.

meta
object
modality
enum<string>
default:
MODALITY_UNSPECIFIED
  • MODALITY_TEXT: Text.
  • MODALITY_IMAGE: Image.
  • MODALITY_AUDIO: Audio.
  • MODALITY_VIDEO: Video.
  • MODALITY_IMAGE_TEXT: Image and Text.
Available options:
MODALITY_UNSPECIFIED,
MODALITY_TEXT,
MODALITY_IMAGE,
MODALITY_AUDIO,
MODALITY_VIDEO,
MODALITY_IMAGE_TEXT
model
string

The model to be integrated.

name
string

The name of the model.

provider
enum<string>
default:
NOT_SET
Available options:
NOT_SET,
OPEN_AI,
ANTHROPIC,
OPENROUTER,
MISTRAL,
CUSTOM,
GROQ,
OPEN_AI_EMBEDDING

Response

200 - application/json

The response is of type object.