Alibaba Provider
Provider name: alibaba
What It Does #
Alibaba is one of the image-generation providers that can power
util_generate_image.
You send a prompt to the Discord MCP, Alibaba generates one image, and the Discord MCP returns a usable URL. If an uploader is configured, the Discord MCP may reupload the result before returning it.
What It Usually Needs #
At minimum, Alibaba needs:
tokenmodel
In practice, a common setup is:
modelconfigured once by the operatortokenconfigured per app when needed- optional request-time overrides through headers such as
X-Image-Model
If the required configuration is missing, util_generate_image stays hidden.
How It Is Selected #
Alibaba can be selected through:
X-Image-Providerimage_provider
Its credentials can also be supplied or persisted temporarily through:
X-Image-TokenX-Image-Persist
Request-Time Size Support #
Alibaba accepts the normal Discord MCP size argument.
- Format:
WxH - Allowed range: each value must be between
512and2048
If size is omitted, the Discord MCP leaves that part of the upstream request
alone and Alibaba uses its own default behavior.
Important Notes #
- the Discord MCP does not impose an allowlist on Alibaba model names
X-Image-Modelreplaces the configured model for the current request only- the Discord MCP translates the public
sizeargument into Alibaba's upstream format automatically