Volver al catálogo

ImageRouter

imagerouter

Generate images, videos, and text with ImageRouter, inspect credits, validate normal API keys, and discover models. Management-key endpoints are excluded.

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 Chat CompletionIMAGEROUTER_CREATE_CHAT_COMPLETIONAcción

Create a non-streaming OpenAI-compatible chat completion with a paid text model. Call IMAGEROUTER_LIST_MODELS, IMAGEROUTER_GET_MODEL, and IMAGEROUTER_GET_CREDITS first to verify availability, context, supported parameters, pricing, and sufficient credits.

Parámetros de entrada

  • modelstringObligatorio

    Exact text-output model ID from IMAGEROUTER_LIST_MODELS. Inspect its context, supported parameters, and pricing before this paid call.

  • toolsobject[]

    OpenAI-compatible function tool definitions available to the model.

  • top_pnumber

    Nucleus-sampling probability mass from 0 to 1.

  • messagesobject[]Obligatorio

    OpenAI-compatible conversation messages in chronological order.

  • max_tokensinteger

    Maximum number of completion tokens.

  • temperaturenumber

    Sampling temperature supported by the selected model.

  • tool_choiceany

    OpenAI-compatible tool-selection policy as a keyword or policy object.

  • response_formatobject

    OpenAI-compatible response format configuration, including structured output.

  • reasoning_effortstring

    Reasoning effort for selected models that support this parameter.

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

Create a non-streaming OpenAI Responses API result from plain text or structured multimodal input with a selected ImageRouter text model. Call IMAGEROUTER_LIST_MODELS and IMAGEROUTER_GET_CREDITS first because all text models observed during probing were paid. Streaming and SSE are not supported.

Parámetros de entrada

  • textobject

    Text output and structured-format configuration.

  • inputanyObligatorio

    Plain prompt text or OpenAI Responses input items. Structured items may include model-supported multimodal content such as input_image parts.

  • modelstringObligatorio

    Exact text-output model ID from IMAGEROUTER_LIST_MODELS. Inspect the model's capabilities and pricing first because this call may consume credits.

  • toolsobject[]

    OpenAI Responses-compatible tool definitions passed to the selected model.

  • top_pnumber

    Nucleus-sampling probability mass, from 0 to 1.

  • reasoningobject

    Reasoning configuration supported by the selected model.

  • temperaturenumber

    Sampling temperature, when supported by the selected model.

  • tool_choiceany

    OpenAI Responses-compatible tool-selection policy.

  • instructionsstring

    Optional system-level guidance for the response.

  • max_output_tokensinteger

    Maximum number of output tokens to generate.

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

Transform or inpaint one or more existing images supplied as URLs or data URIs. Call IMAGEROUTER_LIST_MODELS and inspect the selected model first to verify image and optional mask input support, accepted parameters, pricing, and funding requirements. Multipart file uploads are not supported.

Parámetros de entrada

  • sizestring

    Model-supported WIDTHxHEIGHT value or auto. Omit to use its default.

  • masksstring[]

    Optional mask URLs or data URIs for a model that accepts mask input. Provide 1-16 JSON string values when used.

  • modelstringObligatorio

    Exact model ID from IMAGEROUTER_LIST_MODELS whose architecture accepts image input. Inspect its capabilities and pricing before editing.

  • imagesstring[]Obligatorio

    Source image URLs or data URIs. Provide 1-16 JSON string values; binary multipart files are not supported.

  • promptstringObligatorio

    Describe the requested transformation or inpainting result.

  • qualitystringenum

    Requested quality. Omit unless the selected model lists quality as a supported parameter.

    autolowmediumhigh
  • output_formatstringenum

    Edited image file format.

    webpjpegpng
  • response_formatstring

    Output transport. Only URL output is supported to keep results bounded.

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

Generate an image from a text prompt with a selected ImageRouter model. Call IMAGEROUTER_LIST_MODELS and inspect the selected model first because pricing, supported sizes and quality levels, and funding requirements vary. Results are returned as URLs; inline base64 output is not supported.

Parámetros de entrada

  • sizestring

    Model-supported WIDTHxHEIGHT value or auto. Omit to use its default.

  • modelstringObligatorio

    Exact image model ID from IMAGEROUTER_LIST_MODELS. Inspect the model's capabilities and pricing before generation because production calls may consume credits or require a funded account.

  • promptstringObligatorio

    Text description of the image to generate.

  • qualitystringenum

    Requested quality. Omit unless the selected model lists quality as a supported parameter.

    autolowmediumhigh
  • output_formatstringenum

    Generated image file format.

    webpjpegpng
  • response_formatstring

    Output transport. Only URL output is supported to keep results bounded.

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

Generate a video from text and optional URL or data-URI image inputs. Call IMAGEROUTER_LIST_MODELS and inspect the selected model first because pricing, accepted modalities, quality levels, sizes, and duration constraints vary. Results are returned as URLs; inline base64 output is not supported.

Parámetros de entrada

  • sizestring

    Model-supported WIDTHxHEIGHT value or auto. Omit to use its default.

  • modelstringObligatorio

    Exact video model ID from IMAGEROUTER_LIST_MODELS. Inspect the model's capabilities and pricing before generation because production calls may consume credits or require a funded account.

  • imagesstring[]

    Optional source image URLs or data URIs for image-to-video models. Multipart files are not supported.

  • promptstringObligatorio

    Text description of the video to generate.

  • qualitystringenum

    Requested quality. Omit unless the selected model lists quality as a supported parameter.

    autolowmediumhigh
  • secondsinteger

    Requested duration in seconds. Omit for the provider's auto default; each model supports its own subset.

  • response_formatstring

    Output transport. Only URL output is supported to keep results bounded.

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

Inspect remaining credits, cumulative usage, deposits, and optional per-key usage before making potentially paid generation calls.

Parámetros de entrada

  • by_api_keyboolean

    Include usage and spend metadata grouped by API key. Secret key values are not returned.

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

Get current capabilities, accepted parameters, and pricing for one exact ImageRouter model ID before generation.

Parámetros de entrada

  • model_idstringObligatorio

    Exact model ID returned by IMAGEROUTER_LIST_MODELS, such as openai/gpt-image-2.

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

Discover current ImageRouter model IDs, modalities, supported parameters, and pricing before generation. Filters may be combined. limit truncates results and cannot be continued; omit it for an exhaustive filtered list.

Parámetros de entrada

  • freeboolean

    Set true for zero-priced models or false for paid models. Zero price does not guarantee access from an unfunded account.

  • namestring

    Case-insensitive partial model name, ID, or alias filter.

  • sortstringenum

    Sort by name or provider alphabetically, price ascending, or date newest first.

    nameproviderpricedate
  • limitinteger

    Truncate the returned array to at most this many models. There is no next page or continuation token.

  • fieldsstring

    Comma-separated response fields to include, such as architecture,pricing,supported_parameters,parameters,aliases. The model ID is always returned.

  • providerstring

    Case-insensitive partial provider filter.

  • input_modalitystringenum

    Return models accepting this input modality.

    imagemasktextaudiovideo
  • output_modalitystringenum

    Return models producing this modality.

    imagevideotext

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