APIMart Officially Launches magi-2 APIExplore MAGI-2: APIMart Officially Launches magi-2 API
APIMart
Back to models
HappyWan model icon
VideoComing soonVideo generationRequest workspace

HappyWan API

HappyWan API (Happy Wan API) is coming to APIMart. Explore HappyWan video workflows, organize prompts and reference media, and prepare your happywan API integration.

HappyWan API: Prepare Your Video Workflow

Prepare your Alibaba HappyWan API integration on APIMart. Organize video prompts, images, video clips and audio links, then review your Happy Wan API request as JSON. Build a reusable HappyWan API workflow for product videos, storyboards and social content.

HappyWan API Examples: Video Request Drafts and Parameters

Explore Happy-Wan API request structure, authentication and task queries. These examples use happywan as the model ID; final integration parameters will be provided in the HappyWan API documentation.

  1. 1

    Authenticate HappyWan API Requests

    Save your key as APIMART_API_KEY and send Authorization: Bearer <key> when the integration is enabled.

  2. 2

    Submit a happywan Task After Launch

    The draft uses POST /v1/videos/generations with model set to happywan. Reference examples set generation_type to reference. Read the task ID from data[0].task_id.

  3. 3

    Read the HappyWan Task Result

    Query GET /v1/tasks/{task_id}. Read completed output from data.result.videos[0].url[0] and failures from data.error.message.

    See the APIMart documentation for authentication and general API usage.

POST /v1/videos/generations
curl -X POST https://api.apimart.ai/v1/videos/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "happywan",
    "prompt": "A red paper boat drifts along a rain-soaked street at night, close-up tracking shot, soft rain and reflections of warm street lights.",
    "duration": 5,
    "resolution": "1080P",
    "size": "16:9",
    "audio": true
  }'

HappyWan API Parameter Draft

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: happywanProvisional model ID for this HappyWan workspace. Confirm the final value at launch.
promptstringOptionalDefault: —Video description, up to 20,000 characters in this workspace. Provide a prompt or at least one media or source input.
resolutionstringOptionalDefault: 1080PResolution setting in the request draft: 480P, 720P or 1080P.
sizestringOptionalDefault: adaptiveAspect ratio setting: adaptive, 21:9, 16:9, 4:3, 1:1, 3:4 or 9:16.
aspect_ratiostringOptionalDefault: —Alias of size. If both are present, they must match.
durationintegerOptionalDefault: 5Duration setting in seconds: an integer from 2 to 30, or -1 for automatic duration. Reference video plus output must fit within the configured 30-second limit.
audiobooleanOptionalDefault: trueWhether to include audio in the output configuration.
watermarkbooleanOptionalDefault: falseWhether to include a watermark in the output configuration.
nsfw_checkbooleanOptionalDefault: falseContent moderation setting for the prompt and images.
prompt_extendbooleanOptionalDefault: truePrompt extension. Cannot be false with file_url or link_url.
seedintegerOptionalDefault: -1Integer from 0 to 2147483647; -1 or omission means random.
generation_typestringOptionalDefault: —frame or reference. Reference examples explicitly use reference; otherwise input materials determine the mode.
image_urlsstring[]OptionalDefault: —Public http(s) image URLs. In frame mode, at most 2 in first/last order. In reference mode, these and reference_image entries together must not exceed 10.
image_with_rolesobject[]OptionalDefault: —Objects with url and role: first_frame, last_frame or reference_image. Each frame role appears at most once. Do not mix frame and reference images.
video_urlsstring[]OptionalDefault: —Public video URLs for the request draft, up to 5 entries.
audio_urlsstring[]OptionalDefault: —Public audio URLs for the request draft, up to 5 entries. Mutually exclusive with audio_url.
audio_urlstringOptionalDefault: —One public audio URL; mutually exclusive with audio_urls.
file_urlstringOptionalDefault: —One public document URL, mutually exclusive with link_url. Requires prompt extension.
link_urlstringOptionalDefault: —One public web page URL; mutually exclusive with file_url. Requires prompt extension.