AI for Biz MENA

API Reference

An OpenAI-compatible gateway. Point any OpenAI SDK at the base URL below, use your API key as a bearer token, and call any of the 18 models on your account (chat & reasoning, embeddings, image, and speech).

Base URL  https://api.aiforbiz.email/v1 Auth  Authorization: Bearer YOUR_KEY Usage & balance  dashboard

Models

18 models across chat/reasoning, embeddings, image, and speech. The authoritative, always-current list is GET /v1/models.

Chat & reasoning
POST /v1/chat/completions
gpt-5.6-solgpt-5.6-terra gpt-5.6-lunagpt-5.5 gpt-chat-latest gpt-5.4gpt-5.4-mini gpt-5.4-nanogpt-5.3-codex o3gpt-oss-120b
Reasoning models: reserve headroom with max_completion_tokens.
Embeddings
POST /v1/embeddings
text-embedding-3-smalltext-embedding-3-large text-embedding-ada-002
1536 / 3072 / 1536 dimensions.
Image
POST /v1/images/generations
gpt-image-2 gpt-image-1.5 gpt-image-1
Text to image; returns base64 PNG.
Speech-to-text
POST /v1/audio/transcriptions
whisper
Upload audio (wav / mp3 / m4a / …); returns text.
Reasoning models. gpt-5.x, o3, and gpt-oss-120b spend tokens on internal reasoning before the visible answer. Set max_completion_tokens generously (a few hundred or more), or you may get an empty reply because the budget was consumed by reasoning. gpt-oss-120b puts its thinking in reasoning_content. gpt-chat-latest requires max_completion_tokens (it rejects max_tokens).

Pricing

USD per 1M tokens (exact Azure list prices). Your spend accrues at these rates; live balance and per-model daily usage are in your dashboard.

ModelInputCached inputOutput
gpt-5.6-sol$5.00$0.50$30.00
gpt-5.6-terra$2.50$0.25$15.00
gpt-5.6-luna$1.00$0.10$6.00
gpt-5.5$5.00$0.50$30.00
gpt-chat-latest$5.00$0.50$30.00
gpt-5.4$2.50$15.00
gpt-5.4-mini$0.75$4.50
gpt-5.4-nano$0.20$1.25
gpt-5.3-codex$1.75$0.175$14.00
o3$2.00$8.00
gpt-oss-120b$0.15$0.60
text-embedding-3-small$0.02
text-embedding-3-large$0.13
text-embedding-ada-002$0.10
whisper$0.36 per audio-hour
gpt-image-2billed per generated image
gpt-image-1.5billed per generated image
gpt-image-1billed per generated image (original, preview)

Endpoints

GET/v1/models

List the models available to your key.

curl https://api.aiforbiz.email/v1/models \
  -H "Authorization: Bearer $AIFORBIZ_KEY"
POST/v1/chat/completions

Chat and reasoning. Models: gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-chat-latest, gpt-5.4, gpt-5.4-mini, gpt-5.4-nano, gpt-5.3-codex, o3, gpt-oss-120b.

FieldNotes
modelany chat / reasoning model above
messagesarray of {role, content}
max_completion_tokensreserve headroom for reasoning + answer
streamoptional, true for token streaming
curl https://api.aiforbiz.email/v1/chat/completions \
  -H "Authorization: Bearer $AIFORBIZ_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.5",
    "messages": [
      {"role": "user", "content": "Summarize relativity in two sentences."}
    ],
    "max_completion_tokens": 500
  }'
POST/v1/images/generations

Generate an image. Models: gpt-image-2 (newest flagship), gpt-image-1.5, or gpt-image-1. Returns base64 image data.

FieldNotes
modelgpt-image-2
prompttext description
sizee.g. 1024x1024
nnumber of images
curl https://api.aiforbiz.email/v1/images/generations \
  -H "Authorization: Bearer $AIFORBIZ_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "A watercolor fox in a misty forest",
    "size": "1024x1024",
    "n": 1
  }'
POST/v1/embeddings

Vector embeddings. Models: text-embedding-3-small, text-embedding-3-large, text-embedding-ada-002.

curl https://api.aiforbiz.email/v1/embeddings \
  -H "Authorization: Bearer $AIFORBIZ_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "text-embedding-3-large",
    "input": "the quick brown fox"
  }'
POST/v1/audio/transcriptions

Speech-to-text. Model: whisper. Multipart upload of an audio file; returns {"text": ...}.

curl https://api.aiforbiz.email/v1/audio/transcriptions \
  -H "Authorization: Bearer $AIFORBIZ_KEY" \
  -F "file=@meeting.wav" \
  -F "model=whisper"

Python quickstart

Any OpenAI SDK works; only the base URL and key change.

# pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://api.aiforbiz.email/v1",
    api_key="YOUR_KEY",
)

resp = client.chat.completions.create(
    model="gpt-5.5",
    messages=[{"role": "user", "content": "Hello!"}],
    max_completion_tokens=500,
)
print(resp.choices[0].message.content)