Como usar a API do Anubis 70B v1.1 API
-
Obtenha uma chave de API: Crie uma chave no painel da Muapi.
-
Envie um prompt: Envie POST para prompt (e também, opcionalmente, system_prompt e max_tokens, até 16384) em /api/v1/anubis-70b-v1-1.
curl -X POST https://api.muapi.ai/api/v1/anubis-70b-v1-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."}'
- Consulte o status ou use streaming: Consulte
GET /api/v1/predictions/{request_id}/result até que status seja completed, ou receba tokens em tempo real por /api/v1/anubis-70b-v1-1/stream.
curl -X POST https://api.muapi.ai/api/v1/anubis-70b-v1-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."}'
- Leia o resultado: O texto gerado é retornado em
outputs. O uso é cobrado com base na quantidade real de tokens.