LLM API
llm_apiLLM API provides a unified inference API for text, embeddings, images, audio, video, files, and batch workloads across multiple AI providers.
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ónRequest 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.
LLM_API_CANCEL_BATCHAcciónRequest 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_idstringObligatorioID of the batch whose cancellation should be requested.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Count Anthropic Message TokensLLM_API_COUNT_ANTHROPIC_MESSAGE_TOKENSAcciónCount input tokens for an Anthropic-compatible message request without generating a model response.
LLM_API_COUNT_ANTHROPIC_MESSAGE_TOKENSAcciónCount input tokens for an Anthropic-compatible message request without generating a model response.
Parámetros de entrada
modelstringObligatorioModel ID or alias whose tokenizer and message framing should be used.
toolsobject[]Anthropic-compatible tool definitions whose framing should be included in the count.
systemanySystem prompt as text or Anthropic-compatible content blocks to include in the count.
messagesobject[]ObligatorioOrdered, non-empty Anthropic-compatible messages to include in the token count.
tool_choiceobjectAnthropic-compatible tool-selection configuration to include in the message framing.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Anthropic MessageLLM_API_CREATE_ANTHROPIC_MESSAGEAcciónGenerate one complete, non-streaming Anthropic-compatible message with flexible content blocks, system prompts, and tool use.
LLM_API_CREATE_ANTHROPIC_MESSAGEAcciónGenerate one complete, non-streaming Anthropic-compatible message with flexible content blocks, system prompts, and tool use.
Parámetros de entrada
modelstringObligatorioClaude-family or other model ID exposed through the Anthropic-compatible Messages contract.
toolsobject[]Anthropic-compatible tool definitions available to the model.
top_pnumberNucleus-sampling probability from 0 through 1, when supported.
systemanyAnthropic-compatible system prompt as text or supported content blocks.
messagesobject[]ObligatorioOrdered, non-empty Anthropic-compatible conversation messages.
max_tokensintegerObligatorioMaximum number of output tokens to generate.
temperaturenumberSampling temperature from 0 through 1, when supported by the model.
tool_choiceobjectAnthropic-compatible tool-selection configuration.
stop_sequencesstring[]Custom text sequences that stop generation.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Chat CompletionLLM_API_CREATE_CHAT_COMPLETIONAcciónGenerate 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.
LLM_API_CREATE_CHAT_COMPLETIONAcciónGenerate 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
modelstringObligatorioModel ID or alias from Discover Models that supports chat completions.
toolsobject[]OpenAI-compatible function or provider tool definitions available to the model.
top_pnumberNucleus-sampling probability accepted by the selected model; supported ranges are model-dependent.
messagesobject[]ObligatorioOrdered OpenAI-compatible conversation messages with model-supported content and tool-call fields.
max_tokensintegerMaximum tokens to generate for models using the legacy max_tokens field.
web_searchbooleanEnable provider web search when the selected model and project support it.
temperaturenumberSampling temperature accepted by the selected model; supported ranges are model-dependent.
tool_choiceanyHow the model may select supplied tools, using the OpenAI-compatible form supported by the model.
no_reasoningbooleanDisable reasoning when supported, including non-reasoning selection for auto routing.
response_formatobjectOpenAI-compatible response-format object for text, JSON, or a model-supported JSON schema.
reasoning_effortstringReasoning effort for models that advertise this parameter.
web_search_optionsobjectProvider web-search options to apply when web search is enabled.
max_completion_tokensintegerMaximum completion tokens for models using the newer field. Avoid setting both token limits unless the model supports them.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create EmbeddingsLLM_API_CREATE_EMBEDDINGSAcciónCreate vector embeddings for one text or a batch of texts with a selected embedding model.
LLM_API_CREATE_EMBEDDINGSAcciónCreate vector embeddings for one text or a batch of texts with a selected embedding model.
Parámetros de entrada
userstringStable, non-sensitive end-user identifier for provider abuse monitoring.
inputanyObligatorioOne text or a non-empty list of texts to embed in one request.
modelstringObligatorioEmbedding model ID or alias from the model catalog.
dimensionsintegerRequested vector length when the selected model supports configurable dimensions.
encoding_formatstringenumReturn each embedding as numeric floats or a base64-encoded string.
floatbase64
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create ResponseLLM_API_CREATE_RESPONSEAcciónGenerate one complete, non-streaming OpenAI Responses-compatible result from text or structured input, preserving reasoning and tool items.
LLM_API_CREATE_RESPONSEAcciónGenerate one complete, non-streaming OpenAI Responses-compatible result from text or structured input, preserving reasoning and tool items.
Parámetros de entrada
textobjectResponses text-output configuration supported by the selected model.
inputanyObligatorioText or OpenAI Responses-compatible input messages/items, including model-supported multimodal content.
modelstringObligatorioModel ID or alias that supports the Responses API binding.
toolsobject[]Responses-compatible tools available to the model.
reasoningobjectReasoning configuration, such as an effort level, for supported models.
tool_choiceanyResponses-compatible tool-selection policy.
instructionsstringHigh-level instructions applied to the response.
response_formatobjectCompatibility response-format object supported by the selected model.
max_output_tokensintegerMaximum output tokens. The provider requires at least 16 when supplied.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete FileLLM_API_DELETE_FILEAcciónPermanently 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.
LLM_API_DELETE_FILEAcciónPermanently 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_idstringObligatorioID of a caller-owned or explicitly authorized project file to delete permanently. This destructive operation cannot be undone.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Discover ModelsLLM_API_DISCOVER_MODELSAcciónReturn one model's full live capabilities by ID, or browse a compact, bounded view of the live model catalog using local capability filters.
LLM_API_DISCOVER_MODELSAcciónReturn 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
kindstringOptional exact catalog kind to retain, such as chat or embedding.
modelstringExact model ID or alias to inspect; omit to browse the catalog.
free_onlybooleanWhen browsing, return only models cataloged as free. This does not guarantee that the connected account can invoke them.
max_resultsintegerMaximum matching catalog entries to return after local filtering (1-200).
exclude_deprecatedbooleanExclude deprecated models from catalog browsing.
include_deactivatedbooleanInclude deactivated models in catalog browsing.
required_capabilitystringOptional capability or supported parameter that returned models must advertise, such as tools or image_input.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Account and CreditsLLM_API_GET_ACCOUNT_AND_CREDITSAcciónReturn the connected user, project, organization, purchased and bonus credit balances, funding mode, and balance gating in one account-status read.
LLM_API_GET_ACCOUNT_AND_CREDITSAcciónReturn 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
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List or Get BatchesLLM_API_LIST_OR_GET_BATCHESAcciónReturn 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.
LLM_API_LIST_OR_GET_BATCHESAcciónReturn 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
afterstringIn list mode, return the page after this batch ID. Pass the prior response's last_id to continue.
limitintegerIn list mode, maximum number of batches for the provider to return.
batch_idstringExact batch ID whose current status should be returned; omit to return one provider-default page of batches.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List or Get FilesLLM_API_LIST_OR_GET_FILESAcciónReturn 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.
LLM_API_LIST_OR_GET_FILESAcciónReturn 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
afterstringIn list mode, return the page after this file ID. When has_more is true, pass the final files[].id from the previous response.
limitintegerIn list mode, maximum number of files for the provider to return.
file_idstringExact file ID to inspect; omit to return one provider-default page of project files.
purposestringIn list mode, return only files uploaded for this purpose.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Submit BatchLLM_API_SUBMIT_BATCHAcciónCreate 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.
LLM_API_SUBMIT_BATCHAcciónCreate 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
endpointstringObligatorioenumEndpoint used by every JSONL request in this batch.
/v1/chat/completions/v1/responsesinput_fileobjectJSONL batch request file to upload before submission.
input_file_idstringExisting purpose=batch file ID. Provide exactly one of input_file_id or input_file.
completion_windowstringProvider completion window. The only documented value is 24h.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not