วิธีใช้ Qwen3.5 27B Opus-Distilled Derestricted API
1 รับ API key: สร้างคีย์ในแดชบอร์ด Muapi
2 ส่งพรอมป์ต์: POST prompt (พร้อม system_prompt และ max_tokens, ได้สูงสุด 32768) ไปยัง /api/v1/qwen-3-5-27b-opus-distilled-derestricted คุณสามารถระบุ image_url to include an image with your prompt.
curl -X POST https://api.muapi.ai/api/v1/qwen-3-5-27b-opus-distilled-derestricted \
-H "x-api-key: $MUAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "Explain how attention works in transformers.", "image_url": "https://example.com/photo.jpg"}'
3 Poll or stream: Poll GET /api/v1/predictions/{request_id}/result จนกว่า status จะเป็น completed หรือสตรีมโทเค็นแบบเรียลไทม์จาก /api/v1/qwen-3-5-27b-opus-distilled-derestricted/stream.
curl -X POST https://api.muapi.ai/api/v1/qwen-3-5-27b-opus-distilled-derestricted/stream \
-H "x-api-key: $MUAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "Explain how attention works in transformers.", "image_url": "https://example.com/photo.jpg"}'
4 Read the result: The generated text จะเป็น returned in outputs คิดค่าบริการตามจำนวนโทเค็นที่ใช้จริง.