Programmatic Creative Suite

Welcome to the Optiq Studio API. Our developer suite allows brands, startups, and marketing platforms to programmatically trigger studio-grade vertical video renders, photorealistic image creations, and lifelike audio narrations on top of our low-latency global edge network.

Developer Quickstart

All external API calls must be directed to our high-capacity serverless clusters deployed inside region us-east4.

Authorization: Bearer optiq_live_...

Generate, revoke, and monitor your keys anytime inside the secure Developer Panel of your active subscription workspace.

Global Endpoints

  • POST/apiGenerateImage
  • POST/apiGenerateVideo
  • GET/apiGetVideoStatus
  • POST/apiGenerateTTS

Billing & Ledger

Your programmatic generations share the same credit balance as your interactive workspace. Cost metrics:

  • Image Generation5 Credits
  • Video Generation12 Credits / Sec
  • TTS Synthesis1 Credit / 100 Chars
POST

/apiGenerateImage

5 Credits / Request

Creates photorealistic scenery, backdrops, and product-oriented images using gemini-3.1-flash-image-preview. Supports optional reference image attachments (passed via referenceImages: [{"base64", "mimeType"}]) to guide generations, or character sheets for subject consistency.

CURL COMMAND
curl -X POST "https://us-east4-davelabs-tools.cloudfunctions.net/apiGenerateImage" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Cinematic wide shot of a young Black scuba diver exploring a bioluminescent coral shipwreck",
    "aspectRatio": "16:9",
    "purpose": "image"
  }'

JSON Response Body

{
  "id": "gen_8kC9dfS2X9j",
  "url": "https://storage.googleapis.com/davelabs-tools/generations/user_123/gen_8kC9dfS2X9j.jpg",
  "mimeType": "image/jpeg",
  "cost": 5
}