Come usare l’API Qwen3.5 27B Blossom Derestricted
-
Ottieni una chiave API: crea una chiave nella dashboard Muapi.
-
Invia un prompt: invia prompt (con system_prompt e max_tokens facoltativi, fino a 32768) a /api/v1/qwen-3-5-27b-blossom-derestricted. Puoi fornire un image_url pubblico facoltativo per includere un’immagine nel prompt.
curl -X POST https://api.muapi.ai/api/v1/qwen-3-5-27b-blossom-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"}'
- Esegui il polling o attiva lo streaming: interroga
GET /api/v1/predictions/{request_id}/result finché status non è completed, oppure ricevi i token in tempo reale da /api/v1/qwen-3-5-27b-blossom-derestricted/stream.
curl -X POST https://api.muapi.ai/api/v1/qwen-3-5-27b-blossom-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"}'
- Leggi il risultato: il testo generato viene restituito in
outputs. L’addebito si basa sul numero effettivo di token.