Quick Start

Send your first API request in under 2 minutes

Get up and running with Foza in just a few steps.

1

Create an account

Sign up at foza.ai with your email or Google account. It takes less than 30 seconds.

2

Generate an API key

Go to Console → API Keys and click New Key. Give it a name and copy the key immediately — it will only be shown once.

Save your API key securely. It cannot be retrieved after creation. If lost, you'll need to create a new one.

3

Subscribe to a model

Go to Console → Marketplace, find a model you want to use (e.g., openai/gpt-4o), and click Subscribe. Link it to your API key.

4

Send your first request

Use any OpenAI-compatible SDK or cURL. Just change the base URL and API key:

Python
from openai import OpenAI
 
client = OpenAI(
    base_url="https://api.foza.ai/v1",
    api_key="sk-foza-xxxxx",
)
 
response = client.chat.completions.create(
    model="openai/gpt-4o",
    messages=[{"role": "user", "content": "Hello, Foza!"}],
)
 
print(response.choices[0].message.content)
Node.js
import OpenAI from "openai";
 
const client = new OpenAI({
  baseURL: "https://api.foza.ai/v1",
  apiKey: "sk-foza-xxxxx",
});
 
const response = await client.chat.completions.create({
  model: "openai/gpt-4o",
  messages: [{ role: "user", content: "Hello, Foza!" }],
});
 
console.log(response.choices[0].message.content);
cURL
curl https://api.foza.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-foza-xxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o",
    "messages": [{"role": "user", "content": "Hello, Foza!"}]
  }'

What's Next?#