Supported models
In the model catalog, filter chat models by image recognition to see which ones can analyze images:
One image
Send a chat request with one image:curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-6.1-sol",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Extract the text from the image and return it as a list."
},
{
"type": "image_url",
"image_url": {
"url": "https://static.geekai.co/storage/2025/03/08/1741444660440.jpg"
}
}
]
}
]
}'
from openai import OpenAI
client = OpenAI(api_key="$GEEKAI_API_KEY", base_url="https://geekai.co/api/v1")
response = client.chat.completions.create(
model="gpt-6.1-sol",
messages=[{
"role": "user",
"content": [
{"type": "text", "text": "What is in this image?"},
{
"type": "image_url",
"image_url": {
"url": "https://static.geekai.co/storage/2025/03/08/1741444660440.jpg",
},
},
],
}],
)
print(response.choices[0].message.content)
import OpenAI from "openai";
const openai = new OpenAI({
baseURL: 'https://geekai.co/api/v1',
apiKey: '$GEEKAI_API_KEY'
});
const response = await openai.chat.completions.create({
model: "gpt-6.1-sol",
messages: [{
role: "user",
content: [
{ type: "text", text: "What is in this image?" },
{
type: "image_url",
image_url: {
url: "https://static.geekai.co/storage/2025/03/08/1741444660440.jpg",
},
},
],
}],
});
console.log(response.choices[0].message.content);
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
requestBody := map[string]interface{}{
"model": "gpt-6.1-sol",
"messages": []interface{}{
map[string]interface{}{
"role": "user",
"content": []interface{}{
map[string]interface{}{
"type": "text",
"text": "What does this image contain?",
},
map[string]interface{}{
"type": "image_url",
"image_url": map[string]interface{}{
"url": "https://static.geekai.co/logo/geekai-logo-main-tr.png",
},
},
},
},
}
}
jsonData, err := json.Marshal(requestBody)
if err != nil {
panic(err)
}
client := &http.Client{}
req, err := http.NewRequest("POST", "https://geekai.co/api/v1/chat/completions", bytes.NewBuffer(jsonData))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer $GEEKAI_API_KEY")
req.Header.Set("Content-Type", "application/json")
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
panic(err)
}
fmt.Println(string(body))
}
Multiple images
To analyze multiple images, add oneimage_url object per image to the content list:
curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-6.1-sol",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Find the differences between the two images."
},
{
"type": "image_url",
"image_url": {
"url": "https://static.geekai.co/storage/2025/05/14/image1.jpg"
}
},
{
"type": "image_url",
"image_url": {
"url": "https://static.geekai.co/storage/2025/05/14/image2.jpg"
}
}
]
}
]
}'
from openai import OpenAI
client = OpenAI(api_key="$GEEKAI_API_KEY", base_url="https://geekai.co/api/v1")
response = client.chat.completions.create(
model="gpt-6.1-sol",
messages=[{
"role": "user",
"content": [
{"type": "text", "text": "Find the differences between the two images."},
{
"type": "image_url",
"image_url": {
"url": "https://static.geekai.co/storage/2025/05/14/image1.jpg"
}
},
{
"type": "image_url",
"image_url": {
"url": "https://static.geekai.co/storage/2025/05/14/image2.jpg"
}
}
]
}]
)
print(response.choices[0].message.content)
import OpenAI from "openai";
const openai = new OpenAI({
baseURL: 'https://geekai.co/api/v1',
apiKey: '$GEEKAI_API_KEY'
});
const response = await openai.chat.completions.create({
model: "gpt-6.1-sol",
messages: [{
role: "user",
content: [
{ type: "text", text: "Find the differences between the two images." },
{
type: "image_url",
image_url: {
url: "https://static.geekai.co/storage/2025/05/14/image1.jpg"
}
},
{
type: "image_url",
image_url: {
url: "https://static.geekai.co/storage/2025/05/14/image2.jpg"
}
}
]
}]
});
console.log(response.choices[0].message.content);
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
requestBody := map[string]interface{}{
"model": "gpt-6.1-sol",
"messages": []interface{}{
map[string]interface{}{
"role": "user",
"content": []interface{}{
map[string]interface{}{
"type": "text",
"text": "Find the differences between the two images.",
},
map[string]interface{}{
"type": "image_url",
"image_url": map[string]interface{}{
"url": "https://static.geekai.co/storage/2025/05/14/image1.jpg",
},
},
map[string]interface{}{
"type": "image_url",
"image_url": map[string]interface{}{
"url": "https://static.geekai.co/storage/2025/05/14/image2.jpg",
},
},
},
},
},
}
jsonData, err := json.Marshal(requestBody)
if err != nil {
panic(err)
}
client := &http.Client{}
req, err := http.NewRequest("POST", "https://geekai.co/api/v1/chat/completions", bytes.NewBuffer(jsonData))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer $GEEKAI_API_KEY")
req.Header.Set("Content-Type", "application/json")
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
panic(err)
}
fmt.Println(string(body))
}
