DashScope Native Text / Multimodal Generation

Native Alibaba Bailian synchronous protocol; streaming via the X-DashScope-SSE header

POST/api/v1/services/aigc/text-generation/generation

Use these endpoints when you need the native Bailian request format ({model, input, parameters}); for plain Qwen chat we recommend the OpenAI-compatible Chat Completions. Available models come from List Models (protocols contains dashscope).

Authorizations

Authorizationstring必填

Bearer Token authentication.

Authorization: Bearer YOUR_API_KEY

Endpoints

POST /api/v1/services/aigc/text-generation/generation          # text generationPOST /api/v1/services/aigc/multimodal-generation/generation    # multimodal generation

Request headers

Header Required Description
Authorization Yes Bearer YOUR_API_KEY
Content-Type Yes application/json
X-DashScope-SSE Required for streaming Set to enable to turn on SSE streaming (native Bailian semantics, not a body field); incremental output is controlled by parameters.incremental_output
X-DashScope-DataInspection No Enhanced content-safety inspection (official optional Bailian header)

Notes