✨ LLM Spark
🔗 API documentation

API Documentation

Dive into the detailed exploration of LLM Spark API documentation.

Setup API Keys

Visit https://llmspark.yourgpt.ai (opens in a new tab) and generate your API keys

  • After generating your API key, Add your API key as api-key: headers

Search API

Search API Documentation

curl --location 'https://api-llmspark.yourgpt.ai/v1/search' \
--header 'api-key: sk-62a56e6f0c376ff2406ee26e3f86cc1f2849dcdcf4d6be591adb7ab' \
--header 'Content-Type: application/json' \
--data '{
"limit":2,
"query":"This is working"
}'

Generate API with Stream

Generate API Documentation

curl --location 'https://api-llmspark.yourgpt.ai/v1/generate' \
--header 'api-key: sk-62a56e6f0c376ff2406ee26e3f86cc1f2849dcdcf4d6be591adb7ab' \
--header 'Content-Type: application/json' \
--data '{
"deployment_uid":"d5b67a9c-2768-4b06-b0b1-5eca4ab25a0e",
"variables":{
"query_str":"how are you doing buddy, you are great",
"previous_chat":"hey there!!"
},
"stream":true
}'

Generate API without Stream

Generate API Documentation without Stream

curl --location 'https://api-llmspark.yourgpt.ai/v1/generate' \
--header 'api-key: sk-62a56e6f0c376ff2406ee26e3f86cc1f2849dcdcf4d6be591adb7ab' \
--header 'Content-Type: application/json' \
--data '{
"deployment_uid":"d5b67a9c-2768-4b06-b0b1-5eca4ab25a0e",
"variables":{
"query_str":"how are you doing buddy, you are great",
"previous_chat":"hey there!!"
}
}'