Volver al catálogo

Grok

grok

Grok is xAI's API platform for text, image, video, embedding, file, search, and voice capabilities.

Acciones
8
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 (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ón

Create vector embeddings for one or more text inputs with an xAI embedding model.

Parámetros de entrada

  • userstring

    Stable end-user identifier that helps xAI monitor and detect abuse.

  • inputanyObligatorio

    One non-empty text value or a batch of up to 128 non-empty text values to embed.

  • modelstringObligatorio

    xAI embedding model ID to use.

  • dimensionsinteger

    Requested number of output dimensions when supported by the model.

  • encoding_formatstringenum

    Embedding encoding to return: 'float' for numeric vectors or 'base64'.

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

Generate 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

  • inputanyObligatorio

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

  • modelstringObligatorio

    xAI model ID to use; obtain available IDs from GROK_LIST_MODELS.

  • storeboolean

    Whether xAI should retain the input and response for retrieval or continuation. Defaults to false; stored responses are retained for 30 days.

  • toolsarray

    Up to 128 function or web-search tool definitions available to the model.

  • temperaturenumber

    Sampling temperature from 0 to 2.

  • tool_choiceany

    Whether tools are disabled, automatic, required, or a named tool is forced.

  • instructionsstring

    System-level guidance; do not combine with previous_response_id.

  • reasoning_effortstringenum

    Reasoning effort supported by the selected model.

    nonelowmediumhigh
  • max_output_tokensinteger

    Upper bound on generated output and reasoning tokens (1-128000).

  • search_parametersobject

    Realtime web, X, news, or RSS search configuration.

  • previous_response_idstring

    Prior response ID whose conversation context should be continued.

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

Generate one or more images from a text prompt with an xAI image-generation model.

Parámetros de entrada

  • userstring

    Stable end-user identifier that helps xAI monitor and detect abuse.

  • modelstring

    xAI image-generation model ID; omit only when relying on the provider default.

  • promptstringObligatorio

    Description of the image to generate.

  • resolutionstringenum

    Output resolution supported by grok-imagine models; omit to use the provider default.

    1k2k
  • image_countinteger

    Number of images to generate (1-10).

  • aspect_ratiostringenum

    Output 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+2
  • response_formatstringenum

    Image result format: 'url' for a generated-file URL or 'b64_json' for base64-encoded image bytes.

    urlb64_json

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

Start 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

  • userstring

    Stable end-user identifier that helps xAI monitor and detect abuse.

  • modelstring

    Video-generation model ID; omit only to use xAI's provider default.

  • promptstringObligatorio

    Description of the video to generate.

  • durationinteger

    Requested video duration in seconds (1-15); xAI defaults to 8.

  • image_urlstring

    Optional public URL or base64 data URL for a JPEG, PNG, or WebP image to use as the video's first frame.

  • resolutionstringenum

    Output video resolution supported by xAI.

    480p720p1080p
  • aspect_ratiostringenum

    Output aspect ratio supported by xAI.

    1:116:99:164:33:43:22:3

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 API Key InfoGROK_GET_API_KEY_INFOAcción

Inspect 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

  • 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 Current AccountGROK_GET_CURRENT_ACCOUNTAcción

Verify 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

  • 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 VideoGROK_GET_VIDEOAcción

Check 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_idstringObligatorio

    Deferred request ID returned by GROK_GENERATE_VIDEO.

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

List 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

  • 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