POST
/
model-config
/
custom-models
JavaScript
import Morphik from 'morphik';

const client = new Morphik({
  apiKey: 'My API Key',
});

const customModel = await client.modelConfig.customModels.create({
  config: { foo: 'bar' },
  model_name: 'model_name',
  name: 'name',
  provider: 'provider',
});

console.log(customModel.id);
{
  "id": "<string>",
  "name": "<string>",
  "provider": "<string>",
  "model_name": "<string>",
  "config": {}
}

Headers

authorization
string

Body

application/json

Request model for creating a custom model.

Response

200
application/json

Successful Response

Custom model definition.