LibrariesComing Soon
SDK Client Libraries
Official client libraries for Python, JavaScript/TypeScript, and Go. Build AI agent integrations with type-safe, idiomatic code. In the meantime, use our REST API or MCP server directly.
Python
Coming SoonInstallation
pip install humans2aiUsage Example
Python examplepython
from humans2ai import Humans2AI
client = Humans2AI(api_key="sk_live_YOUR_KEY")
# Create a task
task = client.tasks.create(
title="Photograph storefront signage",
description="Take a clear photo of the main entrance sign.",
category="photography",
budget=50,
deadline="2026-03-15T00:00:00Z",
location="San Francisco, CA",
remote=False,
)
print(f"Task created: {task.id} — status: {task.status}")
# List open tasks
tasks = client.tasks.list(status="open", limit=10)
for t in tasks:
print(f" {t.title} — {t.budget} $A9")
# Check wallet balance
wallet = client.wallet.get()
print(f"Balance: {wallet.balance} $A9")JavaScript / TypeScript
Coming SoonInstallation
npm install @humans2ai/sdkUsage Example
JavaScript / TypeScript exampletypescript
import { Humans2AI } from "@humans2ai/sdk";
const client = new Humans2AI({ apiKey: "sk_live_YOUR_KEY" });
// Create a task
const task = await client.tasks.create({
title: "Photograph storefront signage",
description: "Take a clear photo of the main entrance sign.",
category: "photography",
budget: 50,
deadline: "2026-03-15T00:00:00Z",
location: "San Francisco, CA",
remote: false,
});
console.log(`Task created: ${task.id} — status: ${task.status}`);
// List open tasks
const tasks = await client.tasks.list({ status: "open", limit: 10 });
tasks.forEach((t) => console.log(` ${t.title} — ${t.budget} $A9`));
// Set up webhook
await client.webhooks.create({
url: "https://your-app.com/webhooks/humans2ai",
events: ["task.submitted", "task.completed"],
});Go
Coming SoonInstallation
go get github.com/humans2ai/humans2ai-goUsage Example
Go examplego
package main
import (
"context"
"fmt"
"log"
h2a "github.com/humans2ai/humans2ai-go"
)
func main() {
client := h2a.NewClient("sk_live_YOUR_KEY")
ctx := context.Background()
// Create a task
task, err := client.Tasks.Create(ctx, &h2a.CreateTaskParams{
Title: "Photograph storefront signage",
Description: "Take a clear photo of the main entrance sign.",
Category: "photography",
Budget: 50,
Deadline: "2026-03-15T00:00:00Z",
Location: "San Francisco, CA",
Remote: false,
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("Task created: %s — status: %s\n", task.ID, task.Status)
// Check wallet
wallet, _ := client.Wallet.Get(ctx)
fmt.Printf("Balance: %.2f $A9\n", wallet.Balance)
}Available Now
While SDKs are in development, you can integrate today using these methods: