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
models
Save Model
Save a custom model configuration.
POST
/
models
JavaScript
Copy
Ask AI
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const modelResponse = await client.models.create({
config: { foo: 'bar' },
name: 'name',
provider: 'provider',
});
console.log(modelResponse.id);
Copy
Ask AI
{
"id": "<string>",
"name": "<string>",
"provider": "<string>",
"config": {},
"created_at": "<string>",
"updated_at": "<string>"
}
Headers
Body
application/json
Request to save a custom model.
Response
200
application/json
Successful Response
Response for a saved model.
Was this page helpful?
JavaScript
Copy
Ask AI
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const modelResponse = await client.models.create({
config: { foo: 'bar' },
name: 'name',
provider: 'provider',
});
console.log(modelResponse.id);
Copy
Ask AI
{
"id": "<string>",
"name": "<string>",
"provider": "<string>",
"config": {},
"created_at": "<string>",
"updated_at": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.