Stheno 8B v3.2 API nasıl kullanılır?
-
API anahtarı alın: Muapi kontrol panelinizden bir anahtar oluşturun.
-
İstem gönderin: prompt (isteğe bağlı system_prompt ve max_tokens, en fazla 8192) parametreleriyle /api/v1/stheno-8b-v3-2.
curl -X POST https://api.muapi.ai/api/v1/stheno-8b-v3-2 \
-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."}'
- Sorgulayın veya akış alın:
GET /api/v1/predictions/{request_id}/result status değeri completed olana kadar sorgulayın ya da canlı token akışını şu uç noktadan alın: /api/v1/stheno-8b-v3-2/stream.
curl -X POST https://api.muapi.ai/api/v1/stheno-8b-v3-2/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 olduğunda returned in
outputs. Usage olduğunda billed on actual token counts.