REST API Service
Create app
Create a new app using App ID
POST
/
create
By default we will use the opensource gpt4all model to get started. You can also specify your own config by uploading a config YAML file.
For example, create a config.yaml
file (adjust according to your requirements):
To learn more about custom configurations, check out the custom configurations docs. To explore more examples of config yamls for embedchain, visit embedchain/configs.
Now, you can upload this config file in the request body.
For example,
Request
Note: To use custom models, an API key might be required. Refer to the table below to determine the necessary API key for your provider.
Keys | Providers |
---|---|
OPENAI_API_KEY | OpenAI, Azure OpenAI, Jina etc |
OPENAI_API_TYPE | Azure OpenAI |
OPENAI_API_BASE | Azure OpenAI |
OPENAI_API_VERSION | Azure OpenAI |
COHERE_API_KEY | Cohere |
TOGETHER_API_KEY | Together |
ANTHROPIC_API_KEY | Anthropic |
JINACHAT_API_KEY | Jina |
HUGGINGFACE_ACCESS_TOKEN | Huggingface |
REPLICATE_API_TOKEN | LLAMA2 |
To add env variables, you can simply run the docker command with the -e
flag.
For example,
Query Parameters
app_id
string
requiredBody
multipart/form-data
config
file
Response
200 - application/json
response
string
requiredWas this page helpful?