{
"model": "gemini-2.0-flash",
"contents": [
{
"role": "user",
"parts": [
{
"text": "string",
"inlineData": {
"mimeType": "string",
"data": "string"
},
"fileData": {
"mimeType": "string",
"fileUri": "string"
}
}
]
}
],
"generationConfig": {
"temperature": 1,
"topP": 0.95,
"topK": 40,
"maxOutputTokens": 8192,
"responseMimeType": "text/plain",
"responseSchema": {}
},
"systemInstruction": {
"parts": [
{
"text": "string"
}
]
},
"safetySettings": [
{
"category": "HARM_CATEGORY_HARASSMENT",
"threshold": "BLOCK_NONE"
}
]
}curl --location --request POST 'https://omnirouters.com/v1beta/models/:generateContent' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gemini-2.0-flash",
"contents": [
{
"role": "user",
"parts": [
{
"text": "string",
"inlineData": {
"mimeType": "string",
"data": "string"
},
"fileData": {
"mimeType": "string",
"fileUri": "string"
}
}
]
}
],
"generationConfig": {
"temperature": 1,
"topP": 0.95,
"topK": 40,
"maxOutputTokens": 8192,
"responseMimeType": "text/plain",
"responseSchema": {}
},
"systemInstruction": {
"parts": [
{
"text": "string"
}
]
},
"safetySettings": [
{
"category": "HARM_CATEGORY_HARASSMENT",
"threshold": "BLOCK_NONE"
}
]
}'{}