-
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’à 32768) vers /api/v1/cydonia-24b-v4-1.
curl -X POST https://api.muapi.ai/api/v1/cydonia-24b-v4-1 \
-H "x-api-key: $MUAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "Stay in character as a dry-witted ship's navigator and greet the new crew member."}'
- Interroger ou diffuser : interrogez
GET /api/v1/predictions/{request_id}/result until status is completed, or stream tokens live from /api/v1/cydonia-24b-v4-1/stream.
curl -X POST https://api.muapi.ai/api/v1/cydonia-24b-v4-1/stream \
-H "x-api-key: $MUAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "Stay in character as a dry-witted ship's navigator and greet the new crew member."}'
- Read the result: The generated text is returned in
outputs. Usage is billed on actual token counts.