openai_create_embedding
Create vector embeddings from text using an OpenAI embedding model for use in AI workflows.
Instructions
Create vector embeddings for text using an OpenAI embedding model.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"api_key": "<api_key>",
"input": "<input>"
},
"name": "openai_create_embedding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | String or array of strings to embed | |
| model | No | Embedding model (default: text-embedding-3-small) | |
| org_id | No | ||
| api_key | Yes | ||
| dimensions | No | Number of output dimensions (for text-embedding-3-* models) |