curl --no-buffer \
-X POST \
-H 'accept: text/event-stream' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"model": "gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "whats your name"
},
{
"role": "assistant",
"content": "bob"
},
{
"role": "user",
"content": "show me some interesting visuals about this data. but start with what q i asked first"
}
],
"files": [
"https://raw.githubusercontent.com/datasciencedojo/datasets/master/titanic.csv"
]
}' \
'https://www.chatcsv.co/api/v1/chat'
How may I help you today?
Endpoints
Create Chat Completion
Given a list of messages comprising a conversation, the model will return a response.
POST
/
api
/
v1
/
chat
curl --no-buffer \
-X POST \
-H 'accept: text/event-stream' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"model": "gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "whats your name"
},
{
"role": "assistant",
"content": "bob"
},
{
"role": "user",
"content": "show me some interesting visuals about this data. but start with what q i asked first"
}
],
"files": [
"https://raw.githubusercontent.com/datasciencedojo/datasets/master/titanic.csv"
]
}' \
'https://www.chatcsv.co/api/v1/chat'
How may I help you today?
Body
string
The model used to generate the response.
gpt-4o-mini. Default is gpt-4o-mini.array
required
array
A list of file URLs to ask questions. All URLs must be publicly accessible. We currently support
csv, json, xlsx, txt, html, xml, parquet, dta, sas, sav.If you want a file supporting, get in touch at sam@chatcsv.coHide Toggle object
Hide Toggle object
A list of file urls.Example:
["https://data.set/titanic.csv"]Response
Response will be sent as data-only server-sent events as they become available. Example:Hey, how can I help?
curl --no-buffer \
-X POST \
-H 'accept: text/event-stream' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"model": "gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "whats your name"
},
{
"role": "assistant",
"content": "bob"
},
{
"role": "user",
"content": "show me some interesting visuals about this data. but start with what q i asked first"
}
],
"files": [
"https://raw.githubusercontent.com/datasciencedojo/datasets/master/titanic.csv"
]
}' \
'https://www.chatcsv.co/api/v1/chat'
How may I help you today?