Authentication
Keep the signed-in session cookie and send the user's API key in the Authorization header. The server adds the internal service key before calling the upstream.
Authorization: Bearer <api_key>
Content-Type: application/jsonCosmos 3 Super API
Keep the signed-in session cookie and send the user's API key in the Authorization header. The server adds the internal service key before calling the upstream.
Authorization: Bearer <api_key>
Content-Type: application/jsonPOST /api/image/cosmos-3-super/generate
{
"prompt": "A rover crossing a dusty alien valley",
"size": "16:9",
"num_inference_steps": 28,
"guidance_scale": 4,
"output_format": "jpeg",
"negative_prompt": "blur, artifacts"
}POST /api/video/cosmos-3-super/generate
{
"prompt": "Slow cinematic motion with realistic light",
"image": "https://example.com/source.jpg",
"size": "16:9",
"duration": 7,
"num_inference_steps": 28,
"guidance_scale": 6,
"negative_prompt": "warping, flicker"
}Poll either endpoint with the returned task_id.
GET /api/image/cosmos-3-super/status?task_id=<task_id>
GET /api/video/cosmos-3-super/status?task_id=<task_id>List tasks for the signed-in API key. Results are scoped to the model type.
GET /api/image/cosmos-3-super/list?api_key=<api_key>&page=1&limit=12
GET /api/video/cosmos-3-super/list?api_key=<api_key>&page=1&limit=12Set COSMOS3_SUPER_API_BASE or NUXT_COSMOS3_SUPER_API_BASE to override the default upstream.
COSMOS3_SUPER_API_BASE=https://n103.goglo.top