Home / Servers / DigitalOcean API / inference_create_embedding

Create embedding

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

Create embedding Create vector embeddings for one or more text inputs. OpenAI-compatible request and response. Unknown fields in the request body are rejected. There is no streaming response for this endpoint. [POST /v1/embeddings]

Name on the gateway: digitalocean_api__inference_create_embedding · may change things.

Parameters

NameTypeDescription
model requiredstringModel id to use for embeddings. Must match a model your account can access.
input requiredstringA single string or 1–2048 strings; each string produces one row in data, in…
userstringOptional end-user identifier to help with abuse monitoring.
encoding_formatfloat | base64How embedding values are returned in each data[].embedding field.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "digitalocean_api__inference_create_embedding",
  "arguments": {
    "model": "…",
    "input": "…"
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create embedding tool with model set to ….

More from DigitalOcean API