- Category: ai models
- Auth: API_KEY
- Composio-managed OAuth available? N/A
- Tools: 22
- Triggers: 0
- Slug:
VERCEL_AI_GATEWAY - Version: 00000000_00
Tools
Compact Response
Compact Response
Slug:
VERCEL_AI_GATEWAY_COMPACT_RESPONSECompact a long OpenAI Responses conversation into replayable context through Vercel AI Gateway. This endpoint only supports models routed to OpenAI and does not fail over to other providers; model compatibility is checked by the provider rather than by this action.Input Parameters
Conversation to compact as text or OpenAI Responses input items. It must include at least one user message.
OpenAI model ID in provider/model form. This endpoint only supports models routed to OpenAI.
OpenAI service tier requested for the compaction operation.
Output
Count Message Tokens
Count Message Tokens
Slug:
VERCEL_AI_GATEWAY_COUNT_MESSAGE_TOKENSEstimate input tokens for Anthropic-format messages, system content, and tools before sending a model request through Vercel AI Gateway.Input Parameters
Optional Anthropic tool definitions included in the count, preserving their provider-defined input schemas.
Optional Anthropic system text or provider-defined system content blocks included in the count.
Anthropic-format messages whose input tokens should be counted. Message content may contain provider-defined text, image, tool-use, or tool-result blocks.
Optional Anthropic extended-thinking configuration included when calculating the request’s input-token usage.
Optional Anthropic tool-selection configuration, such as auto, any, or a named tool, included in the token count.
Optional top-level Anthropic prompt-cache configuration, including automatic cache behavior and provider-supported expiration settings.
Optional Anthropic output configuration, including provider-defined structured-output format settings that affect the token count.
Output
Create Anthropic Message
Create Anthropic Message
Slug:
VERCEL_AI_GATEWAY_CREATE_ANTHROPIC_MESSAGECreate one non-streaming Anthropic Messages-compatible result through Vercel AI Gateway, with multimodal content, tools, extended thinking, and routing controls.Input Parameters
Anthropic-format messages. Content may be text or provider-supported text, image, document, tool-use, or tool-result blocks.
Output
Create Chat Completion
Create Chat Completion
Slug:
VERCEL_AI_GATEWAY_CREATE_CHAT_COMPLETIONCreate one non-streaming OpenAI Chat Completions-compatible result through Vercel AI Gateway, with multimodal messages, tools, structured output, fallback models, and routing controls.Input Parameters
OpenAI-format conversation messages. Content may be text or an array of provider-supported text, image, file, audio, or tool-result parts.
Output
Create Embeddings
Create Embeddings
Slug:
VERCEL_AI_GATEWAY_CREATE_EMBEDDINGSGenerate OpenAI-compatible vector embeddings through Vercel AI Gateway for text or token inputs, with optional dimensions and routing controls.Input Parameters
Text, a batch of texts, one token array, or a batch of token arrays to embed, as accepted by the selected OpenAI-compatible model.
Output
Edit Images
Edit Images
Evaluate State
Evaluate State
Slug:
VERCEL_AI_GATEWAY_EVALUATE_STATEEvaluate one shared state against one or more typed choice, score, or boolean questions using an AI Gateway evaluation model. Returns structured answers, token usage, and gateway metadata rather than generated prose.Input Parameters
Nonempty map of question IDs to typed choice, score, or boolean questions. Answer keys match these IDs.
Optional AI Gateway routing and provider controls, including zero data retention or provider restrictions.
Output
Generate Images
Generate Images
Generate Response
Generate Response
Slug:
VERCEL_AI_GATEWAY_GENERATE_RESPONSEGenerate one non-streaming OpenAI Responses-compatible result through AI Gateway, with optional instructions, tools, structured output, reasoning, and routing controls. Inspect status because a successful HTTP response may still be incomplete.Input Parameters
User input text or OpenAI Responses input items, including prior messages or multimodal content.
How the model may choose from supplied tools: none disables tool calls, auto lets the model decide, required forces a tool call, and an OpenAI Responses tool-choice object selects a specific tool.
Output
Generate Speech
Generate Speech
Get Credit Balance
Get Credit Balance
Get Generation
Get Generation
Get Model
Get Model
Get Model Endpoints
Get Model Endpoints
Get Spend Report
Get Spend Report
Slug:
VERCEL_AI_GATEWAY_GET_SPEND_REPORTQuery aggregated Vercel AI Gateway spend and token usage. This endpoint requires a Pro or Enterprise plan, and each query costs $5 per 1,000 queries.Input Parameters
string ("day" | "user" | "model" | "tag" | "provider" | "credential_type" | "zero_data_retention" | "api_key_name")
Aggregation dimension. Defaults to day when omitted.
Output
List Model Catalog
List Model Catalog
List TypeSafe Models
List TypeSafe Models
Rerank Object Documents
Rerank Object Documents
Slug:
VERCEL_AI_GATEWAY_RERANK_OBJECT_DOCUMENTSRank structured object documents by relevance through the Cohere v1 route, using selected rank fields and optionally returning each source document.Input Parameters
Structured documents to rank; each result index refers to this array. Use rank_fields to identify the text-bearing fields.
Structured document fields to rank, in priority order. When omitted, the provider defaults to the text field.
Set true to include each original structured document in the results. When omitted, the provider default is false.
Output
Rerank Text Documents
Rerank Text Documents
Search Models
Search Models
Transcribe Audio
Transcribe Audio
Evaluate with TypeSafe API
Evaluate with TypeSafe API
Slug:
VERCEL_AI_GATEWAY_TYPESAFE_EVALUATEEvaluate one shared state through AI Gateway’s TypeSafe-compatible System One API. Use this compatibility action for TypeSafe noul, choice, and score request shapes; use Evaluate State for new integrations.Input Parameters
Nonempty map of question IDs to TypeSafe noul, choice, or score questions. Answer keys match these IDs.