API Reference
API Endpoints for LangDB
Last updated
Was this helpful?
API Endpoints for LangDB
Last updated
Was this helpful?
Register and configure a new LLM under your LangDB project
LangDB Admin Key
my-model
A custom completions model for text and image inputs
e2e9129b-6661-4eeb-80a2-0c86964974c9
55f4a12b-74c8-4294-8e4b-537f13fc3861
false
openai-compatible
completions
0.00001
0.00003
128000
["tools"]
["text","image"]
["text","image"]
openai
0
my-model-v1.2
Additional configuration parameters
{"top_k":{"default":0,"description":"Limits the token sampling to only the top K tokens.","min":0,"required":false,"step":1,"type":"int"},"top_p":{"default":1,"description":"Nucleus sampling alternative.","max":1,"min":0,"required":false,"step":0.05,"type":"float"}}
Created
LangDB project ID
ID of the model to use. This can be either a specific model ID or a virtual model identifier.
gpt-4o
Sampling temperature.
0.8
OK
The ID of the thread to retrieve messages from
LangDB project ID
A list of messages for the given thread
The ID of the thread for which to retrieve cost information
LangDB project ID
The total cost and token usage for the specified thread
Creates an embedding vector representing the input text or token arrays.
ID of the model to use for generating embeddings.
text-embedding-ada-002
The text to embed.
Array of text strings to embed.
The format to return the embeddings in.
float
Possible values: The number of dimensions the resulting embeddings should have.
1536
Successful response with embeddings
LangDB project ID
Start time in microseconds.
1693062345678
End time in microseconds.
1693082345678
Successful response
LangDB project ID
1693062345678
1693082345678
["provider"]
Successful response