This section has moved to Image inputs.
This section has moved to Audio inputs.
This section has moved to Document inputs.
- Image inputs: URLs, base64 data, and uploaded files.
- Document inputs: documents, scanned pages, and OCR.
- Audio inputs: audio as part of a response request.
Supported input types
| Type | Content type | Formats | Delivery |
|---|---|---|---|
| Text | input_text | Plain text | Inline |
| Image | input_image | JPEG, PNG, WebP, GIF, TIFF | URL, base64 data URI, or file_id |
| Audio | input_audio | WAV, MP3 | Base64 |
| Document | input_file | PDF, DOCX, XLSX, PPTX, RTF, TXT, CSV | URL, base64 data URI, or file_id |
| Video | input_file | MP4 | Base64 data URI or file_id |
Mixed input
Combine multiple content types in a single message. The model sees all inputs together and can reason across them.import { SDK } from '@meetkai/mka1';
const sdk = new SDK({ bearerAuth: 'Bearer <mka1-api-key>' });
const result = await sdk.llm.responses.create({
responsesCreateRequest: {
model: 'auto',
input: [
{
type: 'message',
role: 'user',
content: [
{ type: 'input_text', text: 'Compare the chart in the image with the data in the spreadsheet. Are the numbers consistent?' },
{
type: 'input_image',
image_url: 'https://example.com/chart.png',
},
{
type: 'input_file',
file_url: 'https://example.com/data.xlsx',
filename: 'data.xlsx',
},
],
},
],
},
});
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: '<mka1-api-key>',
baseURL: 'https://apigw.mka1.com/api/v1/llm/',
defaultHeaders: { 'X-On-Behalf-Of': '<end-user-id>' },
});
const response = await openai.responses.create({
model: 'auto',
input: [
{
type: 'message',
role: 'user',
content: [
{ type: 'input_text', text: 'Compare the chart in the image with the data in the spreadsheet. Are the numbers consistent?' },
{
type: 'input_image', detail: 'auto',
image_url: 'https://example.com/chart.png',
},
{
type: 'input_file',
file_url: 'https://example.com/data.xlsx',
filename: 'data.xlsx',
},
],
},
],
stream: false,
});
from meetkai_mka1 import SDK
sdk = SDK(bearer_auth="Bearer <mka1-api-key>")
result = sdk.llm.responses.create(
model="auto",
input=[{
"type": "message",
"role": "user",
"content": [
{"type": "input_text", "text": "Compare the chart in the image with the data in the spreadsheet. Are the numbers consistent?"},
{
"type": "input_image",
"image_url": "https://example.com/chart.png",
},
{
"type": "input_file",
"file_url": "https://example.com/data.xlsx",
"filename": "data.xlsx",
},
],
}],
)
using MeetKai.MKA1;
using MeetKai.MKA1.Types.Components;
using MeetKai.MKA1.Types.Requests;
var sdk = new SDK(bearerAuth: "Bearer <mka1-api-key>");
var res = await sdk.Llm.Responses.CreateAsync(new ResponsesCreateRequest()
{
Model = "auto",
Input = ResponsesCreateRequestInput.CreateArrayOfItem(new List<Item>
{
Item.CreateInputMessage(new InputMessage()
{
Role = InputMessageRole.User,
Content = InputMessageContent1.CreateArrayOfInputMessageContent(
new List<InputMessageContent>
{
InputMessageContent.CreateInputText(new InputText()
{
Text = "Compare the chart in the image with the data in the spreadsheet. Are the numbers consistent?",
}),
InputMessageContent.CreateInputImage(new InputImage()
{
ImageUrl = "https://example.com/chart.png",
}),
InputMessageContent.CreateInputFile(new InputFile()
{
FileUrl = "https://example.com/data.xlsx",
Filename = "data.xlsx",
}),
}),
}),
}),
});
mka1 llm responses create \
--body '{
"model": "auto",
"input": [
{
"type": "message",
"role": "user",
"content": [
{ "type": "input_text", "text": "Compare the chart in the image with the data in the spreadsheet. Are the numbers consistent?" },
{
"type": "input_image",
"image_url": "https://example.com/chart.png"
},
{
"type": "input_file",
"file_url": "https://example.com/data.xlsx",
"filename": "data.xlsx"
}
]
}
]
}'
curl https://apigw.mka1.com/api/v1/llm/responses \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <mka1-api-key>' \
--header 'X-On-Behalf-Of: <end-user-id>' \
--data '{
"model": "auto",
"input": [
{
"type": "message",
"role": "user",
"content": [
{ "type": "input_text", "text": "Compare the chart in the image with the data in the spreadsheet. Are the numbers consistent?" },
{
"type": "input_image",
"image_url": "https://example.com/chart.png"
},
{
"type": "input_file",
"file_url": "https://example.com/data.xlsx",
"filename": "data.xlsx"
}
]
}
]
}'