One API.
137+ models.
Five modalities.
Image, video, voice, music, and 3D generation through a single REST API. Every response includes the exact cost in dollars.
GPT Image 2 · FLUX.2 · Veo 3.1 · Seedance 2 · ElevenLabs · Suno · Kling 3.0 · and 130 more
curl -X POST https://api.fairstack.ai/v1/generations/image \
-H "Authorization: Bearer $FAIRSTACK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-image-1.5","prompt":"A mountain lake"}'
# Response
{
"id": "gen_abc123",
"url": "https://media.fairstack.ai/...",
"model": "gpt-image-1.5",
"cost": {
"amount": 0.009,
"currency": "USD"
}
} One integration. Every modality.
Every new modality means another provider, another dashboard, another billing system, another set of docs.
- × OpenAI — images, separate billing
- × Replicate — video, GPU-second pricing
- × ElevenLabs — voice, credit-based tier
- × Suno — music, subscription only
- ✓ One API key for all modalities
- ✓ One billing dashboard in real dollars
- ✓ One set of docs, one SDK
- ✓ Switching models = changing one parameter
Three lines to generate anything.
Same SDK, same pattern, every modality. Switch from image to video by changing the method call.
import FairStack from "@fairstack/sdk";
const fs = new FairStack();
const image = await fs.image.generate({
model: "gpt-image-2-t2i",
prompt: "A mountain lake",
});
console.log(image.url);
// cost: $0.012/image import FairStack from "@fairstack/sdk";
const fs = new FairStack();
const audio = await fs.voice.generate({
model: "elevenlabs-multilingual-v2",
text: "Welcome to the show",
});
console.log(audio.url);
// cost: $0.216 import FairStack from "@fairstack/sdk";
const fs = new FairStack();
const video = await fs.video.generate({
model: "kling-3-0-std",
prompt: "A timelapse of clouds",
});
console.log(video.url);
// cost: $0.12/s
Also available: pip install fairstack for Python
APIs for every creative modality.
One API key. 137+ models across image, video, voice, and music. Switch models in one line of code.
Image Generation
/v1/generations/image 34 models including Z-Image Turbo, FLUX.2, Seedream 4.5, Nano Banana Pro, GPT Image 2. Text-to-image, image-to-image, inpainting, upscaling.
$0.0048/image
Video Generation
/v1/generations/video 64 models including Veo 3.1, Kling 3.0, Seedance 2, Wan 2.6, Sora 2. Text-to-video, image-to-video, video extend, restyle.
$0.0096/s (480p)
Voice & TTS
/v1/generations/voice 10 models including ElevenLabs Multilingual V2, Fish Audio S2.1 Pro, Qwen3-TTS, IndexTTS2. Text-to-speech, voice cloning, emotion control. 168 built-in voices.
$0.018/1K chars
Music Generation
/v1/generations/music 19 models including Suno, Mureka V9, Mureka BGM. Text-to-music, lyrics-to-song, instrumental generation. Up to 8 minutes per track.
$0.036/track
No credits. Just dollars.
Every API response includes the exact cost in USD. Infrastructure cost + 20% margin = your price. We publish the math.
- Every response includes cost in USD
- Call /v1/cost-estimate before generating
- No credits to decode, no token math
- 20% margin on infra cost — published formula
| Model | Direct | FairStack |
|---|---|---|
| GPT Image 2 | $0.05+/image (OpenAI API) | $0.012/image (low quality tier) |
| ElevenLabs Multilingual V2 | $0.30/min (ElevenLabs Creator) | $0.216/1K chars |
| Veo 3.1 Fast | $0.50 per 5s (Google) | $0.18/s |
| Kling 3.0 Standard | Credit-based | $0.12/s |
Not just another aggregator.
Full cost controls, structured errors, and real documentation.
Scoped API Keys
Create keys with granular permissions: restrict by modality, set per-request cost limits, set total spending caps. Revoke instantly.
3-Level Spending Caps
Hard limits at organization, project, and API key level. Requests exceeding caps get a 429, not an invoice. Safe for autonomous agents.
Webhooks
Register endpoints per org. Get notified on generation.completed, generation.failed, and balance.low events. Automatic retries with delivery logs.
Cost Simulation
Call /v1/cost-estimate before generating. Know the exact price, choose the model, then execute. No other API does this.
Structured Errors
Every error includes a machine-readable code, human message, and request trace ID. No guessing what went wrong.
MCP Server
Agent-native integration for Claude, GPT, custom agents. Your AI can generate images, video, and audio as tool calls.
Ship in minutes.
REST API, webhooks, SDKs, and MCP — everything you need to ship.
Ship AI features this week.
137+ models. One API key. No subscription. No monthly fee.