AI Gateway Discover Model Then Embed
A 2-step recipe with Vercel. We can help you get access.
Recipe · 2 steps
AI Gateway Discover Model Then Embed
with Vercel
Verify an embedding model is in the catalog, then create an embedding.
- List all models reachable through the gateway to confirm availability.
- Create an embedding for the supplied input using the confirmed model.
What you'll need to have ready
- apiKey: Vercel AI Gateway API key (AI_GATEWAY_API_KEY) used as a Bearer token.
- model: Embedding model id (e.g. openai/text-embedding-3-small).
- input: The text to embed.
For your developer
Arazzo workflow vercel:discoverModelThenEmbed, 2 operations: listModels → createEmbedding. Specs on APIs.io.