跳转到主要内容
POST
/
hub
/
v1
/
image
Submit an image generation task
curl --request POST \
  --url https://api.mountsea.ai/hub/v1/image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "model": "nano-banana",
  "input": {
    "prompt": "An action shot of a black lab swimming in an inground suburban swimming pool. The camera is placed meticulously on the water line, dividing the image in half, revealing both the dogs head above water holding a tennis ball in it's mouth, and it's paws paddling underwater.",
    "num_images": 1,
    "aspect_ratio": "1:1",
    "output_format": "png",
    "safety_tolerance": "4"
  }
}
EOF
{
  "task_id": "hub-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "pending",
  "capability": "video",
  "model": "veo-3.1-fast",
  "vendor": "Google",
  "mode": "text-to-video",
  "created_at": "2026-05-18T09:00:00.000Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mountsea.ai/llms.txt

Use this file to discover all available pages before exploring further.

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
model
enum<string>
必填

Fixed value: "nano-banana"

可用选项:
nano-banana
input
Nano Banana — input · object
必填

Gemini 2.5 Flash Image: fast and affordable text-to-image generation.

响应

200 - application/json
task_id
string
必填

Unique task ID — use this to poll GET /hub/v1/tasks/:task_id

示例:

"hub-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

status
string
必填

Task status at creation time (usually pending)

示例:

"pending"

capability
string
必填

Capability: image | video | audio | transcribe

示例:

"video"

model
string
必填

Model ID

示例:

"veo-3.1-fast"

vendor
string
必填

Model vendor

示例:

"Google"

mode
string
必填

Generation mode (e.g. text-to-video, image-to-image)

示例:

"text-to-video"

created_at
string
必填

ISO 8601 creation timestamp

示例:

"2026-05-18T09:00:00.000Z"