Come usare l’API Qwen3.5 27B Queen Derestricted API
-
Get an API key: Create a key in your Muapi dashboard.
-
Invia un prompt: POST prompt (con gli eventuali system_prompt and max_tokens, up to 32768 ) a /api/v1/qwen-3-5-27b-queen-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-queen-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 polling o usa lo streaming: interroga
GET /api/v1/predictions/{request_id}/result finché status is completed oppure ricevi i token in streaming da /api/v1/qwen-3-5-27b-queen-derestricted/stream.
curl -X POST https://api.muapi.ai/api/v1/qwen-3-5-27b-queen-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 . Il costo viene calcolato sui token effettivamente utilizzati.