For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quickstart

agihalo does not require significant changes to your existing code structure. Simply update the base URL in your Gemini SDK, Node.js SDK, or curl commands, and use your Halo API key.

curl "https://api.agihalo.com/v1beta/models/gemini-3.0-flash:generateContent?key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [{
      "parts": [{"text": "Hello"}]
    }]
  }'
from google import genai

client = genai.Client(
    api_key="YOUR_API_KEY",
    http_options={
        "base_url": "https://api.agihalo.com"
    }
)

response = client.models.generate_content(
    model="gemini-3.0-flash", contents="Hello"
)
print(response.text)
const { GoogleGenerativeAI } = require("@google/generative-ai");

const genai = new GoogleGenerativeAI("YOUR_API_KEY");
const model = genai.getGenerativeModel(
    { model: "gemini-3.0-flash" },
    { baseUrl: "https://api.agihalo.com" }
  );
  
  async function main() {
      const result = await model.generateContent("Hello");
      const response = await result.response;
      console.log(response.text());
  }
  
  main();

Enable Halo x402 auth with just 3 lines of Halo SDK. Detailed instructions are available at this link SDK GUIDE Get apikeys

Get Api key

Last updated