google/gemini-embedding-2Gemini Embedding 2 is Google's first multimodal embedding model. We currently support mapping text and images into a unified vector space for semantic search and retrieval-augmented generation (RAG). It supports...
Billing follows the provider's own reported cost. The unit prices here are for reference; a model marked "billed at actual usage" has no reliable pre-call price, so your usage page is the record of what you paid.
Embedding models are served on POST /v1/embeddings, with the same request and response shape as OpenAI's Embeddings API. input is a string or an array of strings, and each input gets one vector back.
curl https://macdecloud.com/v1/embeddings \
-H "Authorization: Bearer dcld-sk-..." \
-H "Content-Type: application/json" \
-d '{"model":"google/gemini-embedding-2","input":["first text","second text"]}'The official OpenAI SDK works as is; just point base_url at deCloud.
from openai import OpenAI
client = OpenAI(base_url="https://macdecloud.com/v1", api_key="dcld-sk-...")
resp = client.embeddings.create(model="google/gemini-embedding-2", input=["first text", "second text"])
print(len(resp.data), len(resp.data[0].embedding))