LFM2.5-1.2B-Instruct: Responses
curl --request POST \
--url https://api.zerogpu.ai/v1/responses \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"input": "I just completed a 5K run in 28 minutes. Give me a short motivational follow-up message.",
"model": "LFM2.5-1.2B-Instruct"
}
'import requests
url = "https://api.zerogpu.ai/v1/responses"
payload = {
"input": "I just completed a 5K run in 28 minutes. Give me a short motivational follow-up message.",
"model": "LFM2.5-1.2B-Instruct"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: 'I just completed a 5K run in 28 minutes. Give me a short motivational follow-up message.',
model: 'LFM2.5-1.2B-Instruct'
})
};
fetch('https://api.zerogpu.ai/v1/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));falsepackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zerogpu.ai/v1/responses"
payload := strings.NewReader("{\n \"input\": \"I just completed a 5K run in 28 minutes. Give me a short motivational follow-up message.\",\n \"model\": \"LFM2.5-1.2B-Instruct\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.zerogpu.ai/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": \"I just completed a 5K run in 28 minutes. Give me a short motivational follow-up message.\",\n \"model\": \"LFM2.5-1.2B-Instruct\"\n}"
response = http.request(request)
puts response.read_body"That's an amazing accomplishment! Keep up the great work, each step brings you closer to your goals. You're stronger than you think!\n\nWould you like tips to help you keep improving?"{}By model
LFM2.5-1.2B-Instruct
Model details for LFM2.5-1.2B-Instruct.
POST
/
responses
LFM2.5-1.2B-Instruct: Responses
curl --request POST \
--url https://api.zerogpu.ai/v1/responses \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"input": "I just completed a 5K run in 28 minutes. Give me a short motivational follow-up message.",
"model": "LFM2.5-1.2B-Instruct"
}
'import requests
url = "https://api.zerogpu.ai/v1/responses"
payload = {
"input": "I just completed a 5K run in 28 minutes. Give me a short motivational follow-up message.",
"model": "LFM2.5-1.2B-Instruct"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: 'I just completed a 5K run in 28 minutes. Give me a short motivational follow-up message.',
model: 'LFM2.5-1.2B-Instruct'
})
};
fetch('https://api.zerogpu.ai/v1/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));falsepackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zerogpu.ai/v1/responses"
payload := strings.NewReader("{\n \"input\": \"I just completed a 5K run in 28 minutes. Give me a short motivational follow-up message.\",\n \"model\": \"LFM2.5-1.2B-Instruct\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.zerogpu.ai/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": \"I just completed a 5K run in 28 minutes. Give me a short motivational follow-up message.\",\n \"model\": \"LFM2.5-1.2B-Instruct\"\n}"
response = http.request(request)
puts response.read_body"That's an amazing accomplishment! Keep up the great work, each step brings you closer to your goals. You're stronger than you think!\n\nWould you like tips to help you keep improving?"{}Liquid AI’s LFM2.5-1.2B-Instruct is a hybrid architecture model purpose-built for on-device deployment, trained on 28 trillion tokens with multi-stage reinforcement learning. It delivers best-in-class instruction following and native tool-calling at the 1B scale — something very few models this size can do reliably. Its hybrid design gives it significantly faster inference with lower memory usage compared to transformer-only models of the same size. If you need a conversational model that can actually run on real devices without a GPU, this is it. Supports 8 languages including English, Chinese, Japanese, and Spanish.References: Model docs • Terms • Privacy
Authorizations
Headers
Optional project identifier. Scopes the request to a specific project when provided.
Body
application/json
Model identifier (fixed for this playground). Use request examples to change use cases.
Allowed value:
"LFM2.5-1.2B-Instruct"Example:
"LFM2.5-1.2B-Instruct"
Multi-line text or document content to send to the model.
Required string length:
1 - 131072Response
Success
The response is of type object.

