> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geekai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Multimodal Embeddings

### Example requests

Only `doubao-embedding-vision`, `multimodal-embedding-v1`, `embed-english-v3.0`, and `embed-multilingual-v3.0` currently support embedding text and images.

```bash curl theme={null}
curl --location 'https://geekai.co/api/v1/embeddings' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}' \
--data '{
    "input": [
        {
            "type": "text",
            "text": "The sky is blue and the sea is deep."
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://ark-project.tos-cn-beijing.volces.com/images/view.jpeg"
            }
        }
    ],
    "model": "doubao-embedding-vision"
}'
```

> Images can be supplied by URL or as Base64 data. Cohere models can embed text or images separately, but cannot mix the two.

In addition to images, `multimodal-embedding-v1` supports video embeddings:

```bash theme={null}
curl --location 'https://geekai.co/api/v1/embeddings' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}' \
--data '{
    "input": [
        {
            "type": "text",
            "text": "Sipping coffee in front of the fireplace"
        },
        {
            "type": "video_url",
            "video_url": {
                "url": "https://static.geekai.co/video/new_video.mp4"
            }
        }
    ],
    "model": "multimodal-embedding-v1"
}'
```

### Supported formats

`doubao-embedding-vision` supports the following image formats:

| Image format | File extension | Content type |
| - | - | - |
| JPEG | .jpg, .jpeg | image/jpeg |
| PNG | .apng, .png | image/png |
| GIF | .gif | image/gif |
| WEBP | .webp | image/webp |
| BMP | .bmp | image/bmp |
| TIFF | .tiff, .tif | image/tiff |
| ICO | .ico | image/x-icon |
| DIB | .dib | image/bmp |
| ICNS | .icns | image/icns |
| SGI | .sgi | image/sgi |
| JPEG2000 | .j2c, .j2k, .jp2, .jpc, .jpf, .jpx | image/jp2 |

`multimodal-embedding-v1` supports JPG, PNG, and BMP images, and MP4, MPEG, MPG, WEBM, AVI, FLV, MKV, and MOV videos. Check the format of your multimodal input before submitting it.

Cohere's `embed-english-v3.0` and `embed-multilingual-v3.0` embedding models support only JPG and PNG images.

### Size limits

Images for `doubao-embedding-vision` must meet both conditions below, or the model returns an error:

* Width and height must each be between 10 and 6,000 px, inclusive.
* The aspect ratio (width/height) must be between 1/100 and 100, inclusive.

For `doubao-embedding-vision`, each image must be no larger than 10 MB. For `multimodal-embedding-v1`, the limits are 3 MB per image and 10 MB per video.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.