NAiOS IconNAiOS Logo
Contacto
Contacto

Suscríbete a la newsletter

Novedades de IA y de producto. Sin spam, puedes darte de baja cuando quieras.

Consejo: usa tu email de empresa para una respuesta más relevante.

Comprobando seguridad…
NAiOS Icon
NAiOS Logo

El primer integrador de IA para empresas reales. Conecta todas tus herramientas de IA de forma segura y escalable.

+34 695482054info@naios.netinfo@netretina.ai
LinkedInNAiOS AcademyNetretina.AiContact UsX

Plataforma

  • Características
  • Integraciones
  • Planes y precios

Empresa

  • Sobre nosotros
  • Blog
  • Contacto

Compliance

  • Reglamento Europeo de IA
  • Transparencia de IA

Legal

  • Aviso legal
  • Política de privacidad
  • Términos y condiciones
  • Política de cookies
  • Devoluciones

© 2026 NAiOS. Todos los derechos reservados.

Un producto de Netretina.Ai

    Volver al catálogo

    Vercel AI Gateway

    vercel_ai_gateway

    Access Vercel AI Gateway's model discovery, inference, generation, and usage APIs through a unified AI model gateway.

    AI ModelsDeveloper ToolsWeb del proveedor
    Acciones
    22
    Triggers
    0
    Autenticación
    —
    OAuth gestionado
    No
    Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

    Acciones disponibles (22)

    Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

    Compact ResponseVERCEL_AI_GATEWAY_COMPACT_RESPONSEAcción

    Compact 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.

    Parámetros de entrada

    • inputanyObligatorio

      Conversation to compact as text or OpenAI Responses input items. It must include at least one user message.

    • modelstringObligatorio

      OpenAI model ID in provider/model form. This endpoint only supports models routed to OpenAI.

    • instructionsstring

      Optional system-level instructions included in the compacted context.

    • service_tierstringenum

      OpenAI service tier requested for the compaction operation.

      autodefaultflexpriority
    • prompt_cache_keystring

      Stable key used to identify related cached prompts.

    • previous_response_idstring

      Previous OpenAI response whose conversation state should be compacted.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Count Message TokensVERCEL_AI_GATEWAY_COUNT_MESSAGE_TOKENSAcción

    Estimate input tokens for Anthropic-format messages, system content, and tools before sending a model request through Vercel AI Gateway.

    Parámetros de entrada

    • modelstringObligatorio

      Gateway model ID to use for tokenization.

    • toolsobject[]

      Optional Anthropic tool definitions included in the count, preserving their provider-defined input schemas.

    • systemany

      Optional Anthropic system text or provider-defined system content blocks included in the count.

    • messagesobject[]Obligatorio

      Anthropic-format messages whose input tokens should be counted. Message content may contain provider-defined text, image, tool-use, or tool-result blocks.

    • thinkingobject

      Optional Anthropic extended-thinking configuration included when calculating the request's input-token usage.

    • tool_choiceobject

      Optional Anthropic tool-selection configuration, such as auto, any, or a named tool, included in the token count.

    • cache_controlobject

      Optional top-level Anthropic prompt-cache configuration, including automatic cache behavior and provider-supported expiration settings.

    • output_configobject

      Optional Anthropic output configuration, including provider-defined structured-output format settings that affect the token count.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Create Anthropic MessageVERCEL_AI_GATEWAY_CREATE_ANTHROPIC_MESSAGEAcción

    Create one non-streaming Anthropic Messages-compatible result through Vercel AI Gateway, with multimodal content, tools, extended thinking, and routing controls.

    Parámetros de entrada

    • modelstringObligatorio

      Gateway model ID in provider/model form.

    • toolsobject[]

      Anthropic tool definitions, including built-in tools such as web search.

    • top_kinteger

      Optional number of highest-probability tokens considered at each step.

    • top_pnumber

      Optional nucleus-sampling probability between 0 and 1.

    • systemany

      Optional Anthropic system text or provider-defined system content blocks.

    • messagesobject[]Obligatorio

      Anthropic-format messages. Content may be text or provider-supported text, image, document, tool-use, or tool-result blocks.

    • metadataobject

      Anthropic request metadata, such as an opaque user identifier.

    • thinkingobject

      Anthropic extended-thinking configuration supported by the selected model.

    • max_tokensintegerObligatorio

      Maximum number of tokens to generate before stopping.

    • temperaturenumber

      Sampling temperature between 0 and 1.

    • tool_choiceobject

      Anthropic tool-selection controls, such as auto, any, or a named tool.

    • service_tierstring

      Anthropic service tier requested for this message, when supported.

    • stop_sequencesstring[]

      Custom text sequences that stop generation.

    • provider_optionsobject

      Gateway routing and provider-specific options.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Create Chat CompletionVERCEL_AI_GATEWAY_CREATE_CHAT_COMPLETIONAcción

    Create one non-streaming OpenAI Chat Completions-compatible result through Vercel AI Gateway, with multimodal messages, tools, structured output, fallback models, and routing controls.

    Parámetros de entrada

    • stopany

      One or more sequences at which generation should stop.

    • modelstringObligatorio

      Gateway model ID in provider/model form.

    • toolsobject[]

      OpenAI-format tool definitions available to the model.

    • top_pnumber

      Optional nucleus-sampling probability between 0 and 1.

    • modelsstring[]

      Fallback Gateway model IDs to try in order if the primary model fails.

    • messagesobject[]Obligatorio

      OpenAI-format conversation messages. Content may be text or an array of provider-supported text, image, file, audio, or tool-result parts.

    • max_tokensinteger

      Maximum number of tokens to generate.

    • temperaturenumber

      Sampling temperature between 0 and 2.

    • tool_choiceany

      Whether and how the model may select a supplied tool.

    • response_formatobject

      OpenAI response format, including text, JSON, or JSON Schema output.

    • presence_penaltynumber

      Penalty for tokens that already appear in the generated text.

    • provider_optionsobject

      Gateway routing and provider-specific options.

    • frequency_penaltynumber

      Penalty for tokens based on their existing frequency.

    • safety_identifierstring

      Opaque end-user identifier used by AI Gateway safety controls.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Create EmbeddingsVERCEL_AI_GATEWAY_CREATE_EMBEDDINGSAcción

    Generate OpenAI-compatible vector embeddings through Vercel AI Gateway for text or token inputs, with optional dimensions and routing controls.

    Parámetros de entrada

    • userstring

      Optional opaque end-user identifier for the embedding request.

    • inputanyObligatorio

      Text, a batch of texts, one token array, or a batch of token arrays to embed, as accepted by the selected OpenAI-compatible model.

    • modelstringObligatorio

      Gateway embedding model ID in provider/model form.

    • dimensionsinteger

      Requested embedding dimensions; AI Gateway maps this across providers.

    • encoding_formatstringenum

      Whether embeddings are returned as float arrays or base64 strings.

      floatbase64
    • provider_optionsobject

      Gateway routing and provider-specific options.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Edit ImagesVERCEL_AI_GATEWAY_EDIT_IMAGESAcción

    Create 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.

    Parámetros de entrada

    • sizestring

      Requested output dimensions when supported, such as 1024x1024.

    • userstring

      Stable end-user identifier for provider abuse monitoring.

    • modelstringObligatorio

      Gateway image model ID that supports image editing.

    • imagesobject[]Obligatorio

      Source images referenced only by HTTPS URL or base64 data URL.

    • promptstringObligatorio

      Instructions describing how to edit the source images.

    • qualitystring

      Provider-supported output quality, such as high, medium, or low.

    • backgroundstringenum

      Background behavior for models that support this option.

      autotransparentopaque
    • moderationstring

      Provider-supported image moderation setting.

    • image_countinteger

      Number of edited images to generate, subject to the model's limit.

    • output_formatstringenum

      Requested output image encoding.

      pngjpegwebp
    • input_fidelitystring

      Provider-supported control for preserving source-image details.

    • provider_optionsobject

      Gateway routing and provider-specific image options.

    • output_compressioninteger

      Compression level from 0 to 100 for JPEG or WebP output.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Evaluate StateVERCEL_AI_GATEWAY_EVALUATE_STATEAcción

    Evaluate 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.

    Parámetros de entrada

    • modelstringObligatorio

      Gateway evaluation model ID.

    • statestring | number | integer | boolean | object | array | nullObligatorio

      Shared state to evaluate as any recursively nested JSON value.

    • questionsobjectObligatorio

      Nonempty map of question IDs to typed choice, score, or boolean questions. Answer keys match these IDs.

    • provider_optionsobject

      Optional AI Gateway routing and provider controls, including zero data retention or provider restrictions.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Generate ImagesVERCEL_AI_GATEWAY_GENERATE_IMAGESAcción

    Generate one or more images from a text prompt through an image-only Vercel AI Gateway model. Returns a completed non-streaming JSON response.

    Parámetros de entrada

    • sizestring

      Requested image dimensions when supported, such as 1024x1024.

    • modelstringObligatorio

      Gateway image model ID in provider/model form.

    • promptstringObligatorio

      Text description of the image to generate.

    • qualitystring

      Provider-supported output quality, such as high, medium, or low.

    • image_countinteger

      Number of images to generate, subject to the selected model's limit.

    • response_formatstringenum

      Image representation requested from compatible models.

      b64_jsonurl
    • provider_optionsobject

      Gateway routing and provider-specific image options.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Generate ResponseVERCEL_AI_GATEWAY_GENERATE_RESPONSEAcción

    Generate 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.

    Parámetros de entrada

    • textobject

      Text output controls, including an OpenAI Responses structured-output format.

    • inputanyObligatorio

      User input text or OpenAI Responses input items, including prior messages or multimodal content.

    • modelstringObligatorio

      Gateway model ID in provider/model form.

    • storeboolean

      Whether the provider should store the response for later retrieval.

    • toolsobject[]

      OpenAI Responses tool definitions available to the model.

    • top_pnumber

      Optional nucleus-sampling probability between 0 and 1.

    • cachingstring

      Set to auto to let AI Gateway add provider-appropriate cache markers.

    • metadataobject

      Up to 16 string key-value pairs for tracking this response.

    • cache_ttlstringenum

      Automatic prompt-cache lifetime; requires caching set to auto.

      5m1h
    • reasoningobject

      Reasoning controls supported by the selected model, such as effort or summary.

    • truncationstringenum

      Long-input truncation strategy: auto or disabled.

      autodisabled
    • temperaturenumber

      Sampling temperature accepted by the selected model.

    • tool_choiceany

      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.

    • instructionsstring

      System-level instructions for this response.

    • allowed_toolsstring[]

      Optional subset of supplied tool names the model may call.

    • presence_penaltynumber

      Optional penalty for tokens that already appear in the generated text.

    • prompt_cache_keystring

      Stable key used to identify related cached prompts.

    • provider_optionsobject

      Gateway routing and provider-specific options.

    • frequency_penaltynumber

      Optional penalty based on how frequently tokens already appear.

    • max_output_tokensinteger

      Optional maximum generated tokens, including reasoning tokens.

    • cache_anchor_itemsinteger

      Number of leading input items that remain byte-stable for cache anchoring.

    • parallel_tool_callsboolean

      Whether the model may call multiple tools in one turn.

    • previous_response_idstring

      Prior response ID to continue when the selected provider supports response chaining.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Generate SpeechVERCEL_AI_GATEWAY_GENERATE_SPEECHAcción

    Generate spoken audio from text through a Vercel AI Gateway speech model. Returns completed base64 audio in JSON; streaming output is not supported.

    Parámetros de entrada

    • textstringObligatorio

      Text to convert into spoken audio.

    • modelstringObligatorio

      Gateway speech model ID in provider/model form.

    • speednumber

      Requested playback speed when supported by the model.

    • voicestring

      Model-supported voice, such as alloy.

    • languagestring

      Language of the input text when the model accepts an explicit language.

    • instructionsstring

      Directions for speaking style, tone, or pacing when supported.

    • output_formatstring

      Requested audio encoding, such as mp3 or wav.

    • provider_optionsobject

      Provider-specific speech options.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Get Credit BalanceVERCEL_AI_GATEWAY_GET_CREDIT_BALANCEAcción

    Return the connected team's remaining AI Gateway credit balance and lifetime credit usage in USD.

    Parámetros de entrada

    Sin parámetros.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Get GenerationVERCEL_AI_GATEWAY_GET_GENERATIONAcción

    Look up cost, token usage, provider routing, latency, and finish details for one completed Vercel AI Gateway generation.

    Parámetros de entrada

    • generation_idstringObligatorio

      Generation ID returned by inference. It starts with gen_ followed by a 26-character ULID.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Get ModelVERCEL_AI_GATEWAY_GET_MODELAcción

    Return detailed capabilities, modalities, limits, tags, and pricing for one exact Gateway model ID.

    Parámetros de entrada

    • model_idstringObligatorio

      Exact provider/model ID to retrieve.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Get Model EndpointsVERCEL_AI_GATEWAY_GET_MODEL_ENDPOINTSAcción

    Compare provider endpoints serving one Vercel AI Gateway model, including limits, pricing, caching, availability, throughput, and latency.

    Parámetros de entrada

    • model_idstringObligatorio

      Exact model ID in provider/model form.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Get Spend ReportVERCEL_AI_GATEWAY_GET_SPEND_REPORTAcción

    Query 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.

    Parámetros de entrada

    • tagsstring

      One or more comma-separated reporting tags to match.

    • modelstring

      Only include this model in creator/model-name form.

    • user_idstring

      Only include requests attributed to this user ID.

    • end_datestringObligatoriodate

      Inclusive UTC end date in YYYY-MM-DD format.

    • group_bystringenum

      Aggregation dimension. Defaults to day when omitted.

      dayusermodeltagprovidercredential_typezero_data_retentionapi_key_name
    • providerstring

      Only include requests served by this provider.

    • date_partstringenum

      Time granularity when group_by is day. Defaults to day.

      dayhour
    • api_key_idstring

      Stable API key ID to filter by, or self for the API key authenticating this request.

    • start_datestringObligatoriodate

      Inclusive UTC start date in YYYY-MM-DD format.

    • tags_matchstringenum

      Whether requests must match any or all supplied tags. Defaults to any.

      anyall
    • credential_typestringenum

      Only include BYOK or AI Gateway system-credential requests.

      byoksystem
    • zero_data_retentionboolean

      Filter by whether Zero Data Retention was requested.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    List Model CatalogVERCEL_AI_GATEWAY_LIST_MODEL_CATALOGAcción

    List AI Gateway model-to-provider routes and capability tags, with bounded local filtering by model text, provider, or tag.

    Parámetros de entrada

    • tagstring

      Case-insensitive exact provider capability tag to include.

    • querystring

      Case-insensitive text to match against model slugs, provider names, or provider model IDs.

    • providerstring

      Case-insensitive exact provider name to include.

    • max_resultsinteger

      Maximum matching catalog models to return (1-100).

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    List TypeSafe ModelsVERCEL_AI_GATEWAY_LIST_TYPESAFE_MODELSAcción

    List evaluation models available through AI Gateway's TypeSafe-compatible API, including each accepted model name, description, and release date.

    Parámetros de entrada

    Sin parámetros.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Rerank Object DocumentsVERCEL_AI_GATEWAY_RERANK_OBJECT_DOCUMENTSAcción

    Rank structured object documents by relevance through the Cohere v1 route, using selected rank fields and optionally returning each source document.

    Parámetros de entrada

    • modelstringObligatorio

      Gateway reranking model ID.

    • querystringObligatorio

      Query against which the documents should be ranked.

    • top_ninteger

      Maximum highest-ranked results to return; cannot exceed the number of documents.

    • documentsobject[]Obligatorio

      Structured documents to rank; each result index refers to this array. Use rank_fields to identify the text-bearing fields.

    • rank_fieldsstring[]

      Structured document fields to rank, in priority order. When omitted, the provider defaults to the text field.

    • provider_optionsobject

      Gateway routing and provider-specific options.

    • return_documentsboolean

      Set true to include each original structured document in the results. When omitted, the provider default is false.

    • max_tokens_per_documentinteger

      Optional per-document token cap.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Rerank Text DocumentsVERCEL_AI_GATEWAY_RERANK_TEXT_DOCUMENTSAcción

    Rerank 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.

    Parámetros de entrada

    • modelstringObligatorio

      Gateway reranking model ID.

    • querystringObligatorio

      Query against which the documents should be ranked.

    • top_ninteger

      Maximum highest-ranked results to return; defaults to all documents.

    • documentsstring[]Obligatorio

      Text-only documents to rank using the Cohere v2 compatibility API.

    • provider_optionsobject

      AI Gateway routing options, including providerOptions.gateway controls.

    • max_tokens_per_documentinteger

      Optional per-document token cap.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Search ModelsVERCEL_AI_GATEWAY_SEARCH_MODELSAcción

    Search the AI Gateway model catalog by text, model type, and tags, returning capability and pricing metadata for matching models.

    Parámetros de entrada

    • querystring

      Case-insensitive text to match against model ID, name, owner, or description.

    • model_typestring

      Exact catalog model type to include, such as language, embedding, image, or reranking.

    • max_resultsinteger

      Maximum matching models to return after scanning the complete catalog (1-100).

    • required_tagsstring[]

      Tags every returned model must have, such as free, reasoning, or tool-use.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Transcribe AudioVERCEL_AI_GATEWAY_TRANSCRIBE_AUDIOAcción

    Transcribe base64-encoded recorded audio through a Vercel AI Gateway transcription model. Returns one completed JSON transcript, not a live stream.

    Parámetros de entrada

    • audiostringObligatorio

      Base64-encoded recorded audio bytes.

    • modelstringObligatorio

      Gateway transcription model ID in provider/model form.

    • media_typestringObligatorio

      MIME type of the encoded audio, such as audio/mpeg or audio/wav.

    • provider_optionsobject

      Provider-specific transcription options.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not

    Evaluate with TypeSafe APIVERCEL_AI_GATEWAY_TYPESAFE_EVALUATEAcción

    Evaluate 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.

    Parámetros de entrada

    • modelstringObligatorio

      TypeSafe evaluation model name accepted by AI Gateway.

    • statestring | number | integer | boolean | object | array | nullObligatorio

      Shared state to evaluate as any recursively nested JSON value.

    • questionsobjectObligatorio

      Nonempty map of question IDs to TypeSafe noul, choice, or score questions. Answer keys match these IDs.

    Parámetros de salida

    • dataanyObligatorio

      Data from the action execution

    • errorstring

      Error if any occurred during the execution of the action

    • successfulbooleanObligatorio

      Whether or not the action execution was successful or not