Grok
grokGrok is xAI's API platform for text, image, video, embedding, file, search, and voice capabilities.
Acciones disponibles (8)
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.
Create EmbeddingsGROK_CREATE_EMBEDDINGSAcciónCreate vector embeddings for one or more text inputs with an xAI embedding model.
GROK_CREATE_EMBEDDINGSAcciónCreate vector embeddings for one or more text inputs with an xAI embedding model.
Parámetros de entrada
userstringStable end-user identifier that helps xAI monitor and detect abuse.
inputanyObligatorioOne non-empty text value or a batch of up to 128 non-empty text values to embed.
modelstringObligatorioxAI embedding model ID to use.
dimensionsintegerRequested number of output dimensions when supported by the model.
encoding_formatstringenumEmbedding encoding to return: 'float' for numeric vectors or 'base64'.
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 ResponseGROK_CREATE_RESPONSEAcciónGenerate a bounded, non-streaming Grok response from text or structured multimodal input, with optional reasoning, search, and function or web-search tools. Responses are ephemeral by default; set store=true to retain one for 30 days.
GROK_CREATE_RESPONSEAcciónGenerate a bounded, non-streaming Grok response from text or structured multimodal input, with optional reasoning, search, and function or web-search tools. Responses are ephemeral by default; set store=true to retain one for 30 days.
Parámetros de entrada
inputanyObligatorioPlain text, or structured message, function-call, and function-result items containing text, images, or files. To continue a tool call without store=true, replay the model's function_call item followed by its function_call_output.
modelstringObligatorioxAI model ID to use; obtain available IDs from GROK_LIST_MODELS.
storebooleanWhether xAI should retain the input and response for retrieval or continuation. Defaults to false; stored responses are retained for 30 days.
toolsarrayUp to 128 function or web-search tool definitions available to the model.
temperaturenumberSampling temperature from 0 to 2.
tool_choiceanyWhether tools are disabled, automatic, required, or a named tool is forced.
instructionsstringSystem-level guidance; do not combine with previous_response_id.
reasoning_effortstringenumReasoning effort supported by the selected model.
nonelowmediumhighmax_output_tokensintegerUpper bound on generated output and reasoning tokens (1-128000).
search_parametersobjectRealtime web, X, news, or RSS search configuration.
previous_response_idstringPrior response ID whose conversation context should be continued.
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
Generate ImageGROK_GENERATE_IMAGEAcciónGenerate one or more images from a text prompt with an xAI image-generation model.
GROK_GENERATE_IMAGEAcciónGenerate one or more images from a text prompt with an xAI image-generation model.
Parámetros de entrada
userstringStable end-user identifier that helps xAI monitor and detect abuse.
modelstringxAI image-generation model ID; omit only when relying on the provider default.
promptstringObligatorioDescription of the image to generate.
resolutionstringenumOutput resolution supported by grok-imagine models; omit to use the provider default.
1k2kimage_countintegerNumber of images to generate (1-10).
aspect_ratiostringenumOutput aspect ratio supported by grok-imagine models; omit to use the provider default.
1:13:44:39:1616:92:33:29:19.519.5:99:2020:91:2+2response_formatstringenumImage result format: 'url' for a generated-file URL or 'b64_json' for base64-encoded image bytes.
urlb64_json
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
Generate VideoGROK_GENERATE_VIDEOAcciónStart asynchronous xAI video generation from a text prompt, optionally conditioned on an image, and return a request ID for status checks.
GROK_GENERATE_VIDEOAcciónStart asynchronous xAI video generation from a text prompt, optionally conditioned on an image, and return a request ID for status checks.
Parámetros de entrada
userstringStable end-user identifier that helps xAI monitor and detect abuse.
modelstringVideo-generation model ID; omit only to use xAI's provider default.
promptstringObligatorioDescription of the video to generate.
durationintegerRequested video duration in seconds (1-15); xAI defaults to 8.
image_urlstringOptional public URL or base64 data URL for a JPEG, PNG, or WebP image to use as the video's first frame.
resolutionstringenumOutput video resolution supported by xAI.
480p720p1080paspect_ratiostringenumOutput aspect ratio supported by xAI.
1:116:99:164:33:43:22:3
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 API Key InfoGROK_GET_API_KEY_INFOAcciónInspect the connected xAI API key's identity, wildcard or granular ACLs, and key or team blocking state.
GROK_GET_API_KEY_INFOAcciónInspect the connected xAI API key's identity, wildcard or granular ACLs, and key or team blocking state.
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
Get Current AccountGROK_GET_CURRENT_ACCOUNTAcciónVerify the connected xAI credential and return the caller, team, zero-data-retention status, and key blocking state.
GROK_GET_CURRENT_ACCOUNTAcciónVerify the connected xAI credential and return the caller, team, zero-data-retention status, and key blocking state.
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
Get VideoGROK_GET_VIDEOAcciónCheck an asynchronous xAI video request. Returns pending while generation is in progress, the video and usage when done, or the structured generation error when failed.
GROK_GET_VIDEOAcciónCheck an asynchronous xAI video request. Returns pending while generation is in progress, the video and usage when done, or the structured generation error when failed.
Parámetros de entrada
request_idstringObligatorioDeferred request ID returned by GROK_GENERATE_VIDEO.
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 ModelsGROK_LIST_MODELSAcciónList models available to the connected xAI key, including model IDs and published pricing metadata needed to choose a model for other tools.
GROK_LIST_MODELSAcciónList models available to the connected xAI key, including model IDs and published pricing metadata needed to choose a model for other tools.
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