-
Obtenir une clé API : créez une clé dans votre tableau de bord Muapi.
-
Envoyer un prompt : envoyez prompt en POST (avec éventuellement system_prompt et max_tokens, jusqu’à 8192) vers /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."}'
- Interroger ou diffuser : interrogez
GET /api/v1/predictions/{request_id}/result until status is completed, or stream tokens live from /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."}'
- Read the result: The generated text is returned in
outputs. Usage is billed on actual token counts.