Embeddings
| Method | Path | Use |
|---|---|---|
POST | /v1/embeddings | Text embeddings |
POST | /v1/embeddings/multimodal | Multimodal (image/text) embeddings |
bash
curl https://api.modelgo.ai/v1/embeddings \
-H "Authorization: Bearer $MODELGO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"<model>","input":"hello"}'input may be a single string or an array of strings. The response follows the OpenAI-compatible embeddings shape.
Multimodal embeddings
bash
curl https://api.modelgo.ai/v1/embeddings/multimodal \
-H "Authorization: Bearer $MODELGO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"<model>","input":[{"type":"text","text":"a cat"},{"type":"image_url","image_url":{"url":"https://example.com/cat.png"}}]}'For embedding inputs that mix text and image content. The input shape depends on the routed model's multimodal capabilities; whether it takes effect is determined by the upstream model.