Multimodal
Chat + Text
API Reference
- Overview
- Endpoints
- GETModels
- GETTasks
- GETClusters
Text as Input
Image as Input
Multimodal
Chat + Text
Generate text using the Phi-3-mini-4k-instruct model.
POST
/
models
/
v2
/
microsoft
/
Phi-3-mini-4k-instruct
curl --request POST \
--url https://api.bytez.com/models/v2/microsoft/Phi-3-mini-4k-instruct \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"role": "system",
"content": "You are a friendly chatbot"
},
{
"role": "user",
"content": "What is the capital of England?"
}
],
"model_params": {
"max_length": 100
}
}'
{
"output": [
"<string>"
]
}
Body
application/json
Response
200 - application/json
Successful response
curl --request POST \
--url https://api.bytez.com/models/v2/microsoft/Phi-3-mini-4k-instruct \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"role": "system",
"content": "You are a friendly chatbot"
},
{
"role": "user",
"content": "What is the capital of England?"
}
],
"model_params": {
"max_length": 100
}
}'
{
"output": [
"<string>"
]
}