ImageRouter
imagerouterGenerate images, videos, and text with ImageRouter, inspect credits, validate normal API keys, and discover models. Management-key endpoints are excluded.
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ónCreate 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.
IMAGEROUTER_CREATE_CHAT_COMPLETIONAcciónCreate 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
modelstringObligatorioExact 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_pnumberNucleus-sampling probability mass from 0 to 1.
messagesobject[]ObligatorioOpenAI-compatible conversation messages in chronological order.
max_tokensintegerMaximum number of completion tokens.
temperaturenumberSampling temperature supported by the selected model.
tool_choiceanyOpenAI-compatible tool-selection policy as a keyword or policy object.
response_formatobjectOpenAI-compatible response format configuration, including structured output.
reasoning_effortstringReasoning effort for selected models that support this parameter.
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 ResponseIMAGEROUTER_CREATE_RESPONSEAcciónCreate 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.
IMAGEROUTER_CREATE_RESPONSEAcciónCreate 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
textobjectText output and structured-format configuration.
inputanyObligatorioPlain prompt text or OpenAI Responses input items. Structured items may include model-supported multimodal content such as input_image parts.
modelstringObligatorioExact 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_pnumberNucleus-sampling probability mass, from 0 to 1.
reasoningobjectReasoning configuration supported by the selected model.
temperaturenumberSampling temperature, when supported by the selected model.
tool_choiceanyOpenAI Responses-compatible tool-selection policy.
instructionsstringOptional system-level guidance for the response.
max_output_tokensintegerMaximum number of output tokens to generate.
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
Edit ImageIMAGEROUTER_EDIT_IMAGEAcciónTransform 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.
IMAGEROUTER_EDIT_IMAGEAcciónTransform 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
sizestringModel-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.
modelstringObligatorioExact model ID from IMAGEROUTER_LIST_MODELS whose architecture accepts image input. Inspect its capabilities and pricing before editing.
imagesstring[]ObligatorioSource image URLs or data URIs. Provide 1-16 JSON string values; binary multipart files are not supported.
promptstringObligatorioDescribe the requested transformation or inpainting result.
qualitystringenumRequested quality. Omit unless the selected model lists quality as a supported parameter.
autolowmediumhighoutput_formatstringenumEdited image file format.
webpjpegpngresponse_formatstringOutput transport. Only URL output is supported to keep results bounded.
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 ImageIMAGEROUTER_GENERATE_IMAGEAcciónGenerate 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.
IMAGEROUTER_GENERATE_IMAGEAcciónGenerate 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
sizestringModel-supported WIDTHxHEIGHT value or auto. Omit to use its default.
modelstringObligatorioExact 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.
promptstringObligatorioText description of the image to generate.
qualitystringenumRequested quality. Omit unless the selected model lists quality as a supported parameter.
autolowmediumhighoutput_formatstringenumGenerated image file format.
webpjpegpngresponse_formatstringOutput transport. Only URL output is supported to keep results bounded.
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 VideoIMAGEROUTER_GENERATE_VIDEOAcciónGenerate 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.
IMAGEROUTER_GENERATE_VIDEOAcciónGenerate 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
sizestringModel-supported WIDTHxHEIGHT value or auto. Omit to use its default.
modelstringObligatorioExact 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.
promptstringObligatorioText description of the video to generate.
qualitystringenumRequested quality. Omit unless the selected model lists quality as a supported parameter.
autolowmediumhighsecondsintegerRequested duration in seconds. Omit for the provider's auto default; each model supports its own subset.
response_formatstringOutput transport. Only URL output is supported to keep results bounded.
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 CreditsIMAGEROUTER_GET_CREDITSAcciónInspect remaining credits, cumulative usage, deposits, and optional per-key usage before making potentially paid generation calls.
IMAGEROUTER_GET_CREDITSAcciónInspect remaining credits, cumulative usage, deposits, and optional per-key usage before making potentially paid generation calls.
Parámetros de entrada
by_api_keybooleanInclude usage and spend metadata grouped by API key. Secret key values are not returned.
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 ModelIMAGEROUTER_GET_MODELAcciónGet current capabilities, accepted parameters, and pricing for one exact ImageRouter model ID before generation.
IMAGEROUTER_GET_MODELAcciónGet current capabilities, accepted parameters, and pricing for one exact ImageRouter model ID before generation.
Parámetros de entrada
model_idstringObligatorioExact model ID returned by IMAGEROUTER_LIST_MODELS, such as openai/gpt-image-2.
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 ModelsIMAGEROUTER_LIST_MODELSAcciónDiscover 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.
IMAGEROUTER_LIST_MODELSAcciónDiscover 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
freebooleanSet true for zero-priced models or false for paid models. Zero price does not guarantee access from an unfunded account.
namestringCase-insensitive partial model name, ID, or alias filter.
sortstringenumSort by name or provider alphabetically, price ascending, or date newest first.
nameproviderpricedatelimitintegerTruncate the returned array to at most this many models. There is no next page or continuation token.
fieldsstringComma-separated response fields to include, such as architecture,pricing,supported_parameters,parameters,aliases. The model ID is always returned.
providerstringCase-insensitive partial provider filter.
input_modalitystringenumReturn models accepting this input modality.
imagemasktextaudiovideooutput_modalitystringenumReturn models producing this modality.
imagevideotext
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