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:
| Modality | Typical Endpoint Pattern | Representative Models | Execution Model |
|---|---|---|---|
| Visual understanding (Vision) | /chat/completions (multimodal content) | Qwen3-VL Plus, Qwen3.5 OCR | Sync or streaming text reply from image URLs or Base64 inputs |
| Image generation & editing | /images/generations or edit endpoint | Seedream 5.5, FLUX.1 Kontext pro | Synchronous response returning generated asset URLs or Base64 |
| Video generation | Async job submit + status polling | Seedance 2.5, Wan 3.0 Video Prime | Takes tens of seconds; submit job and poll task_id until complete |
| Speech synthesis (TTS) | /audio/speech | MiniMax Speech 02 HD, CosyVoice 3 | Accepts text and voice settings; returns streamed or buffered audio |
| Speech recognition (ASR) | /audio/transcriptions | Paraformer Large, Whisper large-v3 | multipart/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:
- Submit generation task: Send your motion prompt (plus optional keyframe image, aspect ratio, and duration) to receive a
task_id. - 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 kHzmono and split multi-hour recordings on silence boundaries into 10–20 minute segments when calling Paraformer Large or Whisper large-v3 Turbo.