Higgsfield-Standard - Query Action Template - gptproto
Higgsfield-Standard — Query Action Template (gptproto). GPTProto API reference.
GET
/
v1
/
higgsfield
/
tpl
/
motions
Higgsfield-Standard - Query Action Template - gptproto
curl --request GET \
--url https://api.example.com/v1/higgsfield/tpl/motionsimport requests
url = "https://api.example.com/v1/higgsfield/tpl/motions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/higgsfield/tpl/motions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/higgsfield/tpl/motions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/higgsfield/tpl/motions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/higgsfield/tpl/motions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/higgsfield/tpl/motions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyQuery available action templates (motions) for video generation using Higgsfield’s GPTProto format API.
curl --location --request GET 'https://gptproto.com/v1/higgsfield/tpl/motions?size=20&search=' \
--header 'Authorization: YOUR_API_KEY'
import requests
url = "https://gptproto.com/v1/higgsfield/tpl/motions"
headers = {
"Authorization": "YOUR_API_KEY"
}
params = {
"size": 20,
"search": ""
}
response = requests.get(url, headers=headers, params=params)
result = response.json()
print(result)
const url = "https://gptproto.com/v1/higgsfield/tpl/motions?size=20&search=";
const headers = {
"Authorization": "YOUR_API_KEY"
};
fetch(url, {
method: "GET",
headers: headers
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://gptproto.com/v1/higgsfield/tpl/motions?size=20&search="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Set("Authorization", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
Response
{
"templates": [
{
"id": "template_001",
"name": "Motion Template 1",
"description": "Description of motion template"
}
],
"total": 20
}
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}
{
"error": {
"message": "Insufficient balance",
"type": "403"
}
}
{
"error": {
"message": "Internal server error",
"type": "500"
}
}
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
size | integer | ❌ No | 20 | Number of templates to return |
search | string | ❌ No | "" | Search query to filter templates by name or description |

