Getting Started
API Reference
- GETPing Health
- GETGet Available Models
- POSTRetrieve Chunks
- POSTRetrieve Chunks Grouped
- POSTRetrieve Documents
- POSTBatch Get Documents
- POSTBatch Get Chunks
- POSTQuery Completion
- GETGet Chat History
- GETGet Available Models For Selection
- POSTAgent Query
- GETGet Usage Stats
- GETGet Recent Usage
- POSTGenerate Local Uri
- POSTGenerate Cloud Uri
- DELDelete Cloud App
- GETList Chat Conversations
- PATCHUpdate Chat Title
Documents
Folders
Workflows
model-config
Logs
Graph
model-config
Create Custom Model
Create a new custom model.
POST
/
model-config
/
custom-models
JavaScript
Copy
Ask AI
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);
Copy
Ask AI
{
"id": "<string>",
"name": "<string>",
"provider": "<string>",
"model_name": "<string>",
"config": {}
}
Headers
Body
application/json
Request model for creating a custom model.
Response
200
application/json
Successful Response
Custom model definition.
Was this page helpful?
JavaScript
Copy
Ask AI
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);
Copy
Ask AI
{
"id": "<string>",
"name": "<string>",
"provider": "<string>",
"model_name": "<string>",
"config": {}
}
Assistant
Responses are generated using AI and may contain mistakes.