Skip to main content

Documentation Index

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

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

Model ID
wan2.7-image-pro

Wan 2.7 Image Pro API Documentation

Wan 2.7 Pro is an advanced image generation model supporting text-to-image and image-to-image capabilities up to 4K resolution.

1. API Endpoint & Authentication

Base URL: https://console.gmicloud.ai Endpoint: POST /api/v1/ie/requestqueue/apikey/requests Header:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

2. Model Specifications

  • Output Format: Image (JPEG, PNG, WEBP, etc.)
  • Resolution: 1K, 2K, or 4K

3. Generation Modes

Text-to-Image

Provide a text prompt describing the desired image.

Image-to-Image

Provide reference images (up to 9) along with optional text prompts. Aspect ratio matches the input image.

4. Parameter Reference

ParameterTypeRequiredDescription
textstringYesText prompt (max 5,000 characters).
imageimageNoReference image URL or Base64.
sizestringNoOutput resolution (1K, 2K, or 4K). Default is 2K.
nintegerNoNumber of images to generate (1-4). Default is 1.

5. Example CURL Request

curl -X POST "https://console.gmicloud.ai/api/v1/ie/requestqueue/apikey/requests" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan2.7-image-pro",
    "payload": {
      "text": "A futuristic cityscape at sunset",
      "size": "4K",
      "n": 1
    }
  }'

6. Checking Request Status

Endpoint: GET /api/v1/ie/requestqueue/apikey/requests/{request_id}
  • queued: Waiting in line.
  • processing: Generating image.
  • success: Completed. Find URL in outcome.media_urls.