---
title: "Invoke Embed"
method: POST
path: "/model/embed"
---

# Invoke Embed

`POST /model/embed`

Endpoint to invoke embed models. Takes model name, input text, and optional parameters. Please check /model/list_models for supported models and their model names.
Sample Input:
 {
     "model_name":"TITAN_TEXT_EMBED_V2",
     "input_text": "Hello World"
 }

## Request body

- InvokeEmbedModelRequest
  - `model_name` string, required
  - `input_text` string
  - `dimensions` integer
  - `normalize` boolean
  - `texts` string[]
  - `input_type` string
  - `truncate` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/aws-samples/apis/generative-ai-foundations-api.md) · [All operations](https://skmtc.dev/aws-samples/apis/generative-ai-foundations-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/generative-ai-foundations-api/revisions/6f2e7b761d12/schema)
