Enterprise only
Enterprise API
API access is part of the Enterprise packs ($500, $1,000 and $2,500). Keys are created in your Dashboard under Enterprise API. Each full key is shown once, when you create or rotate it; we store only a hash.
See Enterprise packs
Authentication
Send your key in the X-API-Key header (or Authorization: Bearer YOUR_API_KEY). Base URL: https://www.startmybusiness.us/ai-studio. Up to 5 active keys per account; rotate or revoke any key at any time.
Limits
Concurrent jobs
3 (10,000-Token pack), 6 (22,500) or 12 (60,000). Counts every active image and video job on the account.
Request rate
60 requests per minute per key (burst 60). Over the limit you get HTTP 429 with Retry-After.
Failed sign-ins
Repeated invalid keys from one address are paused for a few minutes (HTTP 429).
Endpoints
| Method | Path | Purpose |
| POST | /api/v1/quote | Exact Token price for a request, before anything is charged. Same body as generate. Returns quote.tokens, premium, the duration and resolution used, ref_video_secs, premium_tokens and can_pay. |
| POST | /api/v1/generate | Queue a job. Body: kind (image, video_standard, video_lipsync), prompt, optional model_id, duration (Seedance: 5, 8 or 10 seconds), resolution (Seedance: 480p, 720p, Omni also 1080p), aspect_ratio, style, batch_count (images, 1 to 5), ref_urls, lip_sync_script, strict_model (true = only the chosen model; see Model fallbacks), expected_tokens (optional: the quoted price; the job is refused with 409 instead of charging a different amount). The response includes the quote that was charged. |
| GET | /api/v1/jobs/<job_id> | Job status, media URL and the model that made it (see Model fallbacks). |
| GET | /api/v1/balance | Remaining Studio Tokens, plus premium_tokens (Tokens that can pay for premium video) and welcome_tokens. |
| POST | /api/mcp | MCP JSON-RPC (initialize, tools/list, tools/call) for AI agents. Tools include quote_video and quote_image (exact price, no charge), generate_video with duration and resolution, and generate_image with batch_count. |
Models
model_id | Model |
|---|
veo_31_fast | Google Veo 3.1 Fast (720p) |
veo_31_fast_1080 | Google Veo 3.1 Fast (1080p) |
veo_31_studio | Google Veo 3.1 Studio |
seedance_flash | ByteDance Seedance 2.5 Flash (Multi-Shot) |
seedance_omni | ByteDance Seedance 2.5 Omni |
nano_banana_2 | Google Nano Banana 2 HD |
flash_express_img | Google Nano Banana Express |
seedream_v5_pro | ByteDance Seedream 5.0 Pro |
gpt_image_2 | Google Nano Banana Pro Typography |
nano_banana_21 | Google Nano Banana Pro |
tts_gemini | Google Gemini 3.8 Flash TTS |
voice_tts | Kyutai Pocket TTS (My Voice) |
voice_create | Kyutai Pocket TTS Voice Setup |
sfx_stable | Stability AI Stable Audio 3 Small SFX |
music_clip | Google Lyria 3 Clip (30 s) |
music_song | Google Lyria 3.5 (Full Song) |
Video pricing
Video is priced by model, length and resolution. Google Veo 3.1 clips are 8 seconds; ByteDance Seedance 2.5 clips are 5, 8 or 10 seconds (default 5 s at 480p). A reference video on Seedance adds to the price for each second of the clip (up to 15 s); a reference image on Google Veo 3.1 uses the reference price. The price is the same on every pack. Use /api/v1/quote (or the MCP tool quote_video) for the exact number; the charge always equals the quote.
Standard and premium video. Standard video (Google Veo 3.1 Fast) can be paid with any Tokens. Premium video (ByteDance Seedance 2.5 and Google Veo 3.1 Studio) is paid only with Tokens from a regular pack, its +Tokens add-on, or an Enterprise pack. Welcome-offer and free Tokens work on images and standard video. If the account does not hold enough of those Tokens the request returns 402 PREMIUM_TOKENS_REQUIRED and nothing is charged.
model_id | Length | Resolution | Tokens (no reference) | Class |
|---|
veo_31_fast | 8 s | 720p | 8 | Standard |
veo_31_fast_1080 | 8 s | 1080p | 11 | Standard |
veo_31_studio | 8 s | 720p | 110 | Premium |
seedance_flash | 5 s | 480p | 135 | Premium |
seedance_flash | 8 s | 480p | 215 | Premium |
seedance_flash | 10 s | 480p | 265 | Premium |
seedance_flash | 5 s | 720p | 240 | Premium |
seedance_flash | 8 s | 720p | 355 | Premium |
seedance_flash | 10 s | 720p | 445 | Premium |
seedance_omni | 5 s | 480p | 135 | Premium |
seedance_omni | 8 s | 480p | 215 | Premium |
seedance_omni | 10 s | 480p | 265 | Premium |
seedance_omni | 5 s | 720p | 265 | Premium |
seedance_omni | 8 s | 720p | 390 | Premium |
seedance_omni | 10 s | 720p | 485 | Premium |
seedance_omni | 5 s | 1080p | 655 | Premium |
seedance_omni | 8 s | 1080p | 970 | Premium |
seedance_omni | 10 s | 1080p | 1,210 | Premium |
Image pricing
Images are priced per image: Tokens per image x batch_count (1 to 5). Welcome-offer and free Tokens work on every image model. Use /api/v1/quote with "kind":"image" (or the MCP tool quote_image) for the exact number; the charge always equals the quote.
model_id | Model | Free / $19 | $49 | $99 | Enterprise |
|---|
nano_banana_2 | Google Nano Banana 2 HD | 2 | 2 | 2 | 2 |
flash_express_img | Google Nano Banana Express | 2 | 2 | 2 | 2 |
seedream_v5_pro | ByteDance Seedream 5.0 Pro | 4 | 4 | 4 | 4 |
gpt_image_2 | Google Nano Banana Pro Typography | 2 | 2 | 2 | 2 |
nano_banana_21 | Google Nano Banana Pro | 2 | 2 | 2 | 2 |
Audio & Voice
Text to speech, your own voice, sound effects and music. Every result is an MP3 mastered to -16 LUFS / -1.5 dBTP
(WAV on any Token pack). Prices come from the same quote call the charge uses: call POST /api/v1/audio/quote
first, then send expected_tokens with POST /api/v1/audio/generate. Speech is priced on 30-second
blocks of estimated speech, from the script length.
model_id | Model | What it makes | Price |
|---|
tts_gemini | Google Gemini 3.8 Flash TTS | Text to speech, 12 preset voices, 14 languages | 3 Tokens per 30 s block (from) |
voice_tts | Kyutai Pocket TTS (My Voice) | Speak in your own saved voice (EN, ES, FR, DE, PT, IT) | 1 Token per 30 s block (from) |
voice_create | Kyutai Pocket TTS Voice Setup | Create a voice (web studio only, consent required) | 1 Token, pack Tokens only |
sfx_stable | Stability AI Stable Audio 3 Small SFX | Sound effect, 3 to 10 s | 1 Tokens |
music_clip | Google Lyria 3 Clip (30 s) | 30 s music clip | 8 Tokens |
music_song | Google Lyria 3.5 (Full Song) | Full song (a couple of minutes) | 15 Tokens |
POST /api/v1/audio/quote {"feature": "tts", "text": "Welcome to our shop.", "lang": "en"}
POST /api/v1/audio/generate {"feature": "tts", "text": "Welcome to our shop.", "voice": "Sulafat", "lang": "en",
"speed": "normal", "expected_tokens": 3}
POST /api/v1/audio/generate {"feature": "my_voice", "voice_id": "vc_...", "text": "...", "lang": "en"}
POST /api/v1/audio/generate {"feature": "sfx", "prompt": "Door creaks open, footsteps on wood", "seconds": 5}
POST /api/v1/audio/generate {"feature": "music", "prompt": "Warm acoustic guitar", "length": "clip"}
GET /api/v1/audio/voices your saved voices
GET /api/v1/jobs/<job_id> status, media_url (MP3), fallback disclosure
GET /api/v1/audio/jobs/<job_id>/wav WAV download
Voices are created only in the web studio, after a consent step (own voice, or the speaker's written permission).
They are private to your account and can be deleted at any time. Speech falls back from Google Gemini 3.8 Flash TTS to
Google Gemini 3.8 Flash Lite TTS when the first is unavailable: the job says so and returns any price difference. Send
"strict_model": true to stop instead. MCP tools: quote_audio, generate_speech,
generate_sound_effect, generate_music, list_my_voices.
Voice cloning uses Kyutai Pocket TTS (weights licensed CC-BY-4.0, by Kyutai). Sound effects: Powered by Stability AI (Stable Audio 3 Small SFX, Stability AI Community License); short interface sounds come from our own sound library.
Model fallbacks
If the model you pick is unavailable, the job is made with the next available model instead of failing, and we tell you. When that model costs fewer Tokens, the difference goes back to your balance automatically (once per job, to the same Token balances it came from). When it costs the same or more, nothing extra is charged. To turn this off for a request, send "strict_model": true: if the chosen model is unavailable the job fails with strict_failed: true and every Token is returned.
Field (job JSON and webhook job object) | Meaning |
requested_model | The model_id you asked for. |
delivered_model | The model_id that actually made the media (set when the job is completed). |
fallback | true when delivered_model differs from requested_model. |
tokens_charged | Tokens debited when the job was queued. |
tokens_refunded | Tokens returned for this job: the price difference after a cheaper fallback, or the full amount when a job fails. |
strict_model / strict_failed | Whether the request asked for the chosen model only, and whether it stopped because that model was unavailable. |
fallback_notice | Plain English sentence you can show your own users, for example: Made with Google Veo 3.1 Fast (720p) because ByteDance Seedance 2.5 Omni was unavailable. 40 tokens returned to your balance. |
Examples
cURL
# Exact price first (same arguments as generate; nothing is charged)
curl -sS -X POST "https://www.startmybusiness.us/ai-studio/api/v1/quote" \
-H "X-API-Key: YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"kind":"video_lipsync","model_id":"seedance_omni","duration":8,"resolution":"720p"}'
# Submit a job (kind: image, video_standard or video_lipsync); expected_tokens = the quote
curl -sS -X POST "https://www.startmybusiness.us/ai-studio/api/v1/generate" \
-H "X-API-Key: YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"kind":"video_standard","aspect_ratio":"9:16","prompt":"Sunlit studio sneaker commercial"}'
# Poll a job
curl -sS -H "X-API-Key: YOUR_API_KEY" "https://www.startmybusiness.us/ai-studio/api/v1/jobs/JOB_ID"
# Token balance
curl -sS -H "X-API-Key: YOUR_API_KEY" "https://www.startmybusiness.us/ai-studio/api/v1/balance"
Python
import time, requests
BASE = "https://www.startmybusiness.us/ai-studio"
HDRS = {"X-API-Key": "YOUR_API_KEY"}
r = requests.post(f"{BASE}/api/v1/generate", headers=HDRS, timeout=30,
json={"kind": "image", "aspect_ratio": "1:1", "prompt": "Gold logo on ivory paper"})
if r.status_code == 429:
time.sleep(int(r.headers.get("Retry-After", "15")))
r.raise_for_status()
job_id = r.json()["job"]["id"]
while True:
job = requests.get(f"{BASE}/api/v1/jobs/{job_id}", headers=HDRS, timeout=30).json()["job"]
if job["status"] in ("completed", "failed"):
break
time.sleep(5)
print(job["status"], BASE + job["media_url"] if job["media_url"] else job["error_msg"])
JavaScript (Node 18+)
const BASE = "https://www.startmybusiness.us/ai-studio";
const HDRS = { "X-API-Key": process.env.STUDIO_API_KEY, "Content-Type": "application/json" };
const res = await fetch(`${BASE}/api/v1/generate`, {
method: "POST", headers: HDRS,
body: JSON.stringify({ kind: "video_standard", aspect_ratio: "16:9", prompt: "Product reveal on a marble table" })
});
if (res.status === 429) console.log("retry after", res.headers.get("Retry-After"), "seconds");
const { job } = await res.json();
console.log("queued", job.id);
MCP
curl -sS -X POST "https://www.startmybusiness.us/ai-studio/api/mcp" -H "X-API-Key: YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
Job webhooks
Add an https webhook URL to a key in your Dashboard. When a job created with that key finishes we POST JSON (job.completed or job.failed) with headers X-Studio-Event, X-Studio-Delivery and X-Studio-Signature: t=<unix>,v1=<hex>, an HMAC-SHA256 of "<t>." + raw body with your webhook signing secret (shown once when you save the URL). Reply with any 2xx. Failed deliveries are retried up to 5 times over about 45 minutes. Webhook hosts must be public https addresses; private and internal addresses are refused and redirects are not followed.
import hmac, hashlib, time
def verify(secret: str, body: bytes, header: str, tolerance: int = 300) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
ts, sig = int(parts["t"]), parts["v1"]
if abs(time.time() - ts) > tolerance:
return False
mac = hmac.new(secret.encode(), f"{ts}.".encode() + body, hashlib.sha256).hexdigest()
return hmac.compare_digest(mac, sig)
Error codes
| HTTP | Meaning |
|---|
400 | Invalid request (missing prompt, bad field). |
401 | Missing, invalid or revoked API key. |
402 | Not enough Studio Tokens, or the job type needs a higher pack. |
402 PREMIUM_TOKENS_REQUIRED | Premium video needs Tokens from a regular, bump or enterprise pack; welcome and free Tokens do not count. Nothing was charged. The body has tokens_needed and premium_tokens. |
409 PRICE_CHANGED | You sent expected_tokens and the request now costs a different amount (for example a longer reference clip). Nothing was charged; quote again. |
403 | The account is not on an Enterprise pack. |
404 | Job not found (jobs are visible only to the key's own account). |
429 API_CONCURRENCY_LIMIT | Your account already has its maximum number of active jobs. Retry after the Retry-After seconds. |
429 RATE_LIMITED | More than 60 requests in a minute on one key. Retry after the Retry-After seconds. |
429 AUTH_RATE_LIMITED | Too many failed key attempts from one address. Wait, then retry with a valid key. |
5xx | Temporary server problem. Retry with backoff; failed jobs refund their Tokens automatically. |
AI output can contain mistakes. Review every result before you publish it.