# Quickstart

{% embed url="<https://www.youtube.com/watch?v=Vwou50HfQr4>" %}

{% tabs %}
{% tab title="Curl" %}

```
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"}]
    }]
  }'
```

{% endtab %}

{% tab title="Python" %}

```
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)
```

{% endtab %}

{% tab title="Node.js" %}

```
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();
```

{% endtab %}
{% endtabs %}

Enable Halo x402 auth with just 3 lines of Halo SDK. Detailed instructions are available at this link\
[SDK GUIDE](/product-docs/sdk-guide/python.md)\
\
Get apikeys

[Get Api key](/product-docs/getting-started/get-api-key.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://agihalo.gitbook.io/product-docs/getting-started/quickstart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
