Phi-2
A 2.7 billion parameter language model that demonstrates outstanding reasoning and new-model capabilities.
Endpoint
POST https://z.os7.site/api/llm/phi-2
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
apikey | string | Yes | Your secret Zapi API key. |
prompt | string | Yes | The core instruction or question. |
systemprompt | string | No | System-level instructions for persona. |
Example Request
curl -X POST https://z.os7.site/api/llm/phi-2 \
-H "Content-Type: application/json" \
-d '{
"apikey": "zp_your_secret_api_key",
"prompt": "Explain gravity.",
"systemprompt": "You are a helpful assistant."
}'Example Response
{
"status": 200,
"data": {
"text": "Gravity is the force by which a planet or other body draws objects toward its center...",
"model": "phi-2"
}
}Last updated on