DeerAPI Plus icon

DeerAPI Plus

AI 全能工具箱:对话、思维链、图片、视频、向量、提示词优化、虚拟试穿 | AI Toolkit: Chat, Thinking, Image, Video, Embeddings, Prompt, Virtual Try-On

Actions11

📐 向量 / Embeddings → 生成 / Generate

AI-generated

Summary

Generate vector embeddings for the input text using the selected embedding model.

Inputs

  • model (required) — Embedding model to use. Options are loaded from the API; default is text-embedding-3-small.
  • customModel (required) — Custom model ID used when model is set to '__custom'.
  • input (required) — The text to vectorize.
  • additionalOptions — Additional options for the request.

Output shape

An object containing the embedding result.

If 'simplify' is true (default), the output includes success, operation, model, embedding array, dimensions, and processing time. If 'simplify' is false, usage and raw response are also included.

Examples

Example 1: Simple embedding generation

model: text-embedding-3-small, input: 'Hello world', additionalOptions: {simplify:true}

Links

Discussion