Skip to Content
API ReferenceLlmLlama 3.1 (8B)

Llama 3.1 (8B)

Llama 3.1 8B is a fast and efficient language model. It is ideal for quick inference, summarization, and general Q&A tasks.

Endpoint

POST https://z.os7.site/api/llm/llama3.1-8b

Request Parameters

ParameterTypeRequiredDescription
apikeystringYesYour secret Zapi API key.
promptstringYesThe core instruction or question.
systempromptstringNoSystem-level instructions for persona.

Example Request

curl -X POST https://z.os7.site/api/llm/llama3.1-8b \ -H "Content-Type: application/json" \ -d '{ "apikey": "zp_your_secret_api_key", "prompt": "Write a short poem about a server.", "systemprompt": "You are a creative poet." }'

Example Response

{ "status": 200, "data": { "text": "The server hums, a steady beat,\nIn rows of racks, a digital street...", "model": "llama3.1-8b" } }
Last updated on