curl --location --request POST 'https://api.shubiaobiao.com/v1/chat/completions' \
--header "api-key: $MIMO_API_KEY" \
--header "Content-Type: application/json" \
--data-raw '{
"model": "mimo-v2-omni",
"messages": [
{
"role": "system",
"content": "You are MiMo, an AI assistant developed by Xiaomi. Today is date: Tuesday, December 16, 2025. Your knowledge cutoff date is December 2024."
},
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://example-files.cnbj1.mi-fds.com/example-files/image/image_example.png"
}
},
{
"type": "text",
"text": "please describe the content of the image"
}
]
}
],
"max_completion_tokens": 1024
}'import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get("MIMO_API_KEY"),
base_url="https://api.shubiaobiao.com/anthropic"
)
message = client.messages.create(
model="mimo-v2-omni",
max_tokens=1024,
system="You are MiMo, an AI assistant developed by Xiaomi. Today is date: Tuesday, December 16, 2025. Your knowledge cutoff date is December 2024.",
messages=[
{
"role": "user",
"content": [
{
"type": "image",
"source": {
"type": "url",
"url": "https://example-files.cnbj1.mi-fds.com/example-files/image/image_example.png"
}
},
{
"type": "text",
"text": "please describe the content of the image"
}
]
}
]
)
print(message.content)
--header "api-key: $MIMO_API_KEY" \
--header "Content-Type: application/json" \
--data-raw '{
"model": "mimo-v2-omni",
"max_tokens": 1024,
"system": "You are MiMo, an AI assistant developed by Xiaomi. Today is date: Tuesday, December 16, 2025. Your knowledge cutoff date is December 2024.",
"messages": [
{
"role": "user",
"content": [
{
"type": "image",
"source": {
"type": "base64",
"media_type": "{MIME_TYPE}"
"data": "$BASE64_IMAGE"
}
},
{
"type": "text",
"text": "please describe the content of the image"
}
]
}
]
}'
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get("MIMO_API_KEY"),
base_url="https://api.shubiaobiao.com/anthropic"
)
message = client.messages.create(
model="mimo-v2-omni",
max_tokens=1024,
system="You are MiMo, an AI assistant developed by Xiaomi. Today is date: Tuesday, December 16, 2025. Your knowledge cutoff date is December 2024.",
messages=[
{
"role": "user",
"content": [
{
"type": "image",
"source": {
"type": "base64",
"media_type": "{MIME_TYPE}"
"data": "$BASE64_IMAGE"
}
},
{
"type": "text",
"text": "please describe the content of the image"
}
]
}
]
)
print(message.content)
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ.get("MIMO_API_KEY"),
base_url="https://api.shubiaobiao.com/v1"
)
completion = client.chat.completions.create(
model="mimo-v2-omni",
messages=[
{
"role": "system",
"content": "You are MiMo, an AI assistant developed by Xiaomi. Today is date: Tuesday, December 16, 2025. Your knowledge cutoff date is December 2024."
},
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://example-files.cnbj1.mi-fds.com/example-files/image/image_example.png"
}
},
{
"type": "image_url",
"image_url": {
"url": "data:{MIME_TYPE};base64,$BASE64_IMAGE"
}
},
{
"type": "text",
"text": "please describe the connections and differences between these two pictures"
}
]
}
],
max_completion_tokens=1024
)
print(completion.model_dump_json())