Skip to main content

Quick Start

Jump into using Mountsea AI’s API with our Quick Start guide. Learn how to get your API keys and more!

What You Need

  • A Mountsea AI platform account
  • An API key

Get Your API Key

Step 1

Sign up for Mountsea AI, and then go to the API Keys page (API 密钥管理) and click 创建新密钥 (Create New Key).

Step 2

Enter a unique name for your API key (duplicate names are not allowed) and click Save.

Step 3

On the API Keys page, click the copy icon next to your key to copy it to your clipboard. You can also click directly on the masked key to copy it.

Configure Your HTTP Request Header

  • Authorization: Use Bearer token format with your API key
  • Header format: Authorization: Bearer your-api-key

Generate Content

Generate Video

Step 1: Generate video through the video generation endpoint

If successful, the response will return a success status and a task_id. Example Request:
curl -X POST "https://api.mountsea.ai/gemini/video" \
  -H "Authorization: Bearer your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A beautiful sunset over the ocean",
    "model": "veo3"
  }'
Example Response:
{
  "success": true,
  "task_id": "task_123456789",
  "message": "Video generation started"
}

Step 2: Get video generation status

Fill the task_id into the parameter of task_id to request the video generation status.
  • processing: the video is still being generated
  • succeed: the video generation is complete
Example Request:
curl -X GET "https://api.mountsea.ai/gemini/task?task_id=task_123456789" \
  -H "Authorization: Bearer your-api-key"
Example Response:
{
  "status": "succeed",
  "task_id": "task_123456789",
  "video_url": "https://api.mountsea.ai/download/video_123456789.mp4",
  "created_at": "2024-01-01T12:00:00Z"
}

Step 3: Poll video generation status

Continuously poll the status endpoint until the status changes to succeed. Once succeed is returned, download the video using the provided URL. Note: Videos are stored for two weeks. Download your video promptly to avoid losing access.

Generate Image

Step 1: Generate image through the image generation endpoint

Example Request:
curl -X POST "https://api.mountsea.ai/gemini/image" \
  -H "Authorization: Bearer your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A futuristic city skyline at night",
    "model": "nana"
  }'
Example Response:
{
  "success": true,
  "image_url": "https://api.mountsea.ai/download/image_123456789.jpg",
  "created_at": "2024-01-01T12:00:00Z"
}

Generate Music

Step 1: Generate music through the music generation endpoint

Example Request:
curl -X POST "https://api.mountsea.ai/suno/generate" \
  -H "Authorization: Bearer your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "An upbeat electronic dance track",
    "style": "electronic"
  }'
Example Response:
{
  "success": true,
  "task_id": "task_123456789",
  "message": "Music generation started"
}

Step 2: Get music generation status

Example Request:
curl -X GET "https://api.mountsea.ai/suno/task?task_id=task_123456789" \
  -H "Authorization: Bearer your-api-key"
Example Response:
{
  "status": "succeed",
  "task_id": "task_123456789",
  "audio_url": "https://api.mountsea.ai/download/audio_123456789.mp3",
  "created_at": "2024-01-01T12:00:00Z"
}

Next Steps

Now that you’ve generated your first content, explore more features:

Need Help?

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