Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Compact Response
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.
Create Anthropic Message
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.
Create Chat Completion
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.
Create Embeddings
VERCEL_AI_GATEWAY_CREATE_EMBEDDINGSGenerate OpenAI-compatible vector embeddings through Vercel AI Gateway for text or token inputs, with optional dimensions and routing controls.
Edit Images
VERCEL_AI_GATEWAY_EDIT_IMAGESCreate edited images from up to 16 HTTPS or base64 data-URL source images and a text instruction. Uses the non-streaming JSON image-edit route only.
Evaluate State
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.
Generate Images
VERCEL_AI_GATEWAY_GENERATE_IMAGESGenerate one or more images from a text prompt through an image-only Vercel AI Gateway model. Returns a completed non-streaming JSON response.
Generate Response
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.
Generate Speech
VERCEL_AI_GATEWAY_GENERATE_SPEECHGenerate spoken audio from text through a Vercel AI Gateway speech model. Returns completed base64 audio in JSON; streaming output is not supported.
Rerank Object Documents
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.
Rerank Text Documents
VERCEL_AI_GATEWAY_RERANK_TEXT_DOCUMENTSRerank string documents through the current Cohere v2 compatibility endpoint. Unlike the v1 action, this action accepts text strings only and does not support object documents, rank_fields, or return_documents.
Transcribe Audio
VERCEL_AI_GATEWAY_TRANSCRIBE_AUDIOTranscribe base64-encoded recorded audio through a Vercel AI Gateway transcription model. Returns one completed JSON transcript, not a live stream.
Evaluate with TypeSafe API
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.