← Back to GoldLoadingPage API Index

🧠 GoldLoadingPage AI API

This endpoint provides a free OpenAI-style interface using the qwen2-0.5b-instruct model. No API key is required.

🔗 Base URL

https://ai.goldloadingpage.com/v1/

📨 Endpoint

POST /chat/completions

💬 Sample Request JSON

{
  "model": "qwen2-0.5b-instruct",
  "messages": [
    { "role": "user", "content": "Tell me a fun fact about space." }
  ]
}
    

🐍 Python (requests)

import requests

url = "https://ai.goldloadingpage.com/v1/chat/completions"
payload = {
    "model": "qwen2-0.5b-instruct",
    "messages": [{"role": "user", "content": "Hello!"}]
}
response = requests.post(url, json=payload)
print(response.json())
    

🟩 Node.js (Axios)

const axios = require('axios');

axios.post('https://ai.goldloadingpage.com/v1/chat/completions', {
  model: 'qwen2-0.5b-instruct',
  messages: [{ role: 'user', content: 'Hello!' }]
}).then(res => {
  console.log(res.data);
});
    

💠 C# (.NET HttpClient)

using System.Net.Http;
using System.Text;
using System.Text.Json;

var client = new HttpClient();
var payload = new {
    model = "qwen2-0.5b-instruct",
    messages = new[] {
        new { role = "user", content = "Hello!" }
    }
};
var content = new StringContent(JsonSerializer.Serialize(payload), Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://ai.goldloadingpage.com/v1/chat/completions", content);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
    

🔵 C++ (libcurl)

#include 
#include 

int main() {
    CURL *curl = curl_easy_init();
    if (curl) {
        const char* data = R"({
          "model": "qwen2-0.5b-instruct",
          "messages": [{"role": "user", "content": "Hello!"}]
        })";

        curl_easy_setopt(curl, CURLOPT_URL, "https://ai.goldloadingpage.com/v1/chat/completions");
        curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data);
        struct curl_slist* headers = nullptr;
        headers = curl_slist_append(headers, "Content-Type: application/json");
        curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
        curl_easy_perform(curl);
        curl_easy_cleanup(curl);
    }
    return 0;
}
    

🟥 cURL

curl https://ai.goldloadingpage.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen2-0.5b-instruct",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
    

💎 Ruby

require 'net/http'
require 'json'

uri = URI('https://ai.goldloadingpage.com/v1/chat/completions')
res = Net::HTTP.post(uri,
  { model: "qwen2-0.5b-instruct", messages: [{role: "user", content: "Hello!"}] }.to_json,
  "Content-Type" => "application/json"
)
puts res.body
    

💚 Go

package main

import (
  "bytes"
  "encoding/json"
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  data := map[string]interface{}{
    "model": "qwen2-0.5b-instruct",
    "messages": []map[string]string{
      {"role": "user", "content": "Hello!"},
    },
  }
  body, _ := json.Marshal(data)
  res, _ := http.Post("https://ai.goldloadingpage.com/v1/chat/completions", "application/json", bytes.NewBuffer(body))
  output, _ := ioutil.ReadAll(res.Body)
  fmt.Println(string(output))
}
    

📫 Contact

Email [email protected] for help.

← Back to GoldLoadingPage API Index