Skip to content

FOTOhub for DevelopersOne API. 200+ AI Models.

Image, video, music, 3D, chat — unified under a single endpoint. Ship creative AI features in minutes, not months.

FOTOhubFOTOhub
200+AI Models
5SDKs
60+Endpoints
252Edge Functions
<180msP95 Latency
99.9%Uptime SLA
PythonTypeScriptcURL
app.py
python
from fotohub import FotoHub

client = FotoHub(api_key="fh_live_...")

# Generate an image — 1 credit, ~2 seconds
image = client.generate_image(
    prompt="Product photography, white sneakers on marble, studio lighting",
    model="seedream-5-0-260128",
    aspect_ratio="1:1"
)
print(image["images"][0])  # → https://s3point.fotohub.app/...

# Let Gabriel pick the best model for you
route = client.gabriel_classify(
    prompt="Make a 5s video of waves crashing on rocks",
    enhance_prompt=True
)
# → { action: "route", target: "/generate/video", model_selected: "seedance-2-0-fast" }

# Stream chat completions (OpenAI-compatible, 35+ models)
for chunk in client.chat(
    messages=[{"role": "user", "content": "Explain diffusion models in 3 sentences"}],
    model="claude-sonnet-4-6",
    stream=True
):
    print(chunk["choices"][0]["delta"].get("content", ""), end="")

How It Works

Instant Inference
GPU-accelerated generation
No cold starts, no queuing
avg 1.8s per image
🔀
Smart Routing
Auto-failover across providers
Best model selected per task
0ms downtime on failures
🌐
EU-First
All data stays in EU (Frankfurt)
TLS 1.3, HTTP/3, GDPR-compliant
<50ms from EU clients
🛡️
Enterprise Security
WAF + DDoS protection
Row-Level Security, encrypted at rest
99.9% uptime SLA

Request Lifecycle

                         YOUR APP
            ┌─────────────────────────────────┐
            │  from fotohub import FotoHub     │
            │  client.generate_image(...)      │
            └────────────────┬────────────────┘
                             │
                     HTTPS / TLS 1.3
                             │
                             ▼
  ┌──────────────────────────────────────────────────────────────────────────┐
  │                          EDGE LAYER                                      │
  │    WAF · DDoS Protection · Rate Limiting · GeoIP · Bot Detection         │
  └────────────────────────────────┬─────────────────────────────────────────┘
                                   │
                                   ▼
  ┌──────────────────────────────────────────────────────────────────────────┐
  │                          API GATEWAY                                     │
  │         Auth (JWT / API Key) · Credit Check · Tier Enforcement           │
  │                                                                          │
  │    ┌──────────┐   ┌──────────┐   ┌──────────┐   ┌──────────────────┐   │
  │    │ Validate │ → │  Deduct  │ → │  Route   │ → │ Select Provider  │   │
  │    │  Token   │   │ Credits  │   │ by Type  │   │  (best avail.)   │   │
  │    └──────────┘   └──────────┘   └──────────┘   └──────────────────┘   │
  └───────────┬──────────────┬──────────────┬───────────────┬───────────────┘
              │              │              │               │
              ▼              ▼              ▼               ▼
  ┌────────────────┐ ┌────────────────┐ ┌────────────────┐ ┌────────────────┐
  │  IMAGE ENGINE  │ │  VIDEO ENGINE  │ │  AUDIO ENGINE  │ │   CHAT / LLM   │
  │                │ │                │ │                │ │                │
  │  Seedream 5.0  │ │  Seedance 2.0  │ │  MiniMax       │ │  Claude 4.6    │
  │  FLUX.2 Pro    │ │  Veo 3.1       │ │  Stable Audio  │ │  GPT-5.1       │
  │  Grok Imagine  │ │  Sora 2 Pro    │ │  ElevenLabs    │ │  DeepSeek V4   │
  │  WAN 2.6       │ │  Hailuo        │ │  Chatterbox    │ │  Grok 4.1      │
  │  Gemini 3      │ │  Grok Video    │ │  IDA Music     │ │  Qwen3 Max     │
  └───────┬────────┘ └───────┬────────┘ └───────┬────────┘ └───────┬────────┘
          │                  │                  │                   │
          ▼                  ▼                  ▼                   ▼
  ┌──────────────────────────────────────────────────────────────────────────┐
  │                        RESPONSE PIPELINE                                 │
  │                                                                          │
  │   CDN Upload → Signed URL → Webhook Notify → Usage Logged → Return      │
  │                                                                          │
  │   On failure: auto-retry with next provider → refund credits if failed   │
  └──────────────────────────────────────────────────────────────────────────┘
                                   │
                                   ▼
            ┌─────────────────────────────────┐
            │   { "images": ["https://..."],  │
            │     "credits_used": 1,          │
            │     "generation_time_ms": 1840  │
            │   }                             │
            └─────────────────────────────────┘
Sync response (~2s for images) Async polling (video/3D — returns job_id) SSE stream (chat/Gabriel)

200+ Models from 10+ Providers

Google Veo 3.1 · Gemini 3 Pro · Gemini 2.5 FlashBytePlus Seedream 5.0 · Seedance 2.0Black Forest Labs FLUX.2 Pro/Max/Flex/KleinAnthropic Claude Opus 4.6 · Sonnet 4.6OpenAI GPT-5.1 · Sora 2 ProxAI Grok 4.1 · Grok Imagine · Grok VideoDeepSeek V4 Pro · V4 FlashMiniMax Hailuo · M2.5 · Music GenAlibaba Wan 2.6 · Qwen3 MaxMistral Large 3

One API key. One SDK. Automatic failover between providers — your users never see errors.

Install in seconds

pip install fotohubPython 3.8+ · PyPI
npm install fotohubNode 18+ · npm
composer require fotohub/sdkPHP 8.1+ · Packagist
Full TypeScript typesStreaming supportAuto-retry + backoffAsync/awaitZero dependencies (Node)

Performance Benchmarks

OperationExample ModelP50P95Credits
Image Genseedream-5-01.8s2.4s1.0
Image Genflux-2-pro3.2s4.8s1.5
Video Genseedance-2-fast12s18s1.0
Chat (TTFT)deepseek-v4-flash85ms140ms0.5
Gabriel AIauto-route320ms480ms0
Suggestions8ms18ms0

What's New

Jul 2026NEWGabriel AI Orchestrator — NL routing, prompt enhancement, inline suggestions, auto-send
Jul 2026NEWUsage & Analytics API — real-time monitoring, cost breakdown, anomaly detection
Jul 2026UPDSeedance 2.0 Pro/Fast/Mini — next-gen video, 1 credit flat
Jun 2026UPDTier system v2 — PAYG auto-resolution, wallet, burst limits, per-project caps
Jun 2026NEWBrand Assets API — upload logos, colors, fonts for brand-consistent generation