Volver al catálogo

LLM API

llm_api

LLM API provides a unified inference API for text, embeddings, images, audio, video, files, and batch workloads across multiple AI providers.

Acciones
12
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 (12)

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.

Cancel BatchLLM_API_CANCEL_BATCHAcción

Request best-effort cancellation of an in-progress batch. Return the provider's actual batch state without implying cancellation took effect; work may still finish and incur charges before the request is applied.

Parámetros de entrada

  • batch_idstringObligatorio

    ID of the batch whose cancellation should be 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

Count Anthropic Message TokensLLM_API_COUNT_ANTHROPIC_MESSAGE_TOKENSAcción

Count input tokens for an Anthropic-compatible message request without generating a model response.

Parámetros de entrada

  • modelstringObligatorio

    Model ID or alias whose tokenizer and message framing should be used.

  • toolsobject[]

    Anthropic-compatible tool definitions whose framing should be included in the count.

  • systemany

    System prompt as text or Anthropic-compatible content blocks to include in the count.

  • messagesobject[]Obligatorio

    Ordered, non-empty Anthropic-compatible messages to include in the token count.

  • tool_choiceobject

    Anthropic-compatible tool-selection configuration to include in the message framing.

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 MessageLLM_API_CREATE_ANTHROPIC_MESSAGEAcción

Generate one complete, non-streaming Anthropic-compatible message with flexible content blocks, system prompts, and tool use.

Parámetros de entrada

  • modelstringObligatorio

    Claude-family or other model ID exposed through the Anthropic-compatible Messages contract.

  • toolsobject[]

    Anthropic-compatible tool definitions available to the model.

  • top_pnumber

    Nucleus-sampling probability from 0 through 1, when supported.

  • systemany

    Anthropic-compatible system prompt as text or supported content blocks.

  • messagesobject[]Obligatorio

    Ordered, non-empty Anthropic-compatible conversation messages.

  • max_tokensintegerObligatorio

    Maximum number of output tokens to generate.

  • temperaturenumber

    Sampling temperature from 0 through 1, when supported by the model.

  • tool_choiceobject

    Anthropic-compatible tool-selection configuration.

  • stop_sequencesstring[]

    Custom text sequences that stop generation.

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 CompletionLLM_API_CREATE_CHAT_COMPLETIONAcción

Generate a complete, non-streaming OpenAI-compatible chat response from role-based messages, optionally using tools, multimodal content, structured output, reasoning, or web search supported by the selected model.

Parámetros de entrada

  • modelstringObligatorio

    Model ID or alias from Discover Models that supports chat completions.

  • toolsobject[]

    OpenAI-compatible function or provider tool definitions available to the model.

  • top_pnumber

    Nucleus-sampling probability accepted by the selected model; supported ranges are model-dependent.

  • messagesobject[]Obligatorio

    Ordered OpenAI-compatible conversation messages with model-supported content and tool-call fields.

  • max_tokensinteger

    Maximum tokens to generate for models using the legacy max_tokens field.

  • web_searchboolean

    Enable provider web search when the selected model and project support it.

  • temperaturenumber

    Sampling temperature accepted by the selected model; supported ranges are model-dependent.

  • tool_choiceany

    How the model may select supplied tools, using the OpenAI-compatible form supported by the model.

  • no_reasoningboolean

    Disable reasoning when supported, including non-reasoning selection for auto routing.

  • response_formatobject

    OpenAI-compatible response-format object for text, JSON, or a model-supported JSON schema.

  • reasoning_effortstring

    Reasoning effort for models that advertise this parameter.

  • web_search_optionsobject

    Provider web-search options to apply when web search is enabled.

  • max_completion_tokensinteger

    Maximum completion tokens for models using the newer field. Avoid setting both token limits unless the model supports them.

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 EmbeddingsLLM_API_CREATE_EMBEDDINGSAcción

Create vector embeddings for one text or a batch of texts with a selected embedding model.

Parámetros de entrada

  • userstring

    Stable, non-sensitive end-user identifier for provider abuse monitoring.

  • inputanyObligatorio

    One text or a non-empty list of texts to embed in one request.

  • modelstringObligatorio

    Embedding model ID or alias from the model catalog.

  • dimensionsinteger

    Requested vector length when the selected model supports configurable dimensions.

  • encoding_formatstringenum

    Return each embedding as numeric floats or a base64-encoded string.

    floatbase64

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 ResponseLLM_API_CREATE_RESPONSEAcción

Generate one complete, non-streaming OpenAI Responses-compatible result from text or structured input, preserving reasoning and tool items.

Parámetros de entrada

  • textobject

    Responses text-output configuration supported by the selected model.

  • inputanyObligatorio

    Text or OpenAI Responses-compatible input messages/items, including model-supported multimodal content.

  • modelstringObligatorio

    Model ID or alias that supports the Responses API binding.

  • toolsobject[]

    Responses-compatible tools available to the model.

  • reasoningobject

    Reasoning configuration, such as an effort level, for supported models.

  • tool_choiceany

    Responses-compatible tool-selection policy.

  • instructionsstring

    High-level instructions applied to the response.

  • response_formatobject

    Compatibility response-format object supported by the selected model.

  • max_output_tokensinteger

    Maximum output tokens. The provider requires at least 16 when supplied.

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

Delete FileLLM_API_DELETE_FILEAcción

Permanently delete a caller-owned or explicitly authorized project file. This destructive operation cannot be undone; a missing file fails with not found rather than reporting a successful deletion.

Parámetros de entrada

  • file_idstringObligatorio

    ID of a caller-owned or explicitly authorized project file to delete permanently. This destructive operation cannot be undone.

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

Discover ModelsLLM_API_DISCOVER_MODELSAcción

Return one model's full live capabilities by ID, or browse a compact, bounded view of the live model catalog using local capability filters.

Parámetros de entrada

  • kindstring

    Optional exact catalog kind to retain, such as chat or embedding.

  • modelstring

    Exact model ID or alias to inspect; omit to browse the catalog.

  • free_onlyboolean

    When browsing, return only models cataloged as free. This does not guarantee that the connected account can invoke them.

  • max_resultsinteger

    Maximum matching catalog entries to return after local filtering (1-200).

  • exclude_deprecatedboolean

    Exclude deprecated models from catalog browsing.

  • include_deactivatedboolean

    Include deactivated models in catalog browsing.

  • required_capabilitystring

    Optional capability or supported parameter that returned models must advertise, such as tools or image_input.

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 Account and CreditsLLM_API_GET_ACCOUNT_AND_CREDITSAcción

Return the connected user, project, organization, purchased and bonus credit balances, funding mode, and balance gating in one account-status read.

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

List or Get BatchesLLM_API_LIST_OR_GET_BATCHESAcción

Return one asynchronous batch and its latest lifecycle, token, and cost status by ID, or one provider-default page of project batches when no batch ID is supplied. List mode supports provider cursor pagination.

Parámetros de entrada

  • afterstring

    In list mode, return the page after this batch ID. Pass the prior response's last_id to continue.

  • limitinteger

    In list mode, maximum number of batches for the provider to return.

  • batch_idstring

    Exact batch ID whose current status should be returned; omit to return one provider-default page of batches.

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 or Get FilesLLM_API_LIST_OR_GET_FILESAcción

Return metadata for one project file by ID, or one provider-default page of project file metadata when no file ID is supplied. List mode supports purpose filtering and provider cursor pagination.

Parámetros de entrada

  • afterstring

    In list mode, return the page after this file ID. When has_more is true, pass the final files[].id from the previous response.

  • limitinteger

    In list mode, maximum number of files for the provider to return.

  • file_idstring

    Exact file ID to inspect; omit to return one provider-default page of project files.

  • purposestring

    In list mode, return only files uploaded for this purpose.

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

Submit BatchLLM_API_SUBMIT_BATCHAcción

Create an asynchronous batch from an existing purpose=batch file ID, or upload a JSONL input file with purpose=batch and create the batch in one call.

Parámetros de entrada

  • endpointstringObligatorioenum

    Endpoint used by every JSONL request in this batch.

    /v1/chat/completions/v1/responses
  • input_fileobject

    JSONL batch request file to upload before submission.

  • input_file_idstring

    Existing purpose=batch file ID. Provide exactly one of input_file_id or input_file.

  • completion_windowstring

    Provider completion window. The only documented value is 24h.

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