Skip to main content

Quick Start

Jump into using Mountsea AI’s API with our Quick Start guide. Learn how to get your API key and make your first API call!

What You Need

Get Your API Key

1

Sign Up

Sign up for Mountsea AI at shanhaiapi.com.
2

Create API Key

Go to the API Keys page and click Create New Key. Enter a unique name for your key and click Save.
3

Copy Your Key

On the API Keys page, click the copy icon next to your key to copy it to your clipboard.

Configure Your HTTP Request

All API requests require authentication via Bearer token:
Base URL: https://api.mountsea.ai

Quick Examples

⚡ Hub — One Endpoint, Many Premium Models

Hub aggregates premium AI models behind a single uniform API. Flagship-quality outputs, production-grade stability, at a discount versus the official price. Switch models by simply changing the model field.
Want a video instead? Change the endpoint + model:
Discover models on the fly: GET /hub/v1/models?capability=video returns every available video model with full input_schema + a ready-to-copy example payload.

🎬 Generate Video with Gemini (Veo 3.1)

Step 1: Create a video generation task

Response:

Step 2: Poll for task result

Use the returned taskId to check the generation status:
Response (completed):
Poll the task status endpoint every few seconds until status changes to completed. Possible statuses: pending, ready, assigned, processing, completed, failed, cancelled, timeout.

🖼️ Generate Image with Gemini (Nano Banana)

Response:
Then poll /gemini/task/result?taskId=your-task-id to get the generated image.
Available image models: nano-banana-fast, nano-banana-pro (supports 1K/2K/4K resolution), nano-banana-2 (supports extended aspect ratios).

🚧 Sora2 — Currently Unavailable

Sora2 is currently UNAVAILABLE on Mountsea. Endpoints /sora/* will be rejected at the gateway. For video generation, please use one of the alternatives:

🎵 Generate Music with Suno

Step 1: Create a music generation task

Response:

Step 2: Poll for task status

Response (success):

🎹 Generate Music with Producer

Step 1: Create a music generation task

Response:

Step 2: Poll for task result

Response (completed):

💬 Chat with LLM (OpenAI Compatible)

Use the OpenAI SDK directly — just change the base_url:

💬 Use Claude Code

Configure environment variables to use Claude Code with our API:
Note: Claude Code uses Base URL https://api.mountsea.ai/chat/claude, which is different from other protocols that use https://api.mountsea.ai/chat.

Async Task Pattern

Most generation services (Hub, Gemini, OpenAI, XAI, Suno, ElevenLabs, Producer) follow an async task pattern:
Recommended polling interval: Every 3-5 seconds. Generated files are stored for two weeks — download promptly to avoid losing access.

Next Steps

Now that you’ve made your first API call, explore more features:

Need Help?

If you run into any issues:
Ready to build amazing AI-powered applications? Start creating with Mountsea AI today!