Skip to content
All guides

Capabilities & guides

Multimodal Guide: Vision, Image, Video & Audio

Work with visual Q&A, image generation and editing, async video jobs, speech synthesis, and transcription.

Updated 2026-11-26 · 3 min read

Multimodal Endpoint Overview

Visual understanding, image generation, video synthesis, and speech processing differ in payload structure and synchronous versus asynchronous execution. Confirm the exact modality contract before integrating:

ModalityTypical Endpoint PatternRepresentative ModelsExecution Model
Visual understanding (Vision)/chat/completions (multimodal content)Qwen3-VL Plus, Qwen3.5 OCRSync or streaming text reply from image URLs or Base64 inputs
Image generation & editing/images/generations or edit endpointSeedream 5.5, FLUX.1 Kontext proSynchronous response returning generated asset URLs or Base64
Video generationAsync job submit + status pollingSeedance 2.5, Wan 3.0 Video PrimeTakes tens of seconds; submit job and poll task_id until complete
Speech synthesis (TTS)/audio/speechMiniMax Speech 02 HD, CosyVoice 3Accepts text and voice settings; returns streamed or buffered audio
Speech recognition (ASR)/audio/transcriptionsParaformer Large, Whisper large-v3multipart/form-data audio upload returning punctuated transcripts

Visual Understanding and Document OCR

Pass an array of text and image_url blocks inside messages.content to analyze charts, screenshots, or scanned forms:

response = client.chat.completions.create(
    model="qwen3-vl-plus",
    messages=[
        {
            "role": "user",
            "content": [
                {"type": "text", "text": "Extract key alert metrics from this dashboard screenshot."},
                {
                    "type": "image_url",
                    "image_url": {"url": "https://example.com/sample-dashboard.png"},
                },
            ],
        }
    ],
)

Structuring Image Generation and Editing Prompts

Organize visual prompts around five concrete layers: subject + environment + framing + lighting/material + aesthetic style:

  • Text-to-image: With models like Seedream 5.5 or Imagen 4, lock composition and lighting first, then iterate one detail at a time.
  • Reference-guided editing: With FLUX.1 Kontext pro or Qwen-Image Edit, state explicitly what must remain unchanged alongside the targeted modification.
curl --fail-with-body --request POST "${API_BASE_URL}/images/generations"   --header "Authorization: Bearer ${API_KEY}"   --header "Content-Type: application/json"   --data '{
    "model": "doubao-seedream-5-5-261028",
    "prompt": "A translucent sapphire light-sail sculpture in a minimalist deep-navy hall, volumetric lighting, 16:9",
    "size": "1536x864",
    "n": 1
  }'

Asynchronous Video Generation Workflow

Because video synthesis is compute-intensive, production integrations use a two-step async pattern:

  1. Submit generation task: Send your motion prompt (plus optional keyframe image, aspect ratio, and duration) to receive a task_id.
  2. Poll and persist: Poll task status every 3–5 seconds until succeeded, then copy the resulting video into your own object storage rather than relying on temporary signed URLs.

Keep each 5-second clip focused on one clear subject motion and one camera move (such as a slow push-in or tracking shot).

Speech Synthesis (TTS) and Transcription (ASR) Tips

  • Normalize scripts before TTS: Expand dates, currency amounts, and acronyms into spoken words before calling MiniMax Speech 02 Turbo or CosyVoice 3 for cleaner pronunciation.
  • Chunk long recordings for ASR: Resample audio to 16 kHz mono and split multi-hour recordings on silence boundaries into 10–20 minute segments when calling Paraformer Large or Whisper large-v3 Turbo.