跳转到主要内容

接口地址

POST https://api.mountsea.ai/hub/v1/image
Authorization: Bearer <your-api-key>
Content-Type: application/json
请求结构
{
  "model": "<model-id>",   // 必填 — 从下方模型参考中选取
  "input": { ... }         // 模型专属参数 — 展开对应模型查看详情
}
响应
{ "taskId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" }
轮询 GET /hub/v1/tasks/:taskId,直到 ready = true

模型参考(Model Reference)

点击下方能力分类标签,再点击模型名称即可展开参数表与可直接复制的请求示例。
在下方按能力分类的标签页中挑选模型,点击展开即可查看参数表和可直接复制的请求示例。
Gemini 2.5 Flash Image: fast and affordable text-to-image generation.
ParameterTypeReqDefaultValues / RangeDescription
seedintegerThe seed for the random number generator.
promptstringThe text prompt to generate an image from.
sync_modebooleanIf True, the media will be returned as a data URI and the output data won’t be available in the request history.
num_imagesinteger1The number of images to generate.
aspect_ratiostring1:121:9 16:9 3:2 4:3 5:4 1:1 4:5 3:4 2:3 9:16The aspect ratio of the generated image.
output_formatstringpngjpeg png webpThe format of the generated image.
safety_tolerancestring41 2 3 4 5 6The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. Note: API-only parameter.
limit_generationsbooleanExperimental parameter to limit the number of generations from each round of prompting to 1. Set to True to disregard any instructions in the prompt regarding the number of images to generate.
Nano Banana 2 (Gemini 3.1 Flash Image) ??fast text-to-image with resolution tiers.
ParameterTypeReqDefaultValues / RangeDescription
seedintegerThe seed for the random number generator.
promptstringThe text prompt to generate an image from.
sync_modebooleanIf True, the media will be returned as a data URI and the output data won’t be available in the request history.
num_imagesinteger1The number of images to generate.
resolutionstring1K0.5K 1K 2K 4KThe resolution of the image to generate.
aspect_ratiostringautoauto 21:9 16:9 3:2 4:3 5:4 1:1 4:5 3:4 2:3 9:16 4:1 1:4 8:1 1:8The aspect ratio of the generated image. Supports extreme ratios: 4:1, 1:4, 8:1, 1:8. Use ‘auto’ to let the model decide based on the prompt.
output_formatstringpngjpeg png webpThe format of the generated image.
system_promptstringOptional system instruction that steers the model’s persona and output style across the request. Leave blank to omit; when provided, it is sent as the system instruction to Gemini (or as a system message on OpenAI-compatible providers).
thinking_levelstringminimal highWhen set, enables model thinking with the given level (‘minimal’ or ‘high’) and includes thoughts in the generation. Omit to disable.
safety_tolerancestring41 2 3 4 5 6The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. Note: API-only parameter.
enable_web_searchbooleanEnable web search for the image generation task. This will allow the model to use the latest information from the web to generate the image.
limit_generationsbooleantrueExperimental parameter to limit the number of generations from each round of prompting to 1. Set to True to disregard any instructions in the prompt regarding the number of images to generate and ignore any intermediate images generated by the model. This may affect generation quality.
Nano Banana Pro (Gemini 3 Pro Image) ??studio-quality text-to-image generation.
ParameterTypeReqDefaultValues / RangeDescription
seedintegerThe seed for the random number generator.
promptstringThe text prompt to generate an image from.
sync_modebooleanIf True, the media will be returned as a data URI and the output data won’t be available in the request history.
num_imagesinteger1The number of images to generate.
resolutionstring1K1K 2K 4KThe resolution of the image to generate.
aspect_ratiostring1:1auto 21:9 16:9 3:2 4:3 5:4 1:1 4:5 3:4 2:3 9:16The aspect ratio of the generated image.
output_formatstringpngjpeg png webpThe format of the generated image.
system_promptstringOptional system instruction that steers the model’s persona and output style across the request. Leave blank to omit; when provided, it is sent as the system instruction to Gemini (or as a system message on OpenAI-compatible providers).
safety_tolerancestring41 2 3 4 5 6The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. Note: API-only parameter.
enable_web_searchbooleanEnable web search for the image generation task. This will allow the model to use the latest information from the web to generate the image. Note: disabled on this platform.
limit_generationsbooleanExperimental parameter to limit the number of generations from each round of prompting to 1. Set to True to disregard any instructions in the prompt regarding the number of images to generate.
GPT Image 2, OpenAI’s latest image model, is capable of creating extremely detailed images with fine typography.
ParameterTypeReqDefaultValues / RangeDescription
promptstringThe prompt for image generation
qualitystringhighauto low medium highQuality for the generated image. Use ‘auto’ to let the model pick the best quality for the prompt.
sync_modebooleanIf True, the media will be returned as a data URI and the output data won’t be available in the request history.
image_sizeoneOflandscape_4_3Preset / CustomThe size of the generated image. Use a preset name or a custom object. Concrete sizes: both dimensions must be multiples of 16, max edge 3840px, aspect ratio ??3:1, total pixels 655,360??,294,400.
num_imagesinteger1Number of images to generate
output_formatstringpngjpeg png webpOutput format for the images