Come usare l’API DeepSeek R1 Distill Qwen 32B Abliterated
-
Ottieni una chiave API: crea una chiave nella dashboard Muapi.
-
Invia un prompt: invia prompt (oltre a system_prompt e max_tokens facoltativi, fino a 8192) a /api/v1/deepseek-r1-qwen-32b-abliterated.
curl -X POST https://api.muapi.ai/api/v1/deepseek-r1-qwen-32b-abliterated \
-H "x-api-key: $MUAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "Explain how attention works in transformers."}'
- Interroga o usa lo streaming: esegui il polling di
GET /api/v1/predictions/{request_id}/result finché status non è completed, oppure trasmetti i token in tempo reale da /api/v1/deepseek-r1-qwen-32b-abliterated/stream.
curl -X POST https://api.muapi.ai/api/v1/deepseek-r1-qwen-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: il testo generato viene restituito in
outputs. L’addebito si basa sul numero effettivo di token.