One API.
352+ 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 1.5 · FLUX.1 Pro · Veo 3 · Runway Gen-4 · ElevenLabs · Suno · Kling 2.1 · and 345+ 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 at sunrise"}'
# Response
{
"id": "gen_abc123",
"url": "https://media.fairstack.ai/...",
"model": "gpt-image-1.5",
"cost": {
"amount": 0.009,
"currency": "USD"
}
} The API sprawl problem.
Every new modality means another provider, another dashboard, another billing system, another set of docs.
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-1.5",
prompt: "A mountain lake",
});
console.log(image.url);
// cost: $0.009 import FairStack from "@fairstack/sdk";
const fs = new FairStack();
const audio = await fs.voice.generate({
model: "elevenlabs-v2",
text: "Welcome to the show",
});
console.log(audio.url);
// cost: $0.001 import FairStack from "@fairstack/sdk";
const fs = new FairStack();
const video = await fs.video.generate({
model: "kling-2.1",
prompt: "A timelapse of clouds",
});
console.log(video.url);
// cost: $0.08 Also available: pip install fairstack for Python
APIs for every creative modality.
One API key. 352+ models across image, video, voice, and music. Switch models in one line of code.
Image Generation
/v1/generations/image 142 models including GPT Image 1.5, FLUX.1 Pro, Seedream 4.5, Ideogram 3.0, and Recraft V3. Text-to-image, image-to-image, inpainting, upscaling.
From $0.003/image
Video Generation
/v1/generations/video 104 models including Veo 3, Kling 2.1, Runway Gen-4, Wan 2.1, and Hunyuan. Text-to-video, image-to-video, video extend, restyle.
From $0.04/clip
Voice & TTS
/v1/generations/voice 17 models including ElevenLabs V2, CosyVoice 2, Kokoro, and FishSpeech. Text-to-speech, voice cloning, emotion control. 168 built-in voices.
From $0.001/clip
Music Generation
/v1/generations/music 8 models including Suno V4.5, YuE, DiffRhythm, and ACE-Step. Text-to-music, lyrics-to-song, instrumental generation. Up to 8 minutes per track.
From $0.018/song
Real dollar pricing. No credits.
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 1.5 | $0.027 | $0.009 |
| Runway Gen-4 | $0.50 | $0.05 |
| ElevenLabs V2 | $0.30/min | $0.126/min |
| Veo 3 | $0.50 | $0.15 |
Built for production.
Not just another model 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, and 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, and custom agents. Your AI can generate images, video, and audio as tool calls.
Integrate in minutes.
REST API, webhooks, SDKs, and MCP -- everything you need to ship.
Ship AI features this week.
352+ models. One API key. No subscription. No monthly fee.