# Sắc Nét > AI image generation, image editing (faces preserved) and Blender rendering for developers and AI agents. Billed per hour per tool: 25,000 VND/hour (generate: up to 1,500 images/hour with batch jobs, no image cap; edit: unlimited). Blender rendering is billed in render seconds. Signing in or linking Google/GitHub (GitHub accounts created at least 30 days ago) grants a free trial: 15 minutes of generate, 15 minutes of edit and 900 render seconds. ## For AI agents (MCP) - MCP server: https://sacnet.vn/mcp (streamable HTTP, stateless). Auth: OAuth 2.1 with dynamic client registration and PKCE (clients discover it from the 401), or header `Authorization: Bearer snr_...` (API key from https://sacnet.vn/account). - Claude Code: `claude mcp add --transport http sacnet https://sacnet.vn/mcp`, then /mcp to log in. - Tools: generate_image, edit_image, get_job, cancel_job, share_image, create_upload_link, render_estimate, render_submit, render_status, render_cancel, account. - Local files: call create_upload_link and give the user the link; then use upload_id. - Blender: create_upload_link(render_scene) → render_estimate → ask the user → render_submit(estimate_id) → render_status. - Never buy time for the user. On error action "buy_hour", show actionUrl. Retry only when "retryable" is true. ## HTTP API - OpenAPI: https://sacnet.vn/openapi.json - Auth: `Authorization: Bearer snr_...`. Jobs are async: POST /api/jobs/gen → poll GET /api/jobs/{id} → download files[].downloadUrl (signed, no auth, valid 24h). - Edit: POST /api/jobs/edit with JSON {"imageUrl": "https://...", "prompt": "..."} or multipart with an image file. - Idempotency-Key header on job creation makes retries safe for 24h. - Errors: {"error": {"code", "message", "retryable", "action", "actionUrl?", "retryAfter?"}}; 429 includes Retry-After. - Quota: GET /api/me/quota. - Metadata: job creation (gen, edit, video, Ảnh Pro, render, MCP generate_image/edit_image/render_submit) accepts "metadata": a flat string map (max 10 keys), echoed on the job and in webhooks. - Webhooks: POST /api/webhooks {"url": "https://...", "events": ["job.succeeded", "job.failed"]} returns a whsec_ secret once. Events: job.succeeded, job.failed, job.canceled, batch.completed, pass.ending, pass.ended, render.succeeded, render.failed, render.canceled, render.grace_started (or "*"). Signed per Standard Webhooks (webhook-id, webhook-timestamp, webhook-signature). At-least-once, may be out of order: dedupe by event id. Retries for about 2 days; 410 disables the endpoint. ## Limits - Image sizes: square 768/896/1024/1152/1328, or 832x1216 / 1216x832. 1-4 images per request. - Edit input: PNG/JPG/WEBP up to 10MB. - Rate limit: 1 job/second per user; MCP 120 requests/minute. - Results: images kept 7 days, render files 72 hours. ## Docs - [Developer guide (Vietnamese)](https://sacnet.vn/developers) - [Pricing](https://sacnet.vn/pricing) - [OpenAPI](https://sacnet.vn/openapi.json)