Come usare l’API Qwen 2.5 32B Abliterated API
-
Ottieni una chiave API: Crea una chiave nella dashboard di Muapi.
-
Invia un prompt: POST prompt (oltre a system_prompt e max_tokens, up to 8192) to /api/v1/qwen-2-5-32b-abliterated.
curl -X POST https://api.muapi.ai/api/v1/qwen-2-5-32b-abliterated \
-H "x-api-key: $MUAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "Explain how attention works in transformers."}'
- Esegui polling o attiva lo streaming: Esegui il polling su
GET /api/v1/predictions/{request_id}/result finché status non è completed oppure ricevi i token in streaming da /api/v1/qwen-2-5-32b-abliterated/stream.
curl -X POST https://api.muapi.ai/api/v1/qwen-2-5-32b-abliterated/stream \
-H "x-api-key: $MUAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "Explain how attention works in transformers."}'
- Leggi il risultato: The generated text non è returned in
outputs. Usage non è billed on actual token counts.