Documentation
Everything you need to integrate AI Gateway into your application.
API Reference
OpenAI & Anthropic compatible endpoints
Models
10 frontier models from OpenAI, Anthropic & Google
Authentication
Secure API key management
Quick Start
1
Create an account
Sign up at ai.hopeagrico.com to get started. Free tier includes 50 credits with no credit card required.
2
Get an API key
Go to Dashboard → API Keys and create a new key. Copy it immediately — it won't be shown again.
3
Make your first API call
Use the base URL below to make requests. AI Gateway is compatible with OpenAI and Anthropic SDKs.
Base URL
https://ai.hopeagrico.com/v1Code Examples
curl
curl -X POST https://ai.hopeagrico.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-5.4-mini",
"messages": [
{"role": "user", "content": "Hello, world!"}
]
}'Python
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://ai.hopeagrico.com/v1"
)
response = client.chat.completions.create(
model="gpt-5.4-mini",
messages=[
{"role": "user", "content": "Hello, world!"}
]
)
print(response.choices[0].message.content)Node.js
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "YOUR_API_KEY",
baseURL: "https://ai.hopeagrico.com/v1",
});
const response = await client.chat.completions.create({
model: "gpt-5.4-mini",
messages: [
{ role: "user", content: "Hello, world!" }
],
});
console.log(response.choices[0].message.content);