AI92 நேரலையில் உள்ளது - எங்கள் உலகளாவிய மென்மையான வெளியீடு நடைபெறுகிறது: முழு தளமும் முதல் 30 நாட்களுக்கு உலகளவில் திறக்கப்பட்டுள்ளது.
ஆவணங்கள் மெனு

இந்த டெவலப்பர் ஆவணங்கள் தற்போது ஆங்கிலத்தில் மட்டுமே உள்ளன. குறியீடு மற்றும் API நடத்தை ஒவ்வொரு பிராந்தியத்திலும் ஒரே மாதிரியாக இருக்கும்.

Creative API

Premium GenAI creative generation backed by module-f (Vertex Imagen / Veo) and the fleet orchestration chain module-a → module-BDE → module-f. Routes are served under /v1/creative.

Async operations return a job_id; poll it at GET /v1/jobs/{job_id}.

Authentication

Authorization: Bearer ai92_live_<key>     # production
Authorization: Bearer ai92_test_<key>     # sandbox

Mutating requests support Idempotency-Key and are brand-gated.

Credit costs at a glance

EndpointCost
POST /v1/creative/generateImage: 50 cr · Video: 50 cr/second, 400 cr floor (8s)
GET /v1/creative/assetsFree
POST /v1/creative/newsletter15 cr (async)
POST /v1/creative/campaigns250 cr per 7-day week (async)

POST /v1/creative/generate

Cost: Image = 50 credits. Video = max(400, 50 × duration_s) — i.e. 8s/12s/16s/20s → 400 / 600 / 800 / 1000 credits.

Generate creative assets. Image runs the premium DCO pipeline; video runs Veo. Credits are deducted after a successful render (no charge on backend failure).

Sandbox timing. Creative generation is asynchronous (the call is accepted and returns a job_id prefixed f_; poll it at GET /v1/jobs/{job_id}). In the sandbox the render pipeline can be slow and a job may reach status: TIMED_OUT. When that happens the reserved credits are automatically refunded and you can simply retry the call. Production turnaround is significantly faster.

Auth: Bearer

FieldTypeRequiredDescription
brand_idstringYesThe brand.
promptstringYesGeneration prompt. Length 12000.
asset_typestringNoimage (default) or video.
duration_sintegerNoVideo duration in seconds: one of 8 (default), 12, 16, 20. Ignored for images.

Request

bash
curl https://api.ai92.ai/v1/creative/generate \
  -H "Authorization: Bearer ai92_test_51a9c0de…" \
  -H "Content-Type: application/json" \
  -d '{"brand_id": "acme", "prompt": "cinematic product hero shot, golden hour", "asset_type": "video", "duration_s": 12}'

Response 200 OK

json
{
  "asset_id": "ast_v12",
  "type": "video",
  "duration_s": 12,
  "url": "https://cdn.ai92.ai/ast_v12.mp4",
  "credits_charged": 600
}

Errors

StatusCodeWhen
402INSUFFICIENT_CREDITSBalance below the computed cost.

GET /v1/creative/assets

Cost: Free

List generated creative assets.

Auth: Bearer

_No parameters._

Request

bash
curl https://api.ai92.ai/v1/creative/assets \
  -H "Authorization: Bearer ai92_test_51a9c0de…"

Response 200 OK

json
{
  "assets": [
    { "asset_id": "ast_v12", "type": "video", "url": "https://cdn.ai92.ai/ast_v12.mp4", "created_at": "2026-06-20T10:00:00Z" }
  ]
}

POST /v1/creative/newsletter

Cost: 15 credits (async)

Kick off async newsletter banner generation. Credits are reserved now, consumed on success, refunded on backend failure. Poll the result at GET /v1/jobs/{job_id}.

Auth: Bearer

FieldTypeRequiredDescription
brand_idstringYesThe brand.
topicstringYesNewsletter topic. Length 1500.

Request

bash
curl https://api.ai92.ai/v1/creative/newsletter \
  -H "Authorization: Bearer ai92_test_51a9c0de…" \
  -H "Content-Type: application/json" \
  -d '{"brand_id": "acme", "topic": "Summer product roundup"}'

Response 200 OK

json
{
  "job_id": "f_7c1d0a92…",
  "status": "queued",
  "service": "creative",
  "credits_reserved": 15
}

Errors

StatusCodeWhen
402INSUFFICIENT_CREDITSBalance below 15 credits.

POST /v1/creative/campaigns

Cost: 250 credits per 7-day week (async) — 250 × ceil(window_days / 7); planning window capped at 31 days

Generate a full creative campaign (a calendar of premium assets). 923 orchestrates the fleet chain module-a → module-BDE → module-f and returns a job to poll at GET /v1/jobs/{job_id}. Credits are reserved now, consumed on success, refunded on any failure.

Auth: Bearer

FieldTypeRequiredDescription
brand_idstringYesThe brand. Min length 1.
planning_window_startstringYesISO date, e.g. 2026-06-20.
planning_window_endstringYesISO date, e.g. 2026-06-27. On/after start; window ≤ 31 days.
schedule_typestringNoMOD80 (default) or MOD60.
channelsstring[] / nullNoTarget channels.

Request

bash
curl https://api.ai92.ai/v1/creative/campaigns \
  -H "Authorization: Bearer ai92_test_51a9c0de…" \
  -H "Content-Type: application/json" \
  -d '{"brand_id": "acme", "planning_window_start": "2026-06-20", "planning_window_end": "2026-07-03", "schedule_type": "MOD80", "channels": ["instagram", "email"]}'

Response 200 OK

json
{
  "job_id": "bde_4af09c11…",
  "status": "queued",
  "service": "creative",
  "credits_reserved": 500
}

Errors

StatusCodeWhen
422INVALID_PLANNING_WINDOWEnd before start, or window exceeds 31 days.
402INSUFFICIENT_CREDITSBalance below the computed cost.
503ENQUEUE_FAILEDJob could not be queued; credits were refunded.