KE Media API
One API. Every model we run. Credits with a real margin.
Call fal, Replicate, Google, OpenAI, and xAI through kestudios.dev with a single kek_live_… key. Buy packs → generate image/video/edit/lipsync/music/TTS → we eat provider COGS, you ship product.
One spend key
Buy a pack on /credits → get kek_live_…. Same key for Castingiron, Media API, and future KE products.
All providers
fal · Replicate · Google Gemini/Imagen · OpenAI images/TTS · xAI Grok Imagine. Platform keys stay ours; you never juggle five dashboards.
Spread built-in
List price is credit tiers above COGS. Volume packs (10–20% bonus) widen the funnel without killing unit margin.
Three calls
# 1) Buy credits → copy kek_live_… from success page
# https://kestudios.dev/credits
export KE_KEY="kek_live_…"
# 2) List models + prices
curl -s https://kestudios.dev/api/v1/media/models | jq '.models[:5]'
curl -s https://kestudios.dev/api/v1/media/pricing | jq '.byTierKind'
# 3) Generate (charges credits; refunds on hard failure)
curl -s https://kestudios.dev/api/v1/media/generate \
-H "Authorization: Bearer $KE_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "fal/flux-schnell",
"prompt": "Product hero still, soft light, 4k",
"aspect": "1:1",
"ref": "job-001"
}' | jq .
# Balance
curl -s https://kestudios.dev/api/v1/media/balance -H "Authorization: Bearer $KE_KEY" | jq .
# Passthrough any fal/Replicate endpoint you know:
curl -s https://kestudios.dev/api/v1/media/generate \
-H "Authorization: Bearer $KE_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "fal",
"endpoint": "fal-ai/flux/dev",
"kind": "image",
"prompt": "Cinematic brand still"
}'Endpoints
- GET /api/v1/media
- GET /api/v1/media/models
- GET /api/v1/media/pricing
- GET /api/v1/media/balance
- POST /api/v1/media/generate
- GET /api/v1/media/jobs/:id
- POST /api/credits/spend (generic debit)
Sample rates
1 credit = $0.10 list. Examples:
- FLUX Schnell · 1 cr (image)
- FLUX Pro · 5 cr (image)
- Kling v1.6 · 35 cr (video)
- OpenAI TTS · 1 cr (tts)
- Grok Imagine · 2 cr (image)
Curated models
Full live list: /api/v1/media/models. Pass provider + endpoint for anything not listed (priced at high tier).
| Model | Provider | Kind | Credits |
|---|---|---|---|
FLUX Schnell fal/flux-schnell | fal | image | 1 |
FLUX Dev fal/flux-dev | fal | image | 2 |
FLUX Pro fal/flux-pro | fal | image | 5 |
FLUX Dev Image-to-Image fal/flux-dev-i2i | fal | edit | 3 |
FLUX Kontext Pro fal/flux-kontext | fal | edit | 6 |
Recraft V3 fal/recraft-v3 | fal | image | 2 |
AuraSR Upscale fal/aura-sr | fal | upscale | 1 |
Stable Audio fal/stable-audio | fal | music | 3 |
Sync Lipsync fal/sync-lipsync | fal | lipsync | 10 |
Kling Video (fal) fal/kling-video | fal | video | 35 |
MiniMax Video (fal) fal/minimax-video | fal | video | 15 |
FLUX Schnell (Replicate) replicate/flux-schnell | replicate | image | 1 |
FLUX Dev (Replicate) replicate/flux-dev | replicate | image | 2 |
FLUX 1.1 Pro replicate/flux-1.1-pro | replicate | image | 5 |
Ideogram V2A replicate/ideogram-v2a | replicate | image | 2 |
SDXL replicate/sdxl | replicate | image | 1 |
MiniMax Video-01 replicate/minimax-video | replicate | video | 15 |
Kling v1.6 replicate/kling-v1.6 | replicate | video | 35 |
Gemini Flash Image google/gemini-image | image | 2 | |
Imagen 3 google/imagen-3 | image | 5 | |
GPT Image 1 openai/gpt-image-1 | openai | image | 5 |
DALL·E 3 openai/dall-e-3 | openai | image | 2 |
OpenAI TTS openai/tts-1 | openai | tts | 1 |
Grok Imagine xai/grok-imagine | xai | image | 2 |
Grok Imagine Quality xai/grok-imagine-quality | xai | image | 5 |
Top up. Generate. Scale.
Credits power Media API + Castingiron + the rest of the KE product rail. Local KE Dev OS still uses your own provider keys for free BYO — this gateway is the hosted, billable surface.