Cách sử dụng Cydonia 24B v4.1 API
1 . Lấy API key: Tạo khóa trong bảng điều khiển Muapi của bạn.
2 . Gửi prompt: Gửi POST prompt (cùng với system_prompt và max_tokens, tùy chọn, tối đa 32768 ) đến /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."}'
3 . Truy vấn hoặc truyền trực tuyến: Gọi GET /api/v1/predictions/{request_id}/result cho đến khi status là completed hoặc truyền token trực tiếp từ /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."}'
4 . Read the result: The generated text là returned in outputs . Usage là billed on actual token counts.